[Ajuda] PLayers on
#1

Fiz um textdraw e quero por para pegar os players on e mostrar como faзo esse looping dos players on?
Reply
#2

PHP код:
new online;
for(new 
i; i < MAX_PLAYERS+1; i++)
{
    if(
IsPlayerConnected(i))
    {
        
online++;
    }
} 
Reply
#3

Quote:
Originally Posted by IlanZ
Посмотреть сообщение
PHP код:
new online;
for(new 
i; i < MAX_PLAYERS+1; i++)
{
    if(
IsPlayerConnected(i))
    {
        
online++;
    }
} 
e pra vincular com a textdraw?
Reply
#4

Use TextDrawShowForAll
PHP код:
new Text:textid = TextDrawCreate(100.0, 100.0, "Texto");
TextDrawShowForAll(textid); 
Reply
#5

TextDrawSetString, tem na wiki.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)