[Pedido] Aзгo do personagem
#7

Quote:
Originally Posted by Maxwilson01
View Post
PHP Code:
stock(const string)
{
    
//new string[128];  
    
format(stringsizeof(string), "*** %s estб roubando a pqp"sendernameresult);  
    for(new 
iMAX_PLAYERSi++) 
    { 
        if(
IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i30.0x,y,z)) 
        { 
        
SendClientMessage(playerid, -1string);  
        } 
    }
  return 
true;

Era isso?

Vocк pode usar desse jeito, com getMaxPlayers a diferenзa do Max_Players que vocк percorre todo os slots do servidor, jб o getMaxPlayers ele puxa o maximo de jogadores conectado.

PHP Code:

stock
(const string)
{
    
//new string[128];  
    
format(stringsizeof(string), "*** %s estб roubando a pqp"sendernameresult);  
    for(new 
iGetMaxPlayers(); i++) 
    { 
        if(
IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i30.0x,y,z)) 
        { 
        
SendClientMessage(playerid, -1string);  
        } 
    } 
   return 
true;

GetMaxPlayer й mais lento que MAX_PLAYERS, uma boa opзгo й usar GetPlayerPoolSize.
Reply


Messages In This Thread
Aзгo do personagem - by zCyan - 03.08.2017, 21:51
Re: Aзгo do personagem - by ScripitrFaunu - 03.08.2017, 22:03
Re: Aзгo do personagem - by zCyan - 03.08.2017, 22:06
Re: Aзгo do personagem - by IlanZ - 03.08.2017, 22:16
Re: Aзгo do personagem - by zCyan - 03.08.2017, 22:31
Re: Aзгo do personagem - by Maxwilson01 - 04.08.2017, 02:38
Re: Aзгo do personagem - by LucasF - 04.08.2017, 13:05
Re: Aзгo do personagem - by IlanZ - 04.08.2017, 15:20
Re: Aзгo do personagem - by Maxwilson01 - 04.08.2017, 16:08
Re: Aзгo do personagem - by GuilhermeNunes - 04.08.2017, 17:53
Re: Aзгo do personagem - by IlanZ - 04.08.2017, 18:06
Re: Aзгo do personagem - by zCyan - 04.08.2017, 19:37

Forum Jump:


Users browsing this thread: 5 Guest(s)