Help autofix command
#9

PHP код:
new AutoFix[MAX_PLAYERS];
public 
OnVehicleDamageStatusUpdate (vehicleidplayerid)
{
     if(
AutoFix[playerid] == 1)
     {
          
RepairVehicle(vehicleid);
     }
     return 
1;
}
CMD:autofix(playerid,params[])
{
    switch(
AutoFix[playerid])
    {
        case 
0AutoFix[playerid] = 1SendClientMessage(playerid,-1,"Auto-Fixed Disabled !");
        case 
1AutoFix[playerid] = 0SendClientMessage(playerid,-1,"Auto-Fixed Enabled !");
    }
    return 
1;

Try my one,
It's faster, better.
Reply


Messages In This Thread
Help autofix command - by Fpwn - 11.10.2017, 06:29
Re: Help autofix command - by Kane - 11.10.2017, 07:04
Re: Help autofix command - by raydx - 11.10.2017, 07:54
Re: Help autofix command - by kAn3 - 11.10.2017, 11:53
Re: Help autofix command - by Kyle - 11.10.2017, 12:03
Re: Help autofix command - by AlamoTR - 11.10.2017, 12:07
Re: Help autofix command - by 0x88 - 11.10.2017, 12:17
Re: Help autofix command - by Kyle - 11.10.2017, 13:18
Re: Help autofix command - by FuNkYTheGreat - 11.10.2017, 13:34
Re: Help autofix command - by Fpwn - 11.10.2017, 17:03

Forum Jump:


Users browsing this thread: 2 Guest(s)