Jump to content

[AMXMODX] Welcome Plugin


Don Liviu

Recommended Posts

Descriere: Acest plugin afiseaza un mesaj de " Welcome " jucatorilor care se conecteaza pe sv-ul dvs. !
Descarcare: Download
 
Nume: Connect Info Hud
Versiune: 0.1
 
 
Instalare:
 
1. Fisierul welcome.amxx il puneti in addons/amxmodx/plugins
2. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
 
Cod:
welcome.amxx

Aveti sursa pluginului aici !

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




public plugin_init( )
{
    register_plugin( "Connect Info Hud", "0.1", "x" )
}




public client_putinserver( id )
{
    if( is_user_bot( id ) ) return




        set_task( 10.0, "go_info", id )
}




public go_info(id)
{
        new stats[ 8 ], body[ 8 ], hostname[ 64 ], name[ 32 ]




        new rank_pos = get_user_stats( id, stats, body )
        new rank_max = get_statsnum( )




        get_cvar_string( "hostname", hostname, 63 )
        get_user_name( id, name, 31 )




        set_hudmessage( 0, 255, 0, 0.10, 0.24, random_num( 0, 2 ), 6.0, 8.0 )
        show_hudmessage( id, "[ RANGFORT ] Welcome, %s^nWe hope you enjoy you stay here!^n^n%s^n^nYour rank is %d from %d", name, hostname, rank_pos, rank_max )
}

 

 
  • Like 3
Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...