undefine gsString
#1

I wanted to know how to create like when someone joins the server then it should say like There are currently 2players online
Reply
#2

Hello!

PHP код:
new players_online;
for(new 
i;i<MAX_PLAYERS;i++)
{
    if(!
IsPlayerConnected(i))continue;
    if(
IsPlayerNPC(i))continue;
    
players_online ++;
}
//players_online has the value of the online players 
Can you do anything with this?


- Mencent
Reply
#3

You can use this function!

https://sampwiki.blast.hk/wiki/GetPlayerPoolSize!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)