Raised This Month: $ Target: $400
 0% 

message help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-09-2006 , 15:42   Re: message help
Reply With Quote #2

I suggest you download some simple Plugins Source Code and learn from it,
because just what you are asking for here is more of a Plugin request than a Help request.
;)
How ever, here you go:
Code:
/* This is a comment */ // This is a comment, too /* Below you see how to include an *.inc File. They are needed in Order to use specific Functions */ #include <amxmodx> /* Always needed. Basic Functions like registering Plugin */ #include <fun> /* Fun Stuff. Glowing, changing Health and Armor and so on... */ #define VERSION "1.0" /* The current Version of your Plugin */ public plugin_init() /* This is called/executed when the Plugin loads/Map starts */ {     register_plugin("Speak and Glow",VERSION,"Silencer") /* Registers your Plugin. This is neccesary. */ } public client_command(id) /* A special Function called when a Client does a Command. */ {     new type[16] /* Create a new Variable to store Data inside */     read_argv(0,type,15) /* In short, this will write the Command the Player used into the variable "type". Look up functions in amxmodx.org Function Database. */     if(equali(type,"say")) /* Self explaining - Look up the Function */     {         set_user_rendering(id,kRenderFxGlowShell,0,255,0,kRenderNormal,4) /* Green Glowing with Glow Shell Thickness of 4 (Thin) */     }     else     {         if(equali(type,"say_team")) /* Self explaining - Look up the Function */         {             set_user_rendering(id,kRenderFxGlowShell,0,255,255,kRenderNormal,4) /* Yellow Glowing with Glow Shell Thickness of 4 (Thin) */         }     }     // Use this to set Players rendering back to normal:     // set_user_rendering(id,kRenderFxNone,0,0,0,kRenderNormal,0)     // Note that "id" is a Variable which comes with the Function client_command,     // which is the Players Entity Id, going from 1 to 32. }
Note that the Player will glow after he used "say" or "say_team".
You cannot make him Glow while he is typing a message, because the
Client/Player/User is not sending that Information to the Server in that Moment.
__________________
EAT YOUR VEGGIES
Silencer123 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 04:52.


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