[Ajuda] <y> Chat Proximo <y>
#3

pawn Code:
public OnPlayerText(playerid, text[]) {

    new i, Float:Pos[3], str[128], Nome[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    GetPlayerName(playerid, Nome, MAX_PLAYER_NAME);
   
    format (str, 128, "%s diz %s", Nome, text);
   
    for ( i = 0; i < MAX_PLAYERS; ++i) {
   
        if ( IsPlayerConnected(i) && IsPlayerInRangeOfPoint(playerid, 10.0, Pos[0], Pos[1], Pos[2]) ) {
       
            SendClientMessage(i, -1, str);
            PlayerPlaySound(i, 0.0, 0.0, 0.0);
        }
    }
    return 0;
}
Reply


Messages In This Thread
<y> Chat Proximo <y> - by i7Core - 21.01.2014, 17:15
Re: <y> Chat Proximo <y> - by StreetGT - 21.01.2014, 17:19
Re: <y> Chat Proximo <y> - by Gii - 21.01.2014, 17:21
Re: <y> Chat Proximo <y> - by JonathanFeitosa - 21.01.2014, 17:24
Re: <y> Chat Proximo <y> - by i7Core - 21.01.2014, 17:28

Forum Jump:


Users browsing this thread: 1 Guest(s)