Antifall script is not working
#1

My script for antifall from bike is not working.

Can you see the script, is anything is wrong?

OnPlayerStateChange callback code
pawn Код:
if(Anim[playerid] == 1)
    {
        if(oldstate == PLAYER_STATE_eDriver)
        {
            if(newstate == PLAYER_STATE_ONFOOT)
            {
                if(invehicle[playerid] == 1)
                {
                    PutPlayerInVehicle(playerid, whatvehicle[playerid], eDriver);
                }
            }
        }
        if(oldstate == PLAYER_STATE_PASSENGER)
        {
            if(newstate == PLAYER_STATE_ONFOOT)
            {
                if(invehicle[playerid] == 1)
                {
                    PutPlayerInVehicle(playerid, whatvehicle[playerid], passenger);
                }
            }
        }
        if(oldstate == PLAYER_STATE_ONFOOT)
        {
            if(newstate == PLAYER_STATE_eDriver || PLAYER_STATE_PASSENGER)
            {
                invehicle[playerid] = 1;
                whatvehicle[playerid] = GetPlayerVehicleID(playerid);
            }
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)