Raised This Month: $ Target: $400
 0% 

Colors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
KoVeNaNT
Junior Member
Join Date: Oct 2007
Old 10-31-2007 , 15:31   Re: Colors
Reply With Quote #3

Quote:
Originally Posted by Alka View Post
Duh...can't do it like that. Take a look here : http://forums.alliedmods.net/showthr...ight=Colorchat
Ok, done that... But I don't know how to implement that to my script. Anyone want to help me out with that?

Here's my script anyway:

PHP Code:
#pragma semicolon 1 
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "PlayerAnnounce"
#define VERSION "1.0"
#define AUTHOR "greVen"

public plugin_init() 

    
register_plugin("PlayerAnnounce","greVen","1.0");     

public 
client_authorized(id)

 
set_task(1.0,"announce",id+5585);
}
public 
announce(id){
 
id id-5585;
 if (
get_user_flags(id) & ADMIN_KICK
 { 
  new 
name[32]; 
  
get_user_name(id,name,sizeof(name)-1); 
  
set_hudmessage(2552552550.030.5500.025.00.010.14)
  
show_hudmessage(0"ADMIN: %s has connected."name);
  
client_print(0print_chat"[ADMIN Connected] %s"name);
  
console_print(0"#### ADMIN %s connected ####"name);
 } 
 if (
get_user_flags(id) & ADMIN_LEVEL_H)
 {
  new 
name[32];
  
get_user_name(id,name,sizeof(name)-1);
  
set_hudmessage(02552550.030.5500.025.00.010.14)
  
show_hudmessage(0"VIP: %s has connected."name);
  
client_print(0print_chat"[VIP Connected] %s"name);
  
console_print(0"#### VIP %s connected ####"name);
 }
 
 if (
get_user_flags(id) & ADMIN_USER)
 {
  new 
name[32];
  
get_user_name(id,name,sizeof(name)-1);
  
console_print(0"#### PLAYER %s connected ####"name);
  
client_print(0print_chat"[PLAYER Connected] %s",name);
 } 


Last edited by KoVeNaNT; 10-31-2007 at 15:49.
KoVeNaNT 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 01:16.


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