AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Need welcome message+rank plugin (https://forums.alliedmods.net/showthread.php?t=270716)

LithuanianJack 08-27-2015 18:04

Need welcome message+rank plugin
 
Hi guys. Can anyone make plugin? When i connect in server i see green hud message "Welcome to server, Bryan!^n Your rank is %d of %d", like statsx shell

LithuanianJack 09-01-2015 07:37

Re: Need welcome message+rank plugin
 
sorry for posting

ZiZox 09-01-2015 09:22

Re: Need welcome message+rank plugin
 
Quote:

Originally Posted by popeye10 (Post 2235536)
try this :)
PHP Code:

#include < amxmodx >
#include < amxmisc >
#include < csx >
#include < csstats >

public plugin_init( )
{
    
register_plugin"Connect Info Hud""1.2""Spawner" )
}

public 
client_putinserverid )
{
    if( 
is_user_botid ) ) return

        
set_task10.0"go_info"id )
}

public 
go_info(id)
{
        new 
stats], body], hostname64 ], name32 ]

        new 
rank_pos get_user_statsidstatsbody )
        new 
rank_max get_statsnum( )

        
get_cvar_string"hostname"hostname63 )
        
get_user_nameidname31 )

        
set_hudmessage((0255010.020.026.03.00.11.5
        
show_hudmessageid"Welcome, %s^nWe hope you enjoy you stay here!^n^n%s^n^nYour rank is %d from %d"namehostnamerank_posrank_max )




LithuanianJack 09-01-2015 13:51

Re: Need welcome message+rank plugin
 
1 Attachment(s)
there are some errors.

indraraj striker 09-05-2015 01:03

Re: Need welcome message+rank plugin
 
PHP Code:

set_hudmessage((0255010.020.026.03.00.11.5

change to :arrow:
PHP Code:

set_hudmessage(0255010.020.026.03.00.11.5

then compile and see


All times are GMT -4. The time now is 23:18.

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