Multiple commands same function
#2

pawn Код:
if(strcmp(cmd, "/example1", true) == 0)
{
  SendClientMessage(playerid, GREEN, "Example command one!");
  return 1;
}
pawn Код:
if(strcmp(cmd, "/example2", true) == 0)
{
  SendClientMessage(playerid, GREEN, "Example command two!");
  return 1;
}
It's that simple.
Reply


Messages In This Thread
Multiple commands same function - by jamesbond007 - 09.12.2009, 19:05
Re: Multiple commands same function - by Burridge - 09.12.2009, 19:08
Re: Multiple commands same function - by Joe Staff - 09.12.2009, 19:09
Re: Multiple commands same function - by Christopher. - 09.12.2009, 19:10
Re: Multiple commands same function - by Burridge - 09.12.2009, 19:10
Re: Multiple commands same function - by jamesbond007 - 10.12.2009, 15:46

Forum Jump:


Users browsing this thread: 1 Guest(s)