Def na poczatek rundy
Lemiech
18.05.2011
Witam. poszukuje pluginu "Darmowy DEF na poczatku rundy dla CT"
Użytkownik Lemiech edytował ten post 18.05.2011 14:13
Użytkownik Lemiech edytował ten post 18.05.2011 14:13
Hiroshima
18.05.2011
na alliedmods znalazlem cos takiego:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <hamsandwich>
new const VERSION[] = "0.0.1"
public plugin_init()
{
register_plugin("Stop The Shit PLZ", VERSION, "Author")
if( find_ent_by_class(-1, "func_bomb_target") > 0 || find_ent_by_class(-1, "info_bomb_target") > 0 )
{
RegisterHam(Ham_Spawn, "player", "Ham__CBasePlayer_Spawn__Post", true)
}
}
public Ham__CBasePlayer_Spawn__Post( id )
{
if( is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT )
{
cs_set_user_defuse(id, 1)
}
}
kasza
18.05.2011
#include <amxmodx> #include <hamsandwich> #include <cstrike> #define PLUGIN_NAME "Free Defuserkit" #define PLUGIN_VERSION "1.1." #define PLUGIN_AUTHOR "tuty" #pragma semicolon 1 new gEnableDefusers; new gDefuseColor; public plugin_init() { register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR ); RegisterHam( Ham_Spawn, "player", "Bacon_Spawn", 1 ); gEnableDefusers = register_cvar( "free_defuser", "1" ); gDefuseColor = register_cvar( "free_defuser_color", "0 160 0" ); } public Bacon_Spawn( id ) { if( is_user_alive( id ) && get_pcvar_num( gEnableDefusers ) && get_user_team( id ) == 2 && !cs_get_user_defuse( id ) ) { new color[ 12 ], rgb[ 3 ][ 4 ], r, g, b; get_pcvar_string( gDefuseColor, color, charsmax( color ) ); parse( color, rgb[ 0 ], 3 , rgb[ 1 ], 3 , rgb[ 2 ], 3 ); r = clamp( str_to_num( rgb[ 0 ] ) , 0, 255 ); g = clamp( str_to_num( rgb[ 1 ] ) , 0, 255 ); b = clamp( str_to_num( rgb[ 2 ] ) , 0, 255 ); cs_set_user_defuse( id, 1, r, g, b ); } return HAM_IGNORED; }
Adminek AMXX.PL 19.05.2011
Wiadomość wygenerowana automatycznie
Ten temat został zamknięty przez moderatora.
Powód: close
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL
Ten temat został zamknięty przez moderatora.
Powód: close
Jeśli się z tym nie zgadzasz, raportuj ten post, a moderator lub administrator rozpatrzy go ponownie.
Z pozdrowieniami,
Zespół AMXX.PL