[AJUDA] Problemas no OnPlayerCommandText
#5

Tenta esse:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new idx;
    new cmd[256];
    cmd = strtok(cmdtext, idx);
    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(cmd, "/morrer", true) == 0)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
    return 0;
}
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)