[Ajuda] Bug com chat prуximo
#2

PHP Code:
//Coloca no inнcio do GM, para mais otimizaзгo.
new zName[24];
stock ReturnName(playerid)
{
    
GetPlayerName(playeridzName24);
    return 
zName;
}
static
        
Float:cPos[3];
    
GetPlayerPos(playeridcPos[0], cPos[1], cPos[2]);
    for(new 
i!= MAX_PLAYERS; ++i)
    {
        if(
IsPlayerInRangeOfPoint(i100.0cPos[0], cPos[1], cPos[2]))
        {
            if(
IsPlayerConnected(i))
            {
                new 
string[256];
                
format(string,sizeof(string),"[%d] %s diz: %s"playeridReturnName(playerid), text);
                
SendClientMessage(i, -1text);
            }
        }
    }
    return 
0;

Reply


Messages In This Thread
Bug com chat prуximo - by RayanSanty - 16.03.2019, 01:29
Re: Bug com chat prуximo - by GuiKommander - 16.03.2019, 01:40
Re: Bug com chat prуximo - by RayanSanty - 16.03.2019, 02:02
Re: Bug com chat prуximo - by FerrariL - 16.03.2019, 02:40
Re: Bug com chat prуximo - by RayanSanty - 16.03.2019, 02:44
Re: Bug com chat prуximo - by FerrariL - 16.03.2019, 02:46
Re: Bug com chat prуximo - by RayanSanty - 16.03.2019, 02:47

Forum Jump:


Users browsing this thread: 1 Guest(s)