[AJUDA] Com Comando aqui!
#3

Tenta ai.
pawn Код:
if(strcmp(cmd, "/setlevel", true) == 0)
    {
            new string[128];
            new plo;
            new Level;
            new iddele;
            new giveplayername[MAX_PLAYER_NAME];
            new nomefoda [MAX_PLAYER_NAME];
            if(!IsPlayerAdmin(playerid))
            {
                SendClientMessage(playerid, COLOR_WHITE," Vocк nгo й Administrador!");
                return 0x01;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE,"Uso correto: /setlevel [id player] [level]");
                return 0x01;
            }
            iddele = strval(tmp);
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE,"Uso correto: /setlevel [id player] [level]");
                return 0x01;
            }
            if(!IsPlayerConnected(iddele))
            {
                SendClientMessage(playerid, COLOR_WHITE,"Jogador estб OffLine");
                return 0x01;
            }
            Level = strval(tmp);
            if(iddele != INVALID_PLAYER_ID)
              {
                GetPlayerName(plo, giveplayername, sizeof(giveplayername));
                GetPlayerName(playerid, nomefoda, sizeof(nomefoda));
                format(string, sizeof(string), "Vocк setou o level do %s para %d ", giveplayername, Level);
                SendClientMessage(playerid, COLOR_WHITE, string);
                format(string, sizeof(string), "O administrador %s setou seu level para %d", nomefoda, Level);
                SendClientMessage(plo, COLOR_WHITE, string);
                SetPlayerScore(plo, Level);
                }
            return 0x01;
            }
Reply


Messages In This Thread
[AJUDA] Com Comando aqui! - by Bruno Pereira - 13.07.2011, 20:11
Re: [AJUDA] Com Comando aqui! - by crowb14 - 13.07.2011, 20:15
Re: [AJUDA] Com Comando aqui! - by Gabriel Duarte - 13.07.2011, 20:21
Re: [AJUDA] Com Comando aqui! - by Bruno Pereira - 13.07.2011, 20:37
Re: [AJUDA] Com Comando aqui! - by Gabriel Duarte - 13.07.2011, 20:46
Re: [AJUDA] Com Comando aqui! - by Bruno Pereira - 13.07.2011, 20:57
Re: [AJUDA] Com Comando aqui! - by Gabriel Duarte - 13.07.2011, 20:58
Re: [AJUDA] Com Comando aqui! - by Bruno Pereira - 13.07.2011, 21:01
Re: [AJUDA] Com Comando aqui! - by Gabriel Duarte - 13.07.2011, 21:02
Re: [AJUDA] Com Comando aqui! - by Bruno Pereira - 13.07.2011, 21:04

Forum Jump:


Users browsing this thread: 5 Guest(s)