31.05.2009, 18:25
Quote:
Originally Posted by JoshTheBoss
the /god is easy
at the top: Код:
forward godmode (playerid); new godmode; new GodActive[MAX_PLAYERS]; Код:
public godmode (playerid) { SetPlayerHealth(playerid,500.0); return 1; } Код:
if (strcmp("/GodMode", cmdtext, true, 10) == 0) { if (GodActive[playerid] == 0) { GodModeActive[playerid] = 1; SendClientMessage(playerid,COLOR,"god on"); SetTimer("godmode", 200,1); } else { if (GodActive[playerid] == 1) { GodActive[playerid] = 0; SendClientMessage(playerid, COLOR_YELLOW, "god off"); KillTimer(godmode); } } } |