fixveh command
#9

Okay so I made it for you a filterscript, but only for RCON admins(You can't put Aduty and stuff if it's not in your gamemode.
This will work for sure.(AS A FILTERSCRIPT)
Here it is:
pawn Код:
#include <a_samp>
#include <zcmd>

#define FILTERSCRIPT

#define COLOR_GREY  0x00000041

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Vehicle fix by Jimmy to Jhony :D");
    print("--------------------------------------\n");
    return 1;
}

CMD:fixvehall(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    for(new i = 0; i < MAX_VEHICLES; i++)
    {
    SetVehicleHealth(i, 1000.0);
    RepairVehicle(i);
    SendClientMessage(playerid, COLOR_GREY, "All vehicles fixed.");
    return 1;
    }
    return 1;
}


CMD:fixveh (playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    if(IsPlayerInAnyVehicle(playerid))
    {
    RepairVehicle(GetPlayerVehicleID(playerid));
    SendClientMessage(playerid, COLOR_GREY, "   You have fixed your vehicle !");
    }
    return 1;
}
Reply


Messages In This Thread
fixveh command - by Jhony_Blaze - 30.07.2013, 11:04
Re: fixveh command - by JimmyCh - 30.07.2013, 11:13
Re: fixveh command - by Jimmy0wns - 30.07.2013, 11:14
Re: fixveh command - by morocco - 30.07.2013, 11:15
Re: fixveh command - by Jhony_Blaze - 30.07.2013, 11:15
Re: fixveh command - by JimmyCh - 30.07.2013, 11:17
Re: fixveh command - by Jhony_Blaze - 30.07.2013, 11:19
Re: fixveh command - by Konstantinos - 30.07.2013, 11:21
Re: fixveh command - by JimmyCh - 30.07.2013, 11:24
Re: fixveh command - by Jhony_Blaze - 30.07.2013, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)