Posts: 108
Threads: 29
Joined: Jul 2010
Reputation:
0
For my server I want people to have infinite health like /god for that would I do this
Under on player spawn do I just add
SetPlayerHealth(playerid, 9999);
Posts: 2,938
Threads: 162
Joined: May 2010
Ya OnPlayerSpawn
SetPlayerHealth(playerid, 99999);
or do you want a timer that will that will set there health back to 9999 every second?(bad idea though)
Posts: 108
Threads: 29
Joined: Jul 2010
Reputation:
0
Well I don't care asking as they have infinite health
thx =>
Posts: 2,938
Threads: 162
Joined: May 2010
lol onplayerupdate....
// ongamemodeinit
pawn Код:
SetTimer("HealthRepair", 1000, true);//1 seconds
// Somewhere in your script
pawn Код:
forward HealthRepair();
public HealthRepair()
{
for(new i=0; i < MAX_PLAYERS; i++)
{
SetPlayerHealth(i,1000);
}
return 1;
}
Posts: 108
Threads: 29
Joined: Jul 2010
Reputation:
0
I think I'm gonna use kar thingo he said