Need a little help with scripting something.
#1

Alright, So I want to script that after the player use a command (for example - "/ABAB"), In the script of this command it will make him to use automatically "/ACACAC".

I will try to explane: After I type command number 1, I want me to automatically type command number 2.

Do you know how to do that?

Thanks.
Reply
#2

Anyone please?
Reply
#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
#4

Thanks dude, you really helped me
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)