Bob[@]N -.^
Boban Stojanovic 1977-2020 R.I.P.
.: [PLUGIN] Novogodisnje Kapice i Snezne Pahuljice :.
Zdravo svima !
Posto se blizi Nova Godina i usli smo u ZMSKI period,
resih da postavim plugin vezan za to !
Pa da predjemo na posao !
.: Novogodisnje Kapice i Snezne Pahuljice :.
1. santahat_snow
Terori imaju CRVENE a CT ima PLAVE !
SMA kod od plugina :
PHP:
#include < amxmodx >
#include < engine >
#include < cstrike >
#include < hamsandwich >
new const g_szHatModel[ CsTeams ][ ] =
{
"",
"models/santahat.mdl",
"models/santahat_blue.mdl",
""
};
new g_iHats[ 33 ];
public plugin_init( )
{
register_plugin( "Santa Hat + Snow", "1.3", "xPaw" );
register_cvar( "santa_hat", "1.3", FCVAR_SERVER );
register_event( "TeamInfo", "EventTeamInfo", "a" );
RegisterHam( Ham_Spawn, "player", "FwdHamPlayerSpawn", 1 );
}
public plugin_precache( )
{
create_entity( "env_snow" );
precache_model( g_szHatModel[ CS_TEAM_T ] );
precache_model( g_szHatModel[ CS_TEAM_CT ] );
}
public client_disconnect( id )
if( is_valid_ent( g_iHats[ id ] ) )
remove_entity( g_iHats[ id ] );
public FwdHamPlayerSpawn( const id )
{
if( is_user_alive( id ) )
{
new iEntity = g_iHats[ id ];
if( !is_valid_ent( iEntity ) )
{
if( !( iEntity = g_iHats[ id ] = create_entity( "info_target" ) ) )
return;
new CsTeams:iTeam = cs_get_user_team( id );
if( iTeam != CS_TEAM_T && iTeam != CS_TEAM_CT )
iTeam = CS_TEAM_T;
entity_set_model( iEntity, g_szHatModel[ iTeam ] );
entity_set_int( iEntity, EV_INT_movetype, MOVETYPE_FOLLOW );
entity_set_edict( iEntity, EV_ENT_aiment, id );
}
}
}
public EventTeamInfo( )
{
new id = read_data( 1 ), iEntity = g_iHats[ id ];
if( !is_valid_ent( iEntity ) )
{
if( iEntity > 0 )
g_iHats[ id ] = 0;
return;
}
new szTeam[ 2 ];
read_data( 2, szTeam, 1 );
if( szTeam[ 0 ] == 'C' )
entity_set_model( iEntity, g_szHatModel[ CS_TEAM_CT ] );
else
entity_set_model( iEntity, g_szHatModel[ CS_TEAM_T ] );
}
.: INSTALCIJA :.
1. santahat_snow.amxx ubacite u folder plugins
2. santahat_snow.amxx upisete u fajl plugins.ini
3. santahat.mdl i santahat_blue.mdl ubacite u models folder
1. santahat_snow.amxx ubacite u folder plugins
2. santahat_snow.amxx upisete u fajl plugins.ini
3. santahat.mdl i santahat_blue.mdl ubacite u models folder
Da bi svi videli pahulje kako podesiti :
Code:
Moze se izvesti preko "[COLOR=yellowgreen]amx_cvarguard[/COLOR]" plugina !
Treba da ga imate ubacenog vec na server, samo je moguce da je iskljucen.
[COLOR=lime]Ukljucite ga i upisete : [/COLOR] [COLOR=yellowgreen]cl_weather 1[/COLOR] u [COLOR=red]cvarguard.ini[/COLOR]
[COLOR=lime]putanja do fajla : [/COLOR] [COLOR=yellowgreen]cstrike/addons/amxmodx/configs/[/COLOR][COLOR=red]cvarguard.ini[/COLOR]
Svakom igracu koji udje na vas server ce biti podeseno da vidi pahulje !
.: Snezne Pahuljice :.
Dakle evo kome treba plugin samo za snezne pahuljice .
2. snowflakes
SMA kod :
PHP:
#include < amxmodx >
#include < cstrike >
#include < engine >
#define PLUGIN "Snowflakes"
#define VERSION "1.0"
#define AUTHOR "BoB[@]N^^"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
}
public plugin_precache()
{
create_entity( "env_snow" );
}
.: INSTALCIJA :.
1. snowflakes.amxx ubacite u folder plugins
2. snowflakes.amxx upisete u fajl plugins.ini
1. snowflakes.amxx ubacite u folder plugins
2. snowflakes.amxx upisete u fajl plugins.ini
Da bi svi videli pahulje kako podesiti :
Code:
Moze se izvesti preko "[COLOR=yellowgreen]amx_cvarguard[/COLOR]" plugina !
Treba da ga imate ubacenog vec na server, samo je moguce da je iskljucen.
[COLOR=lime]Ukljucite ga i upisete : [/COLOR] [COLOR=yellowgreen]cl_weather 1[/COLOR] u [COLOR=red]cvarguard.ini[/COLOR]
[COLOR=lime]putanja do fajla : [/COLOR] [COLOR=yellowgreen]cstrike/addons/amxmodx/configs/[/COLOR][COLOR=red]cvarguard.ini[/COLOR]
Svakom igracu koji udje na vas server ce biti podeseno da vidi pahulje !
Ako se nesto ne snadjete, ili imate neko pitanje, javite se ovde u temi ili meni na PM !
Pozzz !
by Bob[@]N^^
.: DOWNLOAD :.
models.rar [KliCK]
Attachments
Last edited: