Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Easy car fix system - Made by DavidSparks.
- #include <a_samp>
- #if defined FILTERSCRIPT
- #define COLOR_GREY 0xAFAFAFAA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- CMD:fix(playerid, params[])
- {
- if(IsPlayerConnected(playerid)) {
- if(IsPlayerInAnyVehicle(playerid)) {
- RepairVehicle(GetPlayerVehicleID(playerid));
- SendClientMessageEx(playerid, COLOR_GREY, " Vehicle Fixed!");
- }
- }
- return 1;
- }
- CMD:fixall(playerid, params[])
- {
- if(IsPlayerConnected(playerid)) {
- if(IsPlayerAdmin(playerid))
- for(new v = 0; v < MAX_VEHICLES; v++) {
- RepairVehicle(v);
- }
- SendClientMessageEx(playerid, COLOR_GREY, " All vehicles fixed!");
- }
- else
- {
- SendClientMessageEx(playerid, COLOR_GREY, " You are not authorized to do this!");
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement