OnPlayerStateChange not working at all!
#9

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) zijn, etc.
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vModel = GetVehicleModel(GetPlayerVehicleID(playerid));
        if((vModel == 432 && GetPlayerScore(playerid) < 500) || (vModel == 520 && GetPlayerScore(playerid) < 500))
        {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, -1, "You can't enter this Vehicle yet check /vehicles for the rank needed to enter this vehicle!");
        }
    }
    return 1;
}
This will work just edit it to what you want
Reply


Messages In This Thread
OnPlayerStateChange not working at all! - by XtremeR - 11.09.2012, 13:04
Re: OnPlayerStateChange not working at all! - by Kirollos - 11.09.2012, 13:30
Re: OnPlayerStateChange not working at all! - by XtremeR - 11.09.2012, 13:36
Re: OnPlayerStateChange not working at all! - by XtremeR - 11.09.2012, 14:43
Re: OnPlayerStateChange not working at all! - by MarkoN - 11.09.2012, 14:46
Re: OnPlayerStateChange not working at all! - by XtremeR - 11.09.2012, 15:11
Re: OnPlayerStateChange not working at all! - by MarkoN - 11.09.2012, 15:33
Re: OnPlayerStateChange not working at all! - by XtremeR - 11.09.2012, 15:34
Re: OnPlayerStateChange not working at all! - by Biess - 11.09.2012, 15:35
Re: OnPlayerStateChange not working at all! - by park4bmx - 11.09.2012, 15:40

Forum Jump:


Users browsing this thread: 4 Guest(s)