06.02.2009, 18:09
How do I stop falling Health? Help please.

new playergod[playerid];
//UnderGameModeInit
SetTimer("God",1000,1);
//Any where
forward God();
public God()
{
for (new i = 0;i < MAX_PLAYERS;i ++)
{
if (playergod[i] == 1)
{
SetPlayerHealth(i,100);
}
}
return 1;
}
//OnPlayerCommandText
if(strcmp(cmdtext, "/god", true) == 0)
{
playergod[playerid] = 1;
}
if(strcmp(cmdtext, "/notgod", true) == 0)
{
playergod[playerid] = 0;
}
new playergod[playerid];
new playergod[playerid];
new playergod[200];
Originally Posted by Jefff
Код:
new playergod[playerid]; Код:
new playergod[200]; |
Originally Posted by ArcticFox
Quote:
Edit: what you made there will never work what he whants |
Originally Posted by !MaVe
Quote:
|
//OnGameModeInit
SetTeamCount(2);
//OnPlayerConnect
SetPlayerTeam(playerid, 0);
Originally Posted by Mikeshake
Fox, theres no need for a timer!
SetPlayerHealth(playerid, 100000); << Godmode |