[Ajuda] Repetiзгo de mensagens
#1

Vejam a imagem, explica tudo.


Um erro. Na primeira frase й "Quando estou sozinho e coloco o comando '/coletet' ..."

Cуdigo do comando:

pawn Код:
CMD:coletet(playerid)
{
    new Float:X, Float:Y, Float:Z;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VERMELHO, "ERRO: Vocк nгo й um adiministrador para usar esse comando.");
    GetPlayerPos(playerid, X, Y, Z);
    for(new x = 0; x < MAX_PLAYERS; x++) {
    if(IsPlayerInRangeOfPoint(x, 50.0, X, Y, Z))
{
    SetPlayerArmour(x, 100);
    new nome[MAX_PLAYER_NAME], stringnome[300];
    GetPlayerName(playerid, nome, sizeof(nome));
    format(stringnome, sizeof(stringnome), "AdmCMD: O jogador %s deu colete a todos perto dele.",nome);
    SendClientMessageToAll(ROXOCLARO, stringnome);
}
}
    return 1;
}
Reply
#2

pawn Код:
CMD:coletet(playerid)
{
    new Float:X, Float:Y, Float:Z;
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, VERMELHO, "ERRO: Vocк nгo й um adiministrador para usar esse comando.");
    GetPlayerPos(playerid, X, Y, Z);
    for(new x = 0; x < MAX_PLAYERS; x++) {
        if(IsPlayerInRangeOfPoint(x, 50.0, X, Y, Z)) {
            SetPlayerArmour(x, 100);
            new nome[MAX_PLAYER_NAME], stringnome[80];
            GetPlayerName(playerid, nome, sizeof(nome));
            format(stringnome, sizeof(stringnome), "AdmCMD: O jogador %s deu colete a todos perto dele.",nome);
            SendClientMessage(x,ROXOCLARO, stringnome);
        }
    }
    return 1;
}
Reply
#3

Vlw.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)