Raised This Month: $12 Target: $400
 3% 

Ghostchat port and rewrite (Original by Netripper)


Post New Thread Reply   
 
Thread Tools Display Modes
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-16-2007 , 23:20   Re: Ghostchat port and rewrite (Original by Netripper)
Reply With Quote #11

Unapproved. Duplicate found here. It is merely just indented better and that is why I chose to unapprove this.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Howdy!
Senior Member
Join Date: Feb 2007
Old 05-17-2007 , 18:01   Re: Ghostchat port and rewrite (Original by Netripper)
Reply With Quote #12

Quote:
Originally Posted by Emp` View Post
Unapproved. Duplicate found here. It is merely just indented better and that is why I chose to unapprove this.
I tried some of these plugins and they're not working, but heres working one in that case if thats not working.

Code:
#include <amxmodx>
 
const Float:FLOODTIME = 0.5
 
new gMsg_SayText
new cv_alltalk
new cv_logmessages
new Float:antiflood[33]
 
public plugin_init() {
 register_plugin("", "", "")
 register_clcmd("say","catch_say")
 gMsg_SayText = get_user_msgid("SayText")
 cv_alltalk = register_cvar("amx_alltalk","1")
 cv_logmessages = get_cvar_pointer("mp_logmessages")
}
public catch_say(id) {
 if(!get_pcvar_num(cv_alltalk))
  return PLUGIN_CONTINUE
 new Float:gametime = get_gametime()
 if(antiflood[id] > gametime) {
  antiflood[id] = gametime + FLOODTIME
  return PLUGIN_HANDLED_MAIN
 }
 antiflood[id] = gametime + FLOODTIME
 static said[192], name[33]
 read_args(said,191)
 remove_quotes(said)
 if(!said[0]) return PLUGIN_CONTINUE
 get_user_name(id, name,32)
 if(get_pcvar_num(cv_logmessages)) {
  static authid[36], team[32]
  get_user_authid(id, authid,35)
  get_user_team(id, team,31)
  new userid = get_user_userid(id)
  log_message("^"%s<%d><%s><%s>^" say ^"%s^" %s",name,userid,authid,team,said,is_user_alive(id) ? "" : "(dead)")
 }
 format(said,191, "^x01%s^x03%s^x01 :  %s", is_user_alive(id) ? "" : "*DEAD* ",name,said) //dont use formatex
 message_begin(MSG_ALL,gMsg_SayText)
 write_byte(id)
 write_string(said)
 message_end()
 return PLUGIN_HANDLED_MAIN
}
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
Reply



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


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