RemovePlayerFromvehicle
#6

Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new vehicle;
        vehicle = GetPlayerVehicleID(playerid);
        if(vehicle == 425 || vehicle == 432 || vehicle == 447 || vehicle == 469 || vehicle == 520 || vehicle == 592)
        {
            if(GetPlayerScore(playerid)< 15)
            {
                RemovePlayerFromVehicle(playerid);
                SendClientMessage(playerid,0xFF0000FF,"Vous devez etre lvl 15 pour conduir ce vehicule (1kill=1lvl)");
            } 
        }
    }
    return 1;
}

- SI le joueur entre dans un vйhicule
- SI ce vйhicule correspond а l'id 425 ou 432  ou etc ...
- SI son score est infйrieur а 15
-> ALORS on le fait sortir du vйhicule
Reply


Messages In This Thread
RemovePlayerFromvehicle - by simonbasson42 - 15.07.2014, 22:16
Re: RemovePlayerFromvehicle - by anou1 - 15.07.2014, 22:33
Re : RemovePlayerFromvehicle - by S4t3K - 15.07.2014, 22:35
Re : RemovePlayerFromvehicle - by simonbasson42 - 16.07.2014, 00:06
Re : RemovePlayerFromvehicle - by S4t3K - 16.07.2014, 00:13
Re : RemovePlayerFromvehicle - by Ivory - 16.07.2014, 00:15
Re : RemovePlayerFromvehicle - by simonbasson42 - 16.07.2014, 11:34
Re: RemovePlayerFromvehicle - by Foraysen - 16.07.2014, 11:39
Re : RemovePlayerFromvehicle - by DarkZeroX - 16.07.2014, 11:43
Re: RemovePlayerFromvehicle - by anou1 - 16.07.2014, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)