Raised This Month: $ Target: $400
 0% 

Please Help me on plugins.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 06-03-2006 , 00:37  
Reply With Quote #8

I added comments so you would know what I did.
Code:
#include <amxmodx> #include <amxmisc> #include <tsfun> #include <tsxaddon> #define PLUGIN "Frisker" #define VERSION "1.0" #define AUTHOR "Chexmix" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_concmd("say /frisk", "check", ADMIN_IMMUNITY ) // added "say " } public check(id) {     if(!(get_user_flags(id) & ADMIN_IMMUNITY)) {         client_print(id, print_console, "You do not have access to this command!^n")         return PLUGIN_HANDLED     }     new entid, entbody     get_user_aiming(id,entid,entbody,100)     if(!is_user_alive(entid)) { // changed to !is_user_alive instead of !is_user_connected         client_print(id,print_chat,"Trust me, the air does not have any guns!^n")         return PLUGIN_HANDLED     }     new weaponsid         new id, clip = 0, ammo =0, mode = 0, extra = 0         weaponsid = ts_getuserwpn(entid,clip,ammo,mode,extra)         client_print(id,print_chat,"Player has %i weapon%s.^n",weaponsid,(!weaponsid || weaponsid > 1) ? "s" : "")     // if you need me to explain what I did here I will ;-)         if(weaponsid == 0) { // added an extra =         client_print(id,print_chat,"The player does not have any thing him.")         return PLUGIN_HANDLED // added this return     }     if(weaponsid == 1) { // added an extra =         client_print(id,print_chat,"You do not find any thing.^n*")         return PLUGIN_HANDLED     }     return PLUGIN_HANDLED // added this return }
I also cleaned up the code a little bit ;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x 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 16:33.


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