Posts: 305
Threads: 82
Joined: Dec 2015
Reputation:
0
Hello Guys ,anyone Have an online Players count [Fs] Or can tell me how to make it
Exm: Players Online: 13/20 like in photo
Posts: 1,939
Threads: 11
Joined: Oct 2015
Reputation:
0
Use foreach
and use Iter_Count(Player)
Posts: 1,219
Threads: 51
Joined: Jul 2012
Pretty easy, that's pseudo code!:
PHP код:
new players = 0;
public OnPlayerConnect(...)
{
players++;
updateYourTextDraw;
}
public OnPlayerDisconnect(...)
{
players--;
updateYourTextDraw;
}
updateYourTextDraw()
{
new playerString[30];
format(playerString, 30, "Players %d/MAX", players);
TextDrawSetString(yourTextDraw, playerString);
}
Posts: 305
Threads: 82
Joined: Dec 2015
Reputation:
0
how i can add my text draw ?
please explain more couse idk anything about textdraw
Posts: 1,219
Threads: 51
Joined: Jul 2012
Read it up on the wikipedia , it's not difficult
Posts: 305
Threads: 82
Joined: Dec 2015
Reputation:
0
bro you can make it? for me?
Posts: 1,219
Threads: 51
Joined: Jul 2012
I am not your scripter, and i am not willing to make that , sry, you should put some effort into it if you want it to be done
Posts: 305
Threads: 82
Joined: Dec 2015
Reputation:
0
iam not said you are my scripter but u must help me if i need more help or give me link of that site to learn it
Posts: 1,219
Threads: 51
Joined: Jul 2012