Raised This Month: $ Target: $400
 0% 

Plugin help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alex4301
Junior Member
Join Date: Sep 2012
Old 12-11-2015 , 10:00   Plugin help
Reply With Quote #1

EDIT

Last edited by alex4301; 12-11-2015 at 15:51.
alex4301 is offline
safetymoose
Senior Member
Join Date: Feb 2015
Old 12-11-2015 , 10:03   Re: Plugin help
Reply With Quote #2

it's called slowhacking, it's not allowed.
safetymoose is offline
alex4301
Junior Member
Join Date: Sep 2012
Old 12-11-2015 , 10:09   Re: Plugin help
Reply With Quote #3

Edit

Last edited by alex4301; 12-11-2015 at 15:52.
alex4301 is offline
safetymoose
Senior Member
Join Date: Feb 2015
Old 12-11-2015 , 11:04   Re: Plugin help
Reply With Quote #4

And yet, cs blocked it. Noone wants to be forced to say stuff like "I'm back" or "This server is the best" when they join a server, if they feel like it they will say it so stop trying to slowhack people.
safetymoose is offline
alex4301
Junior Member
Join Date: Sep 2012
Old 12-11-2015 , 11:37   Re: Plugin help
Reply With Quote #5

help anyone?
alex4301 is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 12-11-2015 , 13:35   Re: Plugin help
Reply With Quote #6

This should work. Use Colorchat to make the name appear with team color, if you want to.

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

#define PLUGIN_NAME "Say on connect"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR ""

public plugin_init() 
    
register_plugin PLUGIN_NAME PLUGIN_VERSION PLUGIN_AUTHOR )

public 
client_connectid ) {
    new 
szName[32]
    
get_user_name id szName charsmax(szName) )
    
client_print (print_chat "%s: I'm back on the Server" szName )

__________________

Last edited by Spirit_12; 12-11-2015 at 13:35.
Spirit_12 is offline
alex4301
Junior Member
Join Date: Sep 2012
Old 12-11-2015 , 14:49   Re: Plugin help
Reply With Quote #7

not work (




player says nothing in chat
alex4301 is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 12-11-2015 , 15:15   Re: Plugin help
Reply With Quote #8

It triggers at client_connect. I don't think the actual player will see the text, since he is still loading in. You might want to use client_putinserver instead of client_connect.
__________________
Spirit_12 is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 12-11-2015 , 15:12   Re: Plugin help
Reply With Quote #9

Search for : GHW Connect Messages
redivcram is offline
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 12-12-2015 , 14:39   Re: Plugin help
Reply With Quote #10

If you want to force a player to say something in chat then use this :
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN_NAME "Say on connect"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR ""

#define SV_DD 51
#define SV_CD 10

public plugin_init() 
    
register_plugin PLUGIN_NAME PLUGIN_VERSION PLUGIN_AUTHOR )

public 
client_putinserverid 
    
SV_SC(id"say ^"I'm back on the Server^"")


stock SV_SC( id = 0, text[] ) {
    if ( ( id != 0 ) && ( is_user_connected(id) ) ) {
        message_begin( MSG_ONE, SV_DD, _, id )
        write_byte( strlen(text) + 2 ) 
        write_byte( SV_CD )
        write_string( text )
        message_end()
    }


Last edited by siriusmd99; 12-12-2015 at 14:40.
siriusmd99 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 18:15.


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