25.04.2012, 05:46
You can do it like this for restricting a single car on the whole server.
pawn Код:
new VIPCar1 = CreateVehicle Code over here;//Add this under OnGameModeInIt
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;
}

