Raised This Month: $ Target: $400
 0% 

Help me please


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
joka69
Senior Member
Join Date: Apr 2005
Old 10-14-2005 , 13:15   Help me please
Reply With Quote #1

Could someone help me make this to use random colors ,insted of team colors.I only want it to choose out of 3 colors yellow ,red & green.
Code:
#include <amxmodx> #include <fun> #include <engine> new bool:glow[33] public plugin_init() {     register_plugin("Death Glow","1.0","doubleM")     register_logevent("kill_event",5,"1=killed")     register_cvar("amx_deathglow_time","7")     set_cvar_num("amx_deathglow_time",7) } public client_PreThink(id) {     if(glow[id]) {         new iR, iG, iB         if(get_user_team(id)==1) {             iR = 0             iG = 255             iB = 0         } else if(get_user_team(id)==2) {             iR = 0             iG = 255             iB = 0         } else {             iR = 0             iG = 255             iB = 0         }         set_user_rendering(id,kRenderFxGlowShell,iR,iG,iB,kRenderNormal,17)     } } public reset_glow(id) {     set_user_rendering(id)     glow[id] = false } public kill_event() {     new sArg[256], sName[33], iUserId     new killer_id, victim_id     read_logargv(0, sArg, 255)     parse_loguser(sArg, sName, 32, iUserId)     killer_id = find_player("k", iUserId)     read_logargv(2, sArg, 255)     parse_loguser(sArg, sName, 32, iUserId)     victim_id = find_player("k", iUserId)     if(victim_id) {         glow[victim_id] = true         set_task(float(get_cvar_num("amx_deathglow_time")),"reset_glow",victim_id)     }         return PLUGIN_CONTINUE }
__________________
joka69 is offline
Send a message via MSN to joka69
 



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


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