How to make Police Infernus ?[+REP]
#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


Messages In This Thread
How to make Police Infernus ?[+REP] - by EgyptForLife - 06.09.2014, 23:06
Re: How to make Police Infernus ?[+REP] - by Abagail - 06.09.2014, 23:11
Re: How to make Police Infernus ?[+REP] - by EgyptForLife - 06.09.2014, 23:35

Forum Jump:


Users browsing this thread: 2 Guest(s)