lots of changes
This commit is contained in:
@@ -12,7 +12,6 @@ bool g_bHasSomebodyToHide[MAXPLAYERS + 1];
|
||||
|
||||
/* INTEGERS */
|
||||
int g_iHideRange[MAXPLAYERS+1];
|
||||
int g_iLeader = 0;
|
||||
int g_iHideCapacity = 8;
|
||||
|
||||
/* HANDLES */
|
||||
@@ -203,7 +202,7 @@ public Action UpdateHide(Handle timer)
|
||||
{
|
||||
GetClientAbsOrigin(target, fOriginTarget);
|
||||
//PrintToChatAll("%N--%N::::::%f", client, target, GetVectorDistance(fOriginTarget, fOriginClient, false));
|
||||
if((GetVectorDistance(fOriginTarget, fOriginClient, true) <= float(g_iHideRange[client])) && (g_iLeader != target))
|
||||
if((GetVectorDistance(fOriginTarget, fOriginClient, true) <= float(g_iHideRange[client])) && !Leader_Is(target))
|
||||
{
|
||||
g_bHidePlayers[client][target] = true;
|
||||
g_bHasSomebodyToHide[client] = true;
|
||||
@@ -219,7 +218,6 @@ public Action UpdateHide(Handle timer)
|
||||
}
|
||||
}
|
||||
}
|
||||
g_iLeader = Leader_CurrentLeader()
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user