How to make Police Infernus ?[+REP] - 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)
+--- Thread: How to make Police Infernus ?[+REP] (
/showthread.php?tid=536001)
How to make Police Infernus ?[+REP] -
EgyptForLife - 06.09.2014
Hello again,
I want to know how to create a police infernus , which is a normal infernus ( white color ) written on it on the back of the car "POLICE" and whistle on the roof that lights glow at pressing H. And same i want to make a bullet but no text, and the small whistle that i'll be on the roof. The small whistle that look like a circle.
The one who help me will get +REP from me !
Re: How to make Police Infernus ?[+REP] -
Abagail - 06.09.2014
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_HORN && GetPlayerVehicleID(playerid) == VEHICLE_BULLET && IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(!HORN_ACTIVATED[GetPlayerVehicleID[playerid]) {
// Place the attach object code here.
HORN_ACTIVATED[vehicleid] = 1;
// stream the audio here maybe
return true;
}
else {
HORN_ACTIVATED[vehicleid] = 0;
// Detach the object/stop the stream etc.
return true;
}
}
}
Note, you'll need to get your own attach object codes. Additionally, you can use a streamer for more glowing options I believe.
Re: How to make Police Infernus ?[+REP] -
EgyptForLife - 06.09.2014
I want it for cops only ( Factions ids = 1 , 2 and 3 ). And that if someone ride in them, and not a cop he get auto kicked FROM CAR. + I want one for infernus with the POLICE text plz.