Raised This Month: $ Target: $400
 0% 

Control server by say commands > map change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
goldier
Junior Member
Join Date: Mar 2009
Old 02-01-2010 , 09:37   Control server by say commands > map change
Reply With Quote #1

hello, i am beginer in sm / c++..
i have done plugin, which allows players control server by typing some commands into chat, as srr, slo3, sko3..

for now, i have there for map change command smap <map name>, but i have it for every map particularly..

example:

Code:
			if (strcmp(text[startidx], "smap aim_ancients", false) == 0)
 			{
				ServerCommand("sm_map aim_ancients"); return Plugin_Handled;
 			}

			else if (strcmp(text[startidx], "smap aim_ballers", false) == 0)
 			{
				ServerCommand("sm_map aim_ballers"); return Plugin_Handled;
 			}

			else if (strcmp(text[startidx], "smap aim_colt_inside", false) == 0)
 			{
				ServerCommand("sm_map aim_colt_inside"); return Plugin_Handled;
 			}

			else if (strcmp(text[startidx], "smap aim_deagle7k", false) == 0)
			{
				ServerCommand("sm_map aim_deagle7k"); return Plugin_Handled;
 			}
how i can get map name from player's massage?
i hope you will understand me :-/ i am from slovakia..

thanks..

or is it there some plugin, with this function?

// my plugin is in basetriggers.smx.

Last edited by goldier; 02-01-2010 at 09:39.
goldier is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode