Question and help
#4

pawn Код:
new data[30];
format(data, sizeof(data), "players online: %d.", CountingOnlinePlayers());
TextDrawSetString(Text:text, data);
pawn Код:
stock CountingOnlinePlayers(){
    new count=0;
    for(new player, user = GetMaxPlayers(); player != user; player++){
        if(IsPlayerConnected(player)){count++;}
    }return count;
}
Reply


Messages In This Thread
Question and help - by MahdiGames - 07.01.2014, 21:51
Re: Question and help - by MahdiGames - 07.01.2014, 22:06
Respuesta: Question and help - by Swedky - 07.01.2014, 22:15
Respuesta: Question and help - by OTACON - 07.01.2014, 22:50
Re: Question and help - by MahdiGames - 08.01.2014, 11:58

Forum Jump:


Users browsing this thread: 1 Guest(s)