/godcar, and /godcaroff help
#3

Since MidoTrick's script code is messed up by 3 things, I made a re-make of his script.
Credit's goes to him.

pawn Code:
///Somewhere on top of your script
new bool:HasVehicleGodmode[MAX_PLAYERS];


//Under OnGameModeInit
SetTimer("Actualize", 2000, true);


//Under your Command Godmode (ON)
HasVehicleGodmode[playerid] = true;

//Under your Command Godmode (OFF)
HasVehicleGodmode[playerid] = false;


//Somewhere between all the Callbacks (public's)
forward AutoR(playerid);
public AutoR(playerid)
{
    if(IsPlayerInAnyVehicle(playerid) && HasVehicleGodmode[playerid])
    {
        new vid = GetPlayerVehicleID(playerid);
        RepairVehicle(vid);
    }
    return 1;
}
Reply


Messages In This Thread
/godcar, and /godcaroff help - by BigAl - 22.08.2011, 15:17
Re: /godcar, and /godcaroff help - by [MWR]Blood - 22.08.2011, 15:22
Re: /godcar, and /godcaroff help - by Improvement™ - 22.08.2011, 15:30
Re: /godcar, and /godcaroff help - by BigAl - 22.08.2011, 15:31
Re: /godcar, and /godcaroff help - by Dragony92 - 22.08.2011, 16:01
Re: /godcar, and /godcaroff help - by Improvement™ - 22.08.2011, 16:47
Re: /godcar, and /godcaroff help - by =WoR=G4M3Ov3r - 22.08.2011, 17:15

Forum Jump:


Users browsing this thread: 6 Guest(s)