Quote:
Originally Posted by DaRk_RaiN
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { new vehicleid = GetPlayerVehicleID(playerid); if(PlayerInfo[playerid][vip] == 0)//Make this suitable to your script. { SendClientMessage(playerid, COLOR_RED, "You need To be a VIP to ride this vehicle."); RemovePlayerFromVehicle(playerid); } return 1; }
|
This would work but I prefer OnPlayerEnterVehicle as its called before the player is in the car.