30.07.2013, 11:24
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:
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;
}