make from civilian vehicle to police vehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: make from civilian vehicle to police vehicle (
/showthread.php?tid=96931)
make from civilian vehicle to police vehicle -
breakpaper - 11.09.2009
hello everyone
i see by every GM a car that is a civilian vehicle but it is for cops
so it's a infernus LSPD or something!
and a fully black LSPD car
how to do something like that?
Re: make from civilian vehicle to police vehicle -
The_Tough - 11.09.2009
You can like if you got a system
Code:
OnPlayerEnterVehicle(playerid,vehicleid){
If(Job == 7 // player id's job)
{
return 1;
}
if(Job != 7)
{
SendClientMessage(playerid,0xFF0000AA,"You must be cop to enter the vehicle");
return 0; // or RemovePlayerFromVehicle
}
}
Re: make from civilian vehicle to police vehicle -
breakpaper - 11.09.2009
i mean
how to make a infernus or something in place of random color:
black?
Re: make from civilian vehicle to police vehicle -
The_Tough - 11.09.2009
a_samp.inc in your function list...native AddStaticVehicle(modelid, Float
pawn_x, Float
pawn_y, Float
pawn_z, Float:z_angle, color1, color2);