25.04.2012, 15:55
Quote:
You can do it like this for restricting a single car on the whole server.
pawn Код:
|
pawn Код:
new VIPCar1 = 520;
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;
}