[FilterScript] Ehab1911's Nitrous - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Ehab1911's Nitrous (
/showthread.php?tid=261418)
Ehab1911's Nitrous -
Ehab1911 - 13.06.2011
Hello, Today I've decided to make some kind of a new Nitrous System by using the OnPlayerKeyStateChange, I've successfully made it, I am so happy, So proud!!
If you want to install it in your GM or as an FS:
ADD THIS TO THE TOP OF YOUR SCRIPT:
pawn Code:
#define RELEASED(%0) \
((newkeys & (%0)) == (%0))
#define HOLDING(%3) \
((newkeys & (%3)) == (%3))
AND REPLACE THIS:
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING( KEY_FIRE ))
{
if (IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
else if (RELEASED(KEY_FIRE))
{
RemoveVehicleComponent(GetPlayerVehicleID(playerid), 1010);
//RemoveVehicleComponent(playerid, 1010);
}
}
return 1;
}
THIS WILL WORK LIKE THE POLICE SIRENS, IF YOU CLICK TIGHTLY-HARD ON THE MOUSE BUTTON, NITROUS STARTS, AND IF YOU PRESS/RELEASE YOUR FINGER FROM IT SOFTLY-NICE IT STOPS ..
Tell me what do you think about it, and Enjoy using it :']
Re: Ehab1911's Nitrous -
The Taker - 13.06.2011
nice but any pics?
Re: Ehab1911's Nitrous -
Ehab1911 - 13.06.2011
Thank you <3, I'll be posting a Video soon ^^
Re: Ehab1911's Nitrous -
Iphone1234g - 13.06.2011
nice work! man
Re: Ehab1911's Nitrous -
Ehab1911 - 13.06.2011
Thank you =]
Re: Ehab1911's Nitrous -
BASITJALIL - 13.06.2011
Nice work Ehab
Re: Ehab1911's Nitrous -
Ehab1911 - 13.06.2011
Thank you mate
Respuesta: Ehab1911's Nitrous -
alfredo[TgR] - 13.06.2011
God Work Ehab
Re: Ehab1911's Nitrous -
Ehab1911 - 14.06.2011
*good
, Thank you Alfredo