Help with my anti bunny jump script
#2

The problem is that you aren't defining what playerid is in the saltitos function, because you can't send any parameter by using SetTimer(). You would need to use SetTimerEx(), but you don't have any playerid in OnFilterScriptInit.

Therefore, the best option I think is looping trough all the players in saltitos.
Something like this should do:

pawn Код:
forward saltitos();
public saltitos()
{
    for(new i; i < MAX_PLAYERS; i ++) if(IsPlayerConnected(i))
    {
        if (PlayerInfo[i][saltos] <= 0)
        {
            ApplyAnimation(i, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
        }
        PlayerInfo[i][saltos] = 2;
    }

    return 1;
}
Reply


Messages In This Thread
Help with my anti bunny jump script - by JulietaZ - 28.09.2010, 16:47
Re: Help with my anti bunny jump script - by Zamaroht - 28.09.2010, 17:07
Re: Help with my anti bunny jump script - by JulietaZ - 28.09.2010, 21:06

Forum Jump:


Users browsing this thread: 1 Guest(s)