25.01.2013, 11:45
Why can't you just simply put it in one command only? It makes the coding better.
But, alright..
put "new command = 0" on top of your script.
Under the command you use, you must set a variable to a value like 1 (for example "command=1;")
Then, under "OnPlayerText" you must check if that variable still is 0 or if it is 1. Then, you can use strcmp to check if the entered chat text is "teleport" or "Commands". Then, let the code do what you want.
Hope you understood.
Airplanesimen
But, alright..
put "new command = 0" on top of your script.
Under the command you use, you must set a variable to a value like 1 (for example "command=1;")
Then, under "OnPlayerText" you must check if that variable still is 0 or if it is 1. Then, you can use strcmp to check if the entered chat text is "teleport" or "Commands". Then, let the code do what you want.
Hope you understood.
Airplanesimen