I need some help, adding multiple commands.
#2

hmm, well, err...

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
 if (strcmp("/help", cmdtext, true) == 0)
 {
   SendClientMessage(playerid,0xFFFFFFAA,"Need help?");
   return 1;
 }

 if (strcmp("/othercommand", cmdtext, true) == 0)
 {
   SendClientMessage(playerid,0xFFFFFFAA,"Another command!");
   return 1;
 }

 return 0;
}
Reply


Messages In This Thread
I need some help, adding multiple commands. - by Klutty - 19.03.2009, 20:32
Re: I need some help, adding multiple commands. - by [RP]Rav - 19.03.2009, 20:33
Re: I need some help, adding multiple commands. - by Vetle - 19.03.2009, 20:34
Re: I need some help, adding multiple commands. - by MenaceX^ - 19.03.2009, 20:36
Re: I need some help, adding multiple commands. - by Klutty - 19.03.2009, 20:39
Re: I need some help, adding multiple commands. - by [RP]Rav - 19.03.2009, 20:41
Re: I need some help, adding multiple commands. - by Klutty - 19.03.2009, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)