30.10.2011, 08:59
Fix Your Car FS :
This made By Me, i was bored so i made it, Here the Script :
You can Download it :
Here
This made By Me, i was bored so i made it, Here the Script :
pawn Код:
// Credits to SBeezy(DaBeeZy)
// Don't Copy it and use it as Your FS
// Thanks for Using It
#include <a_samp>
#define FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" CarFix By SBeezy, Press 2 To Fix Your Car");
print("--------------------------------------\n");
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_SUBMISSION))
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid, vehicleid))
{
SetVehicleHealth(vehicleid,1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SendClientMessage(playerid,COLOR_YELLOW,"Vehicle Repaired");
}
}
if(PRESSED(KEY_ACTION))
{
if(IsPlayerNotInVehicle(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"Are you a Dumb? you need to be in a Vehicle");
}
}
}
#endif
// DaBeezy
Here