OnPlayerStateChange (RemovePlayerFromVehicle)
#6

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vid = GetPlayerVehicleID(playerid);
        if(vid == sapd1 || vid == sapd2 vid == sapd3 || vid == sapd4 && Member[playerid] != 3)
        {
            RemovePlayerFromVehicle(playerid);
            SendClientMessage(playerid, red, "You cannot enter this vehicle!");
        }
    }
    return 1;
}
Reply


Messages In This Thread
OnPlayerStateChange (RemovePlayerFromVehicle) - by zack3021 - 03.11.2010, 15:03
Re: OnPlayerStateChange (RemovePlayerFromVehicle) - by willsuckformoney - 03.11.2010, 15:24
Re: OnPlayerStateChange (RemovePlayerFromVehicle) - by zack3021 - 03.11.2010, 22:49
Re: OnPlayerStateChange (RemovePlayerFromVehicle) - by Conroy - 03.11.2010, 22:52
Re: OnPlayerStateChange (RemovePlayerFromVehicle) - by zack3021 - 03.11.2010, 22:57
Re: OnPlayerStateChange (RemovePlayerFromVehicle) - by The_Moddler - 03.11.2010, 23:20
Re: OnPlayerStateChange (RemovePlayerFromVehicle) - by zack3021 - 04.11.2010, 00:51

Forum Jump:


Users browsing this thread: 2 Guest(s)