PoliceCars only for Police Officers
#5

Look for the AddStaticVehicle(blah blah blah

add behind AddStaticVehicle(blah blah blah xD police1

like this:

Code:
police1 = AddStaticVehicle(blah blah blah
in OnPlayerEnterVehicle
Code:
if(GetPlayerVehicleID(playerid) == police1)
RemovePlayerFromVehicle(playerid);
}
An example...if you have 5 police cars you have to do this:
Code:
police1 = AddStaticVehicle(blah blah blah
police2 = AddStaticVehicle(blah blah blah
police3 = AddStaticVehicle(blah blah blah
police4 = AddStaticVehicle(blah blah blah
police5 = AddStaticVehicle(blah blah blah
in OnPlayerEnterVehicle
Code:
if(GetPlayerVehicleID(playerid) == police1)
RemovePlayerFromVehicle(playerid);
}
if(GetPlayerVehicleID(playerid) == police2)
RemovePlayerFromVehicle(playerid);
}
if(GetPlayerVehicleID(playerid) == police3)
RemovePlayerFromVehicle(playerid);
}
if(GetPlayerVehicleID(playerid) == police4)
RemovePlayerFromVehicle(playerid);
}
if(GetPlayerVehicleID(playerid) == police5)
RemovePlayerFromVehicle(playerid);
}
Thats it

Reply


Messages In This Thread
PoliceCars only for Police Officers - by luma - 23.05.2008, 16:22
Re: PoliceCars only for Police Officers - by wafffllesss - 23.05.2008, 16:36
Re: PoliceCars only for Police Officers - by luma - 23.05.2008, 16:39
Re: PoliceCars only for Police Officers - by wafffllesss - 23.05.2008, 16:40
Re: PoliceCars only for Police Officers - by alleras - 23.05.2008, 23:43
Re: PoliceCars only for Police Officers - by luma - 24.05.2008, 04:00
Re: PoliceCars only for Police Officers - by Damon_Black - 24.05.2008, 04:09
Re: PoliceCars only for Police Officers - by Mobst3r111 - 27.05.2009, 09:16
Re: PoliceCars only for Police Officers - by Jakku - 27.05.2009, 09:20

Forum Jump:


Users browsing this thread: 5 Guest(s)