Junior Member
|
![Old](images/statusicon/post_old.svg)
12-14-2020
, 11:59
[Request] BB plugin edit
|
#1
|
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.
Last edited by BoL@r; 12-14-2020 at 12:00.
|
|