/godcar, and /godcaroff help
#6

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

//Somewhere between all the Callbacks (public's)
COMMAND:godcar(playerid, cmdtext)
{
    if(!VehicleGodmode) VehicleGodmode = true;
    if(VehicleGodmode) VehicleGodmode = false;
}

//under "OnPlayerUpdate(playerid)" Callback (public)
if(VehicleGodmode) return RepairVehicle(GetPlayerVehicleID(playerid));
This should completly work.
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: 3 Guest(s)