Help autofix command
#7

Quote:
Originally Posted by AlamoTR
Посмотреть сообщение
PHP код:
new AutoFix[MAX_PLAYERS];
public 
OnPlayerUpdate(playerid)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        if(
AutoFix[playerid] == 1)
        {
            
RepairVehicle(GetPlayerVehicleID(playerid));
        }
    }
    return 
1;
}
CMD:autofix(playerid,params[])
{
    switch(
AutoFix[playerid])
    {
        case 
0AutoFix[playerid] = 1;
        case 
1AutoFix[playerid] = 0;
    }
    return 
1;

PHP код:
new AutoFix[MAX_PLAYERS];
public 
OnPlayerUpdate(playerid)
{
    if(
GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        if(
AutoFix[playerid] == 1)
        {
            
RepairVehicle(GetPlayerVehicleID(playerid));
        }
    }
    return 
1;
}
CMD:autofix(playerid,params[])
{
       
AutoFix[playerid] = !AutoFix[playerid];
       return 
1;

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: 1 Guest(s)