Need a little help with scripting something.
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (!strcmp(cmdtext, "/abab", true, 5))
  {
    //this will call command "/acacac" in every pawn scripts of the server.
    CallRemoteFunction("OnPlayerCommandText", "is", playerid, "/acacac");

    //if command "/acacac" is in same script than command "/abab", it's better to do just that.
    //OnPlayerCommandText(playerid, "/acacac");
   
    return true;
  }

  return false;
}

Reply


Messages In This Thread
Need a little help with scripting something. - by Ed2ka49 - 19.02.2009, 14:03
Re: Need a little help with scripting something. - by Ed2ka49 - 19.02.2009, 17:42
Re: Need a little help with scripting something. - by yom - 19.02.2009, 17:58
Re: Need a little help with scripting something. - by Ed2ka49 - 19.02.2009, 18:04

Forum Jump:


Users browsing this thread: 1 Guest(s)