[AJUDA] Problemas no OnPlayerCommandText
#1

O que estб acontecendo й o seguinte, qualquer comando que eu digito, ele executa a aзгo do primeiro comando, que no caso й o /comandos, exemplo, eu digito /morrer, ele aparece as mensagens do comando /comandos.

Public OnPlayerCommandText completa abaixo:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    if(strcmp(cmd, "/comandos", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
      SendClientMessage(playerid, COR_BRANCO,"_______________________________________");
      SendClientMessage(playerid, COR_AZULCLARO, "/morrer ---------------------------");
      SendClientMessage(playerid, COR_AZULCLARO, "-----------------------------------");
      SendClientMessage(playerid, COR_BRANCO,"_______________________________________");
    }
    return 1;
    }
    if(strcmp(cmdtext, "/morrer", true) == 0)
    {
    SetPlayerHealth(playerid, 0);
    return 1;
    }
    return 1;
}
Reply


Messages In This Thread
[AJUDA] Problemas no OnPlayerCommandText - by PawninG - 28.09.2010, 01:32
Re: [AJUDA] Problemas no OnPlayerCommandText - by PawninG - 28.09.2010, 14:01
Re: [AJUDA] Problemas no OnPlayerCommandText - by [BEP]AcerPilot - 28.09.2010, 14:25
Re: [AJUDA] Problemas no OnPlayerCommandText - by PawninG - 28.09.2010, 14:45
Re: [AJUDA] Problemas no OnPlayerCommandText - by [BEP]AcerPilot - 28.09.2010, 14:47
Re: [AJUDA] Problemas no OnPlayerCommandText - by Dr_Pawno - 28.09.2010, 14:55
Re: [AJUDA] Problemas no OnPlayerCommandText - by [BEP]AcerPilot - 28.09.2010, 14:58
Re: [AJUDA] Problemas no OnPlayerCommandText - by PawninG - 28.09.2010, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)