SA-MP Forums Archive
[FilterScript] [FS]Fix Your Car ! CarFix FS - 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] [FS]Fix Your Car ! CarFix FS (/showthread.php?tid=293848)



[FS]Fix Your Car ! CarFix FS - DaBeezy - 30.10.2011

Fix Your Car FS :
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
You can Download it :
Here



Re: [FS]Fix Your Car ! CarFix FS - SampEver1 - 30.10.2011

Eh Easy


Re: [FS]Fix Your Car ! CarFix FS - DaBeezy - 30.10.2011

yes, i was board


Re: [FS]Fix Your Car ! CarFix FS - Kostas' - 30.10.2011

It's totally the same with this!
Only speediekiller2 has Message on Connect.


Re: [FS]Fix Your Car ! CarFix FS - DaBeezy - 30.10.2011

You mean i copy it? Why Should i? as that guy said its EAZY, all can do it but i done this for newbies
and all car fix are same


Re: [FS]Fix Your Car ! CarFix FS - Kostas' - 30.10.2011

Quote:
Originally Posted by DaBeezy
Посмотреть сообщение
You mean i copy it? Why Should i? as that guy said its EAZY, all can do it but i done this for newbies
and all car fix are same
Isn't excacty the same. Other Set only health to 1000, others set health + repair body.
I don't think so because it's easy all people have the same mind to use the same sound
pawn Код:
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);



Re: [FS]Fix Your Car ! CarFix FS - DaBeezy - 30.10.2011

Yeah, but nvm is for newbies


Re: [FS]Fix Your Car ! CarFix FS - Reeshan - 16.11.2011

cool it works..!


Re: [FS]Fix Your Car ! CarFix FS - Chrillzen - 16.11.2011

This has already been realesed and dont post small snippets as fs.


Re: [FS]Fix Your Car ! CarFix FS - Astralis - 16.11.2011

I had it in server,but removed due derby and drive by.