[FilterScript] Nos/Fix/Flip
#10

thats because its not his dude lol..

Emard copied an pasted it from the scripting section on my website..

http://www.driftgodz.com/t1663-anyon...ving-me-a-hand

TenseSnail wrote:
Thanks!

It fixed the damage updating, but the nos still has to held in. but if you check the Vehicle Info through samp the vehicle auto updates to 1000.0 health without being pressed. When I get a chance i'll post a video of what I am talking about to make it easier to explain.
I think my code is just shitty, lolz I am starting to know how you feel Killa, it's pretty frustrating. and thanks!



Oh My bad i didn't understand lol!

Code:

#include <a_samp>

#define FILTERSCRIPT


#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
return 1;

}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SUBMISSION))
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
RepairVehicle(GetPlayerVehicleID(playerid));
SetVehicleHealth(GetPlayerVehicleID(playerid),1000 );
AddVehicleComponent(GetPlayerVehicleID(playerid),1 010);
}
if(IsPlayerNotInVehicle(playerid))
{
}
}
return 1;
}
#endif


Try that :Razz:



Emard, How Rude!
Reply


Messages In This Thread
Nos/Fix/Flip - by Eiy Mard - 11.03.2012, 07:12
Re: Nos/Fix/Flip - by Sami Ham - 24.03.2012, 20:42
Re: Nos/Fix/Flip - by davve95 - 24.03.2012, 20:46
Re: Nos/Fix/Flip - by Awankz - 25.03.2012, 01:01
Re: Nos/Fix/Flip - by Shahil kumar - 25.03.2012, 03:53
Re: Nos/Fix/Flip - by doreto - 25.03.2012, 08:32
Re: Nos/Fix/Flip - by Mr.Sanchez - 23.08.2012, 21:50
Re: Nos/Fix/Flip - by Killa[DGZ] - 24.08.2012, 03:29
Re: Nos/Fix/Flip - by castlecity - 24.08.2012, 03:32
Re: Nos/Fix/Flip - by Killa[DGZ] - 24.08.2012, 03:41
Re: Nos/Fix/Flip - by Socan - 24.08.2012, 06:12
Re: Nos/Fix/Flip - by RenSoprano - 24.08.2012, 10:12
Re: Nos/Fix/Flip - by Eiy Mard - 28.08.2012, 16:30
Re: Nos/Fix/Flip - by Socan - 28.08.2012, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)