Quote:
Originally Posted by biship
Some calls to these functions might fix that:
if (IsClientInGame() && IsClientConnected() && !IsFakeClient())
|
hum doesn't work's :
Quote:
L 09/18/2013 - 01:13:57: Info (map "C12m1_hilltop") (file "errors_20130918.log")
L 09/18/2013 - 01:13:57: [SM] Native "IsPlayerAlive" reported: Client 4 is not in game
L 09/18/2013 - 01:13:57: [SM] Displaying call stack trace for plugin "skeetannounce.smx":
L 09/18/2013 - 01:13:57: [SM] [0] Line 138, G:\L4D2\SCRIPTING\skeetannounce.sp::groundTou chTimer()
|
PHP Code:
public Action:groundTouchTimer(Handle:timer, any:client)
{
if((isClient(client) && isGrounded(client)) || !IsPlayerAlive(client))
{
//Reached the ground or died in mid-air
pouncing[client] = false;
KillTimer(timer);
}
}
public bool:isGrounded(client)
{
return (GetEntProp(client,Prop_Data,"m_fFlags") & FL_ONGROUND) > 0;
}
public bool:isClient(client)
{
return IsClientConnected(client) && IsClientInGame(client) && !IsFakeClient(client);
}