[FilterScript] [FS]Fix Your Car ! CarFix FS
#1

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
Reply
#2

Eh Easy
Reply
#3

yes, i was board
Reply
#4

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

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
Reply
#6

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);
Reply
#7

Yeah, but nvm is for newbies
Reply
#8

cool it works..!
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 2 Guest(s)