11.09.2011, 14:51
Hey!
I want to make a command where you type /nextgamemode drifting and the script looks through a list of gamemodes to see which is most related to what the player typed.
So, if the gamemode was called 'drifter' and I typed /nextmode drifting, it will see that the most related name is drifter and then I can do this:
How can I do this?
I want to make a command where you type /nextgamemode drifting and the script looks through a list of gamemodes to see which is most related to what the player typed.
So, if the gamemode was called 'drifter' and I typed /nextmode drifting, it will see that the most related name is drifter and then I can do this:
pawn Код:
new string[128];
format(string,sizeof(string),"changemode %s",nameofgamemode);
SendRconCommand(string);