Raised This Month: $ Target: $400
 0% 

Command reservation?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-13-2005 , 13:07   Re: Command reservation?
Reply With Quote #8

Quote:
Originally Posted by Unidentified
How would you set a command to work for only certain STEAMID(s)? Such as, STEAM_0:0:123456 - ability to use, "say /godmode".
Code:
new steamids[3][] {     "STEAM_0:0:123456",     "STEAM_0:0:123456",     "STEAM_0:0:123456"  }  public check_authid(id) {     new authid[32], i;     get_user_authid(id,authid,31);     for(i=0;i<count(steamids);i++) {        if(equali(authid,steamids[i])) return 1;     }     return 0;  }  public myFunction(id) {     if(!check_authid(id)) {        client_print(id,print_chat,"* You have no access to this command");        return PLUGIN_HANDLED;     }     // your stuff here     return PLUGIN_HANDLED;  }
__________________
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:38.


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