AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   connect (https://forums.alliedmods.net/showthread.php?t=134042)

omgitsme 07-31-2010 06:20

connect
 
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 :D i want it to show for everyone, not just the vip who came in.

Vechta 07-31-2010 06:27

Re: connect
 
Code:

#include <amxmodx>

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

public client_connect()
            client_print(0, print_chat, "message")


alan_el_more 07-31-2010 07:27

Re: connect
 
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") }

ConnorMcLeod 07-31-2010 07:28

Re: connect
 
Admins flags are not set at client_connect.
Use rather client_putinserver, and if you want the entering player see the message, delay it.

lucas_7_94 07-31-2010 10:36

Re: connect
 
Quote:

Originally Posted by ConnorMcLeod (Post 1257107)
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 ?

DarkGod 07-31-2010 18:25

Re: connect
 
client_authorized is the best to use for checking admin access things first.


All times are GMT -4. The time now is 00:16.

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