How to make a loop to add playerid?
#1

How could I make a loop or some other way to use playerid in CallBacks that have no playerid in their structure?
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)