[AJUDA] Com Comando aqui!
#1

Galera, eu peguei o comando de um outro GM e fui copiando letra por letra e fazendo as modificaзхes nele para colocar no meu GM de Gang War, sу que ele esta meio problematico. Sei la '-'.

Quando eu seto o level de alguem seta normal mas a mensagem que vem pra mim й que setei meu proprio level ¬¬' e quando outra pessoa usa funfa normal '-'

Parece que o problema esta so com o ID 0, meu amigo testo e ele entro com ID 1 ai pra ele aparece que seto meu level direitinho, mas pra mim ainda apareceu que to setando meu proprio level ¬¬!

aqui o comando:

PHP код:
if(strcmp(cmd"/setlevel"true) == 0)
    {
            new 
string[128];
            new 
plo;
            new 
Level;
            new 
iddele;
            new 
giveplayername[MAX_PLAYER_NAME];
            if(!
IsPlayerAdmin(playerid))
            {
                
SendClientMessage(playeridCOR_CINZA1," Vocк nгo й Administrador!");
                return 
0x01;
            }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOR_CINZA2,"Uso correto: /setlevel [id player] [level]");
                return 
0x01;
            }
            
iddele strval(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOR_CINZA3,"Uso correto: /setlevel [id player] [level]");
                return 
0x01;
            }
            if(!
IsPlayerConnected(iddele))
            {
                
SendClientMessage(playeridCOR_CINZA1,"Jogador estб OffLine");
                return 
0x01;
            }
            
Level strval(tmp);
            if(
iddele != INVALID_PLAYER_ID)
              {
                
GetPlayerName(plogiveplayernamesizeof(giveplayername));
                
GetPlayerName(playeridnomefodasizeof(nomefoda));
                
format(stringsizeof(string), "Vocк setou o level do %s para %d "giveplayernameLevel);
                
SendClientMessage(playeridCOR_VERDEstring);
                
format(stringsizeof(string), "O administrador %s setou seu level para %d"nomefodaLevel);
                
SendClientMessage(iddeleCOR_VERDEstring);
                
SetPlayerScore(iddeleLevel);
                }
            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: 2 Guest(s)