Function - after using a command writting something
#5

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
Reply


Messages In This Thread
Function - after using a command writting something - by maiky1499 - 24.01.2013, 11:32
Re: Function - after using a command writting something - by denNorske - 24.01.2013, 12:20
Re: Function - after using a command writting something - by maiky1499 - 24.01.2013, 13:37
Re: Function - after using a command writting something - by maiky1499 - 25.01.2013, 11:23
Re: Function - after using a command writting something - by denNorske - 25.01.2013, 11:45
Re: Function - after using a command writting something - by maiky1499 - 25.01.2013, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)