Raised This Month: $ Target: $400
 0% 

Help me with this please...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 12-16-2005 , 11:28   Help me with this please...
Reply With Quote #1

I found this, and i want to make it admin only...i dont know if i put everything in the right spot...can you help me?

I need it to show only when admin connects or leaves...

Code:
#include <amxmisc> #include <amxmodx> #include <cstrike> public client_putinserver(id) {     if(!(get_user_flags(id) & ADMIN_RESERVATION))         return PLUGIN_CONTINUE     new UserName[33]     get_user_name(id, UserName, 32)     new message[64] format(message,63,"%s has joined the game!",UserName)     set_hudmessage(100, 100, 100, 0.7, 0.02, 0, 6.0, 12.0, 1.0, 1.0, 1) show_hudmessage(0,message) } public client_disconnect(id) {     new UserName[33]     get_user_name(id, UserName, 32)     new message[64] format(message,63,"%s has left the game!",UserName)     set_hudmessage(100,100,100, 0.7, 0.06, 0, 6.0, 12.0, 1.0, 1.0, 1) show_hudmessage(0,message) } public plugin_init() {     register_plugin("Admin-Connect-Disconnect","1.0","cTn Edit by SweatyBanana") }   return PLUGIN_CONTINUE; }
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
 



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:08.


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