[Ajuda] Mandando 2 VEZ, Chat Local.
#2

tenta assim

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[128], playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    format(string, sizeof(string), "%s {FFFFFF}[ID:%i]: %s", playername, playerid, text);
    SendClientMessageToAll(GetPlayerColor(playerid), string);
    if(text[0] == ';')
    {
        new Float:Pos[3], Name[24],aString[256];
       
        GetPlayerName(playerid, Name, sizeof(Name));
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
       
        format(aString, sizeof(aString), "{007ACC}[CHAT LOCAL]: %s Disse: %s", Name, text[1]);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerInRangeOfPoint(i, 50.0, Pos[0], Pos[1], Pos[2]))
            {
                SendClientMessage(i, -1, aString);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Mandando 2 VEZ, Chat Local. - by LucaAllexandre - 11.08.2013, 18:30
Re: Mandando 2 VEZ, Chat Local. - by PT - 11.08.2013, 18:42
Re: Mandando 2 VEZ, Chat Local. - by LucaAllexandre - 11.08.2013, 18:50
Respuesta: Mandando 2 VEZ, Chat Local. - by ViniKuliveguisky - 11.08.2013, 18:54
Re: Mandando 2 VEZ, Chat Local. - by PT - 11.08.2013, 18:56
Re: Mandando 2 VEZ, Chat Local. - by BieeelEvolution - 11.08.2013, 18:59

Forum Jump:


Users browsing this thread: 1 Guest(s)