[HELP]Creating commands that use '!' instead of '/'
#10

pawn Код:
public OnPlayerText( playerid, text[ ] )
{
    if( strcmp( text, "!mycommand", true ) == 0 )
    {
        // Do your command stuff
        return 0; // We must return 0.
    }
    return 1;
}
Make sure you put it under ONPLAYERTEXT, not ONPLAYERCOMMANDTEXT!!!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)