28.08.2011, 23:11
Put all the cars into a varible...
new VIPCars[numberofcars]; - // you can use this or...
new VIPCars;
then under OnGameModeInit
VIPCars[carumber] = Car here
or
VIPCars = Car Here
Then under OnPlayerEnterVehicle
Untested
new VIPCars[numberofcars]; - // you can use this or...
new VIPCars;
then under OnGameModeInit
VIPCars[carumber] = Car here
or
VIPCars = Car Here
Then under OnPlayerEnterVehicle
pawn Код:
if(VIPCars)
{
If (PlayerInfo[playerid][pVIP] == 1)
{
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, colour, "You are not a VIP");
}
return 1;
}