Command does nothing
#6

Here it is

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
        return 1;
        // Returning 1 informs the server that the command has been processed.
        // OnPlayerCommandText won't be called in other scripts.
    }
    return 0;
    // Returning 0 informs the server that the command hasn't been processed by this script.
    // OnPlayerCommandText will be called in other scripts until one returns 1.
    // If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
}
Reply


Messages In This Thread
Command does nothing - by falor - 01.03.2012, 14:38
Re: Command does nothing - by FalconX - 01.03.2012, 15:03
Re : Command does nothing - by falor - 01.03.2012, 15:08
Re: Command does nothing - by BigD - 01.03.2012, 15:10
Re: Re : Command does nothing - by FalconX - 01.03.2012, 15:11
Re : Command does nothing - by falor - 01.03.2012, 15:17
Re : Command does nothing - by falor - 01.03.2012, 15:35

Forum Jump:


Users browsing this thread: 1 Guest(s)