24.08.2012, 03:41
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!
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!