Raised This Month: $ Target: $400
 0% 

need help with making user specific cvars


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-24-2005 , 23:24  
Reply With Quote #5

No, v3x, no... :-\

Code:
#include <amxmodx> #include <amxmisc> new wanted[33]; public plugin_init() {    register_concmd("amx_wanted","cmd_wanted",ADMIN_KICK,"<user> <0|1> - makes a user wanted"); } public client_disconnect(id) {    wanted[id] = 0; } public cmd_wanted(id,level,cid) {    if(!cmd_access(id,level,cid,3)) {       return PLUGIN_HANDLED;    }    new arg[32];    read_argv(1,arg,31);    new target = cmd_target(id,arg,3);    read_argv(2,arg,31);    new status = str_to_num(arg);    if(!target) {       return PLUGIN_HANDLED;    }    wanted[target] = status;    new username[32];    get_user_name(target,username,31);    console_print(id,"* %s is %s wanted",username,(status == 1) ? "now" : "no longer");    return PLUGIN_HANDLED; }

Using that setup, you can check if wanted[Victim] is 1 or not on DeathMsg to see if they are wanted.
__________________
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 10:01.


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