[Ajuda] Desabilitar Chat Global E Habilitar Um Prуximo
#7

//Chat Perto:
pawn Код:
public OnPlayerText(playerid, text[])
{
    static
        Float:Y,
        Float:X,
        Float:Z;
    GetPlayerPos(playerid, X, Y, Z);
    for(new i, e = GetMaxPlayers(); i != e; i++)
    {
        if(IsPlayerInRangeOfPoint(i, 100.0, X, Y, Z))
        {
            if(IsPlayerConnected(i))
            {
                SendClientMessage(i, -1, text);
            }
        }
    }
    return 1;
}

// Chat Global:
pawn Код:
if(!strcmp(cmdtext,"/E", true, 1))
{
    if(!cmdtext[3])
        return SendClientMessage(playerid, -1, "/e <texto>");
       
    new str[128];
    new Nom[24];
    GetPlayerName(playerid, Nom, 24);
    format(str, sizeof(str),"%s Diz: %s", Nome, cmdtext[3]);
    SendClientMessageToAll(-1, str);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)