[FilterScript] FireNitro
#1

Fire from exhaust when you use nitro! If you lilke it give me rep+ thx!

Download FireNitro




Download FireNitro


PHP код:

  
#define FILTERSCRIPT
  #include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"FS: FireNitro / Scripter skype: rev1se");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"FS: FireNitro / Scripter skype: rev1se");
}
#endif
  
new CarFireObj[MAX_PLAYERS]; // top
 #define HOLDING(%0) \
     
((newkeys & (%0)) == (%0))
 
#define RELEASED(%0) \
     
(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
 public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
 {
     if (
HOLDING))// if player start use nitro
     
{
         if(
IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
         {
             if(
IsValidObject(CarFireObj[playerid]) == 0)//add fire object when player use nitro
             
{
                 
GameTextForPlayer(playerid"~r~FireNitro! ~g~Skype: ~p~rev1se"10001);
                 
CarFireObj[playerid] = CreateObject(186940.00.00.00.00.00.0);
                 
AttachObjectToVehicle(CarFireObj[playerid], GetPlayerVehicleID(playerid), 0.0, -2.31.2180.00.00.0);
             }
         }
     }
     if (
RELEASED))// if player stop use nitro remove fire object
     
{
         if(
IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
         {
             if(
IsValidObject(CarFireObj[playerid]) == 1)DestroyObject(CarFireObj[playerid]);// delete fire object
         
}
     }
     return 
1;
 } 
Reply


Messages In This Thread
FireNitro - by brawrr - 04.05.2013, 19:54
Re: FireNitro - by Error000 - 04.05.2013, 21:30
Re: FireNitro - by brawrr - 06.05.2013, 08:57
Re: FireNitro - by J4mmyHD - 06.05.2013, 10:24
Re: FireNitro - by Mark_Samp - 06.05.2013, 21:41
Re: FireNitro - by NeStOr95 - 07.05.2013, 09:39
Re: FireNitro - by ahmad95 - 07.05.2013, 15:08
Re: FireNitro - by RedFusion - 07.05.2013, 17:51
Re: FireNitro - by Isolated - 07.05.2013, 17:58
Re: FireNitro - by WayneWalker - 25.07.2013, 23:38

Forum Jump:


Users browsing this thread: 1 Guest(s)