Raised This Month: $ Target: $400
 0% 

Block/convert capital letters in amx_map command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aNt1
Member
Join Date: Jul 2008
Location: trance energy
Old 03-02-2009 , 07:23   Block/convert capital letters in amx_map command
Reply With Quote #1

Hi. I need a plugin or a modification in admincmd.sma plugin to block or convert capital letters in map name when using amx_map command. For example to block or convert to small letters when using dE_tusCAN or DE_TUSCAN etc. into de_tuscan.TY.
__________________
aNt1 is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-02-2009 , 07:42   Re: Block/convert capital letters in amx_map command
Reply With Quote #2

hi.
PHP Code:
native strtolower(string[]); 
Attached Files
File Type: sma Get Plugin or Get Source (admincmd.sma - 682 views - 30.6 KB)

Last edited by TheRadiance; 03-02-2009 at 07:45.
TheRadiance is offline
Send a message via ICQ to TheRadiance
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-02-2009 , 07:44   Re: Block/convert capital letters in amx_map command
Reply With Quote #3

Search cmdMap() function, after read_argv() on a new line add : strtolower( arg );
Arkshine is offline
Old 03-02-2009, 08:26
aNt1
This message has been deleted by aNt1.
aNt1
Member
Join Date: Jul 2008
Location: trance energy
Old 03-02-2009 , 08:27   Re: Block/convert capital letters in amx_map command
Reply With Quote #4

TY
__________________
aNt1 is offline
Reply



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 08:23.


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