How to make a loop to add playerid?
#2

PHP код:
public CB()
{
     for(new 
0GetMaxPlayers();i++)
     {
           if(!
IsPlayerConnected(i) || IsPlayerNPC(i)) continue; //skip if player is not connected or npc
           
SetPlayerHealth(i100.0); //example set player health to 100
     
}
     return 
1;

Reply


Messages In This Thread
How to make a loop to add playerid? - by Romero837 - 30.06.2017, 17:47
Re: How to make a loop to add playerid? - by Whatname - 30.06.2017, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)