22.03.2010, 10:58
good morning everbody^^,
i need a little code to turn GodMode on or off for only the player.
The command should be the same to turn on or off.
There is my GodMode:
i need a little code to turn GodMode on or off for only the player.
The command should be the same to turn on or off.
There is my GodMode:
pawn Код:
public GodMode(playerid)
{
for (new i = 0; i < MAX_VEHICLES; i++)
{
for (new id = 0; id < MAX_PLAYERS; id++)
{
if(GetPlayerHealth(id) <= 99) {
SetPlayerArmour(id, 100);
SetPlayerHealth(id, 100);
}
RepairVehicle(i);
}
}
}
return 1;
}