[REQUEST]/me command
#5

Quote:
Originally Posted by [HiC
TheKiller ]
Simple Command Processor
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     new Command[100], Params[100];
    if(strfind(cmdtext, " ") != -1) strmid(Command, cmdtext, 1, strfind(cmdtext, " "));
    else if(strfind(cmdtext, " ") == -1) format(Command, 100, "%s", cmdtext);
    if(strfind(cmdtext, " ") != -1) format(Params, sizeof(Params), "%s", cmdtext[strfind(cmdtext, " ")]);
    #define IsParams(%1) strcmp(Params, %1)
     #define IsCommand(%1) strcmp(Command, %1)
    if(IsCommand("me"))
    {
         new Str[100];
        GetPlayerName(playerid, Str, 24);
        format(Str, sizeof(Str), "%s: %s", Str, Params);
        SendClientMessageToAll(0xF5F200AA, Str);
          return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[REQUEST]/me command - by too803 - 07.02.2010, 05:15
Re: [REQUEST]/me command - by mansonh - 07.02.2010, 05:23
Re: [REQUEST]/me command - by too803 - 07.02.2010, 05:33
Re: [REQUEST]/me command - by too803 - 07.02.2010, 06:10
Re: [REQUEST]/me command - by [HiC]TheKiller - 07.02.2010, 06:11
Re: [REQUEST]/me command - by mansonh - 07.02.2010, 06:30
Re: [REQUEST]/me command - by too803 - 07.02.2010, 06:33
Re: [REQUEST]/me command - by Miguel - 07.02.2010, 06:36
Re: [REQUEST]/me command - by mansonh - 07.02.2010, 06:43
Re: [REQUEST]/me command - by too803 - 07.02.2010, 06:49

Forum Jump:


Users browsing this thread: 1 Guest(s)