[help needed] How to add multiple gamemodes ?
#1

Ok i downloaded 2 gamemodes from gamemodes section.
How can I make player switch which gamemode they want?

I have two .amx files gamemodes, both included in server.cfg and gamemodes folder

So what should I do next so that the player is able to decide which gamemode he wants at the start at spawn ?

I know nothing much about scripting. And I play on LAN in my school with my classmates. We have proxy type internet connections. (http proxy)
Reply
#2

Put This under OnPlayerCommandText
Code:
   if(strcmp(cmdtext, "/changegamemode") == 0) 
     {
         SendRconCommand("changemode namegoeshere");
         return 1;
     }
Reply
#3

Make a RCON command
Reply
#4

If not you could make a timer to send the Rcon the command.
Reply
#5

Quote:
Originally Posted by Phyrunx
View Post
Put This under OnPlayerCommandText
Code:
   if(strcmp(cmdtext, "/changegamemode") == 0) 
     {
         SendRconCommand("changemode namegoeshere");
         return 1;
     }
thanks for help.
it worked
repped.
Reply
#6

I didnot understand the thing cmdtext and namegoeshere
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)