[Ajuda] Chat Proximo
#4

PHP Code:
public OnPlayerText(playerid, text[]) 
{ 
    if(
Player[playerid][pAdminLevel] > 0) 
    { 
        new 
string[180], Float: pPos[3]; 
        
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]); 
        
format(string, sizeof(string), "%s %s[%d]: %s", GetPlayerAdminLevel(playerid), GetPlayerNameEx(playerid), playerid, text); 
        for(new 
i = 0; i < MAX_PLAYERS; i++) 
        { 
            if(
IsPlayerInRangeOfPoint(i, 10.0, pPos[0], pPos[1], pPos[2])) 
            { 
                
SendClientMessage(i ,-1, string); 
            } 
        } 
    } 
    return 
0; 
} 
Reply


Messages In This Thread
Chat Proximo - by Cauezin - 13.03.2019, 01:24
Re: Chat Proximo - by ipsLuan - 13.03.2019, 01:33
Re: Chat Proximo - by Cauezin - 13.03.2019, 01:45
Re: Chat Proximo - by NWDMadara - 13.03.2019, 02:04
Re: Chat Proximo - by Cauezin - 13.03.2019, 02:24

Forum Jump:


Users browsing this thread: 1 Guest(s)