[HELP] COmmand
#8

I guess you didn't understand it.

Here's another example:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/mycommand_1", true) == 0)
  {
    // command's code.
    return 1;
  }
  if(strcmp(cmdtext, "/mycommand_2", true) == 0)
  {
    // command's code.
    return 1;
  }
  if(strcmp(cmdtext, "/mycommand_3", true) == 0)
  {
    // command's code.
    return 1;
  }
  return SendClientMessage(playerid,COLOR_GREY,"Sorry Command not found in NatiosnRoleplay database.");
}
Reply


Messages In This Thread
[HELP] COmmand - by Lilcuete - 18.11.2009, 22:20
Re: [HELP] COmmand - by Correlli - 18.11.2009, 22:22
Re: [HELP] COmmand - by Lilcuete - 18.11.2009, 22:30
Re: [HELP] COmmand - by Correlli - 18.11.2009, 22:32
Re: [HELP] COmmand - by Lilcuete - 18.11.2009, 22:43
Re: [HELP] COmmand - by Correlli - 18.11.2009, 22:54
Re: [HELP] COmmand - by Lilcuete - 18.11.2009, 22:58
Re: [HELP] COmmand - by Correlli - 18.11.2009, 23:05

Forum Jump:


Users browsing this thread: 1 Guest(s)