16.07.2014, 00:15
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