Player cant enter a Tank or A Hydra
#3

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(GetVehicleModel(vehicleid) == 520 && GetPlayerScore(playerid) < 1000)
    {
        SendClientMessage(playerid,0xFF0000FF,"You cant drive this vehicle you noob");
        RemovePlayerFromVehicle(playerid);
    }
    if(GetVehicleModel(vehicleid) == 432  && GetPlayerScore(playerid) < 1000 )
    {
        SendClientMessage(playerid,0xFF0000FF,"You cant drive this vehicle you noob");
        RemovePlayerFromVehicle( playerid );
    }
}
return 1;
}
Reply


Messages In This Thread
Player cant enter a Tank or A Hydra - by California_ - 12.02.2013, 17:55
Re: Player cant enter a Tank or A Hydra - by SilverKiller - 12.02.2013, 18:00
Re: Player cant enter a Tank or A Hydra - by DaRk_RaiN - 12.02.2013, 18:07
Re: Player cant enter a Tank or A Hydra - by Mr.Anonymous - 12.02.2013, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)