Typing commands twice
#2

pawn Код:
new cmdtrigger = 0;
if(strcmp(cmdtext, "/somecmd") == 0)
{
  if(cmdtrigger == 0)
  {
    //nothing happens
    cmdtrigger++;
    return 1;
  }
  else
  {
    //command gets executed
    cmdtrigger = 0;
    return 1;
  }
}
Reply


Messages In This Thread
Typing commands twice - by Redirect Left - 02.11.2009, 10:58
Re: Typing commands twice - by dice7 - 02.11.2009, 11:01
Re: Typing commands twice - by Redirect Left - 02.11.2009, 11:03
Re: Typing commands twice - by Danny_Costelo - 05.11.2009, 02:19

Forum Jump:


Users browsing this thread: 1 Guest(s)