View Single Post
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-17-2013 , 19:24   Re: [L4D] SkeetAnnounce 1.3
Reply With Quote #29

Quote:
Originally Posted by biship View Post
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:timerany: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);


Last edited by eric0279; 09-17-2013 at 19:25.
eric0279 is offline