How to make Police Infernus ?[+REP]
#1

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 !
Reply
#2

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.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)