AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Simple connect doesent work 0.0 (https://forums.alliedmods.net/showthread.php?t=87001)

petrov_belota 03-05-2009 12:32

Simple connect doesent work 0.0
 
Hi to all :)
This is my first plugin =]
But i don't know why he doesent work :oops:
Here is the code:
PHP Code:


#include <amxmodx>
#include <amxmisc>

#define PLUGIN "ConnectMsg"
#define VERSION "1.0"
#define AUTHOR "SounD"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)    
}

public 
client_connect(id) {
    new 
name [32] ;
    
get_user_name(idname31)
    
set_hudmessage(2552552550.100.5006.012.0)
    if(
is_user_admin(id)) {
          
show_hudmessage(0"Warrning !!! ^n Admin %s is connecting ! ^nBe more careful !")
         } else {
             
show_hudmessage(0"%s is connecting !")
        }
    } 

The plugin is compiling without errors and
warrnings, but in game he doesent work 0.o
I look for hud msg durring take in players but it not
show me the msg :(
Sorry for my bad language :mrgreen:
10x in advance ;)

Exolent[jNr] 03-05-2009 12:38

Re: Simple connect doesent work 0.0
 
Quote:

Originally Posted by petrov_belota (Post 774552)
PHP Code:

show_hudmessage(0"Warrning !!! ^n Admin %s is connecting ! ^nBe more careful !")
// ...
show_hudmessage(0"%s is connecting !"


You didn't format the name.

PHP Code:

show_hudmessage(0"Warrning !!! ^n Admin %s is connecting ! ^nBe more careful !"name)
// ...
show_hudmessage(0"%s is connecting !"name



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

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