Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

RSS[Request] BB plugin edit


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Hello, I found one old plugin for basebuilder mod, but it's not working axactly as it should be. And I am pretty sure it not a lot of work to add one or two extra lanes, but i can't do it myself. So, I wanna ask if someone could help me out.

Quote:

public fw_Traceline(Float:start[3], Float:end[3], conditions, id, trace)
{
if (!is_user_alive(id))
return PLUGIN_HANDLED

new ent = get_tr2(trace, TR_pHit)

if (is_valid_ent(ent))
{
new ent,body
get_user_aiming(id,ent,body)

new szClass[10], szTarget[7];
entity_get_string(ent, EV_SZ_classname, szClass, 9);
entity_get_string(ent, EV_SZ_targetname, szTarget, 6);
if (equal(szClass, "func_wall") && !equal(szTarget, "ignore") && ent != g_iEntBarrier && g_iShowMovers == 1)
{
if (g_boolCanBuild || access(id, ADMIN_SLAY))
{
set_hudmessage(0, 50, 255, -1.0, 0.55, 1, 0.01, 3.0, 0.01, 0.01);
if (!BlockLocker(ent))
{
new szCurMover[32], szLastMover[32]
if (GetEntMover(ent))
{
get_user_name(GetEntMover(ent),szCurMover,31)
if (!GetLastMover(ent))
ShowSyncHudMsg(id, g_HudSync, "Current Mover: %s^nLast Mover: NONE", szCurMover);
}
if (GetLastMover(ent))
{
get_user_name(GetLastMover(ent),szLastMover,3 1)
if (!GetEntMover(ent))
ShowSyncHudMsg(id, g_HudSync, "Current Mover: NONE^nLast Mover: %s", szLastMover);
}
if (GetEntMover(ent) && GetLastMover(ent))
{
ShowSyncHudMsg(id, g_HudSync, "Current Mover: %s^nLast Mover: %s", szCurMover, szLastMover);

ColorChat(id, GREEN, "^3[GM][Base#Builder] ^1Player ^4%s ^1: Move An Object Of ^4%s", szCurMover, szLastMover);
}
else if (!GetEntMover(ent) && !GetLastMover(ent))
ShowSyncHudMsg(id, g_HudSync, "[GM] This object hasn't been moved");
}
else
{
new szEntOwner[32]
get_user_name(BlockLocker(ent),szEntOwner,31)
ShowSyncHudMsg(id, g_HudSync, "Claimed by: %s", szEntOwner);
}
}
}
}
else ClearSyncHud(id, g_HudSync);

return PLUGIN_HANDLED
}
Red color is the code i added, but now the message appers when I move my own block too. And i want it only to show up when someone else move my blocks.

Przeczytaj cały wpis

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...