04.05.2013, 19:54
(
Последний раз редактировалось brawrr; 06.10.2013 в 17:59.
)
Fire from exhaust when you use nitro! If you lilke it give me rep+ thx!
Download FireNitro
Download FireNitro
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(playerid, newkeys, oldkeys)
{
if (HOLDING( 4 ))// 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", 1000, 1);
CarFireObj[playerid] = CreateObject(18694, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(CarFireObj[playerid], GetPlayerVehicleID(playerid), 0.0, -2.3, 1.2, 180.0, 0.0, 0.0);
}
}
}
if (RELEASED( 4 ))// 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;
}