Quote:
Originally Posted by Undef1ned
PHP Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vmodel = GetVehicleModel(GetPlayerVehicleID(playerid));
if(vmodel == 520 && User[playerid][accountVIP] <= 0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, -1, "I'm sorry, but this car has been reserved for Admins only!");
}
}
return 1;
}
|
Get Player Vehicle ID
You don't need to use GetVehicleModel...
pawn Code:
if(GetPlayerVehicleID(playerid) == 520...