Quote:
Originally Posted by Ballu Miaa
Like this:
pawn Код:
new VIPCar1 = CreateVehicle(490,2578.1166,-2431.7924,13.6278,314.8088,0,0,5 * 60 * 1000); // Add the above line under OnGameModeInIt Callback.
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsPlayerVipType(playerid, 0)) { if(IsPlayerInVehicle(playerid, VIPCar1)) // Checking the car is right or not. { SendClientMessage(playerid, COLOR_RED, "ERROR: This is a VIP only vehicle!"); RemovePlayerFromVehicle(playerid); } } return 1; }
EDIT:
But you should keep this in mind too.
|
this is close to what i want. uh i want it to be it so that if they spawn one or if the find one they wont be able to get in, or get removed.