- Descriere plugin cerut:
- Alte informatii:
Code: Select all
Draga nume,bine ai venit pe nume server
TEXT
TEXT
TEXT
Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com
Code: Select all
Draga nume,bine ai venit pe nume server
TEXT
TEXT
TEXT
Code: Select all
#include < amxmodx >
#include < csstats >
#include < dhudmessage >
#define PLUGIN_VERSION "1.0.0"
#define IP_SERVER_LICENTIAT "93.116.55.230"
new gHostName;
public plugin_init( )
{
register_plugin( "Connect Info Hud", "1.0.1", "Hattrick" );
new IP_LICENTIAT[20];
get_user_ip(0, IP_LICENTIAT, 21, 1);
if(!equal(IP_LICENTIAT, IP_SERVER_LICENTIAT))
{
server_print("IP-ul serverului nu este licentiat iar pluginul nu poate rula pe acesta!")
pause("a");
}
else
{
server_print("IP-ul serverului este licentiat!Pluginul ruleaza!")
}
gHostName = get_cvar_pointer( "hostname" );
}
public client_putinserver( id )
{
if( is_user_bot( id ) )
return;
set_task( 10.0, "go_info", id );
set_task( 25.0, "fav", id )
}
public go_info( id )
{
new s_HostName[ 64 ];
get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) );
static s_Name [ 32 ];
get_user_name( id, s_Name, charsmax ( s_Name ) );
static stats[ 8 ], body[ 8 ];
new s_RankPos = get_user_stats ( id, stats, body );
new s_MaxRank = get_statsnum ( );
set_dhudmessage( 250, 150, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 );
show_dhudmessage( id, "Welcome, %s^nWe hope you enjoy you`ll stay here!^n^n%s^n^nYou rank is %d from %d", s_Name, s_HostName, s_RankPos, s_MaxRank );
}
public fav(id)
{
new s_HostName[ 64 ];
get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) );
set_dhudmessage( 150, 0, 250, 0.15, 0.70, 0, 6.0, 23.0, 0.1, 0.25 )
show_dhudmessage( id, "%s^nDon't forget to add us to your favourites.", s_HostName )
}