Thread: i aim good
View Single Post
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-05-2007 , 13:25   Re: i aim good
Reply With Quote #107

lucKy: Try replacing the cmd_setaim function in the original with this one:

Code:
public cmd_setaim(id,level,cid)  {     if(!cmd_access(id,level,cid,3))         return PLUGIN_HANDLED;     new arg1[32], arg2[32];     read_argv(1,arg1,31);     read_argv(2,arg2,31);     new intval = str_to_num(arg2);     if(equal(arg1,"*") || equali(arg1,"@ALL"))     {         new i;         for(i=1;i<=32;i++) aiming_good[i] = intval;         console_print(id,"* All players %s aim good",(intval) ? "now" : "no longer");         return PLUGIN_HANDLED;     }     new player = cmd_target(id,arg1,10);     if(!player) return PLUGIN_HANDLED;     aiming_good[player] = intval;     new playerName[32];     get_user_name(player,playerName,31);     console_print(id,"* %s %s aims good",playerName,(intval) ? "now" : "no longer");     return PLUGIN_HANDLED; }

Then you can use * or @ALL to denote all players.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline