Raised This Month: $ Target: $400
 0% 

WC3 addon


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-17-2005 , 16:47  
Reply With Quote #2

Put this anywhere in the file:

Code:
public wc3_setxp(id,level,cid) {     if(!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED     if(!warcraft3)     {         console_print(id,"[WC3] The Warcraft3 Mod is currently disabled.")         return PLUGIN_HANDLED     }         new sArgPlayer[32]     read_argv(1,sArgPlayer,31)     new sArgAmount[32]     read_argv(2,sArgAmount,31)     new xp = str_to_num(sArgAmount)     new player = cmd_target(id,sArgPlayer,2)     if(!player) return PLUGIN_HANDLED         new name[32]; get_user_name(player,name,31)     new name2[32]; get_user_name(id,name2,31)     playerxp[player] = xp     displaylevel(player,1)     console_print(id,"[WC3] You set %s's xp to %d.",name,xp)             return PLUGIN_HANDLED }

Put this in plugin_init:

Code:
register_concmd("wc3_setxp","wc3_setxp",ADMIN_RCON,"<name or #userid> <xp>")

Both wc3_setxp an wc3_givexp require the rcon access flag, so just don't give that to your other admins.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 23:45.


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