16.10.2009, 17:13
How to allow only admins to get in veichles?
Originally Posted by MenaceX^
Could you write a better explaination?
|
Originally Posted by Angelo94
yes thats it
|
new AdminCar;
AdminCar = Addstaticvehicle....
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == AdminCar)
{
if(!IsPlayerAdmin(playerid))
{
RemovePlayerFromVehicle(playerid);
}
}
}