[Ajuda] Repetiзгo de mensagens
#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


Messages In This Thread
Repetiзгo de mensagens - by Gabriel Santana - 20.08.2012, 00:35
Re: Repetiзгo de mensagens - by leonardo1434 - 20.08.2012, 00:41
Re: Repetiзгo de mensagens - by Gabriel Santana - 20.08.2012, 00:46

Forum Jump:


Users browsing this thread: 2 Guest(s)