Raised This Month: $ Target: $400
 0% 

User can change map ;-) but i need help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Drak
Veteran Member
Join Date: Jul 2005
Old 04-16-2007 , 08:23   Re: User can change map ;-) but i need help
Reply With Quote #3

Quote:
Originally Posted by Dark Kingdom View Post
PHP Code:
register_clcmd("say /changemap""map_change"); 
Well that's not gonna help him...
Code:
public change_map(id) {      new arg[34]      read_argv(1,arg,32)      if(equali(arg,"")) {            // Do stuff, if needed.            return PLUGIN_HANDLED      }      new mapname[35]      formatex(mapname,34,"%s",arg)      server_cmd(mapname);      return PLUGIN_HANDLED }
This will obviously allow anyone to use the command, and I don't think it's needed to format the "mapname" string, but whatever.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
 



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 06:45.


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