Count online players
#1

Hello, is there a function that I can use in a string to count the amount of online players?

like

blabla just joined, He is player ( NUMBER OF PLAYERS HERE ) online
Reply
#2

theres one you can download over here

Simple Filterscript

it includes player counting system
Reply
#3

pawn Code:
new count = 0,
    string[64],
    name[24];

public OnPlayerConnect(playerid)
{
    count++;
    GetPlayerName(playerid,name,24);
    format(string,sizeof(string),"%s has joined! He is player number %d",name,count);
    SendClientMessageToAll(-1,string);
    return 1;
}
public OnPlayerDisconnect(playerid)
{
    count--;
    return 1;
}
Reply
#4

thanks anyway, but made my own
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)