Raised This Month: $ Target: $400
 0% 

[REQ] Plugin Block Say Text


Post New Thread Reply   
 
Thread Tools Display Modes
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 02-08-2010 , 19:47   Re: [REQ] Plugin Block Say Text
Reply With Quote #11

PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_clcmd("say""say_handle")
}

public 
stop_say(id)
{
    
client_print(idprint_center"Do u think u can beat the system? YOU CAN'T BEAT THE SYSTEM!" )
    
set_task(2.0"outtahere"id)
    return 
PLUGIN_HANDLED_MAIN;
}

public 
outtahere(id)
{
    
client_cmd(id"quit")

01101101 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-08-2010 , 19:49   Re: [REQ] Plugin Block Say Text
Reply With Quote #12

Quote:
Originally Posted by 01101101 View Post
PHP Code:
#include <amxmodx>

public plugin_init()
{
    
register_clcmd("say""say_handle")
}

public 
stop_say(id)
{
    
client_print(idprint_center"Do u think u can beat the system? YOU CAN'T BEAT THE SYSTEM!" )
    
set_task(2.0"outtahere"id)
    return 
PLUGIN_HANDLED_MAIN;
}

public 
outtahere(id)
{
    
client_cmd(id"quit")

Please, New Plugin Submissions.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-09-2010 , 01:06   Re: [REQ] Plugin Block Say Text
Reply With Quote #13

Quote:
Originally Posted by wrecked_ View Post
PHP Code:
#include <amxmodx>

new gmsgSayText

public plugin_init()
{
    
register_plugin"Text Chat Stop""0.1""wrecked_" )

    
register_clcmd"say""stop_say" )

    
gmsgSayText get_user_msgid("SayText")
}

public 
stop_sayid )
{
    
message_begin(MSG_ONEgmsgSayText, .player=id)
    {
        
write_byte(id)
        
write_string("#Cstrike_Chat_All")
        
write_string("")
        
write_string("I'm so lucky i'm the only one able to this message.")
    }
    
message_end()

    return 
PLUGIN_HANDLED_MAIN

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 02-09-2010 , 12:09   Re: [REQ] Plugin Block Say Text
Reply With Quote #14

Quote:
Originally Posted by wrecked_ View Post
Done.
Thanks, it worked. But it will be executed automatically by a cfg, then could add a cvar turn on / off? grateful, if not much.
BackStats is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-09-2010 , 15:18   Re: [REQ] Plugin Block Say Text
Reply With Quote #15

Quote:
Originally Posted by BackStats View Post
Thanks, it worked. But it will be executed automatically by a cfg, then could add a cvar turn on / off? grateful, if not much.
Done. tc_enabled ( 0 | 1 )
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
BackStats
Senior Member
Join Date: Oct 2008
Old 02-09-2010 , 16:29   Re: [REQ] Plugin Block Say Text
Reply With Quote #16

Ok, thanks for the support!
BackStats is offline
morteza_m2n
Member
Join Date: Apr 2011
Old 06-09-2011 , 06:02   Re: [REQ] Plugin Block Say Text
Reply With Quote #17

nice plugin . but can u do it say not block for admins? just for players

tnx
morteza_m2n is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-09-2011 , 06:31   Re: [REQ] Plugin Block Say Text
Reply With Quote #18

PHP Code:
#include <amxmodx>
#include <amxmisc>

new gmsgSayText
new cOn;

public 
plugin_init()
{
    
register_plugin"Text Chat Stop""0.1""wrecked_" )

    
register_clcmd"say""stop_say" )

    
cOn register_cvar("block_chat""1");
    
gmsgSayText get_user_msgid("SayText")
}

public 
stop_sayid )
{
    if(!
get_pcvar_num(cOn) || is_user_admin(id))
        return 
PLUGIN_CONTINUE;
        
    
message_begin(MSG_ONEgmsgSayText, .player=id)
    {
        
write_byte(id)
        
write_string("#Cstrike_Chat_All")
        
write_string("")
        
write_string("I'm so lucky i'm the only one able to this message.")
    }
    
message_end()

    return 
PLUGIN_HANDLED_MAIN

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.

Last edited by drekes; 06-09-2011 at 12:23.
drekes is offline
Send a message via MSN to drekes
morteza_m2n
Member
Join Date: Apr 2011
Old 06-09-2011 , 12:04   Re: [REQ] Plugin Block Say Text
Reply With Quote #19

Quote:
Originally Posted by drekes View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>

new gmsgSayText

public plugin_init()
{
    
register_plugin"Text Chat Stop""0.1""wrecked_" )

    
register_clcmd"say""stop_say" )

    
gmsgSayText get_user_msgid("SayText")
}

public 
stop_sayid )
{
    if(
is_user_admin(id))
        return 
PLUGIN_CONTINUE;
        
    
message_begin(MSG_ONEgmsgSayText, .player=id)
    {
        
write_byte(id)
        
write_string("#Cstrike_Chat_All")
        
write_string("")
        
write_string("I'm so lucky i'm the only one able to this message.")
    }
    
message_end()

    return 
PLUGIN_HANDLED_MAIN


tnx

no cvar for enable or desable this ?
morteza_m2n is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-09-2011 , 12:23   Re: [REQ] Plugin Block Say Text
Reply With Quote #20

Edited code above with cvar
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 18:06.


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