Raised This Month: $ Target: $400
 0% 

connect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
omgitsme
Veteran Member
Join Date: Mar 2010
Old 07-31-2010 , 06:20   connect
Reply With Quote #1

hey, sorry. me again :/ i could'ent find anything good with the search button, so i'm stuck.
Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Vip Connect"
#define VERSION "0.1"
#define AUTHOR "omgitsme"


public plugin_init() {
   register_plugin("Vip Connect", "0.1", "Omgitsme")
}

public client_connect(){
    if (get_user_flags(0) & ADMIN_CHAT ){
    client_print(0, print_chat, "message")
}
again, shitty test plugin i want it to show for everyone, not just the vip who came in.
__________________

Last edited by omgitsme; 07-31-2010 at 06:26.
omgitsme is offline
Send a message via Skype™ to omgitsme
Vechta
Veteran Member
Join Date: Jun 2010
Old 07-31-2010 , 06:27   Re: connect
Reply With Quote #2

Code:
#include <amxmodx>

public plugin_init() 
   	register_plugin("Vip Connect", "0.1", "Omgitsme")

public client_connect()
    	client_print(0, print_chat, "message")
Vechta is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 07-31-2010 , 07:27   Re: connect
Reply With Quote #3

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Vip Connect" #define VERSION "0.1" #define AUTHOR "omgitsme" public plugin_init() {    register_plugin("Vip Connect", "0.1", "Omgitsme") } public client_putinserver(id){    if (get_user_flags(id) & ADMIN_CHAT )            client_print(0, print_chat, "message") }
__________________

Last edited by alan_el_more; 07-31-2010 at 07:29.
alan_el_more is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-31-2010 , 07:28   Re: connect
Reply With Quote #4

Admins flags are not set at client_connect.
Use rather client_putinserver, and if you want the entering player see the message, delay it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 07-31-2010 , 10:36   Re: connect
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
Admins flags are not set at client_connect.
Use rather client_putinserver, and if you want the entering player see the message, delay it.
client_authorized too ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 07-31-2010 , 18:25   Re: connect
Reply With Quote #6

client_authorized is the best to use for checking admin access things first.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
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 00:16.


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