HLMOD.HU Forrás Megtekintés
- www.hlmod.hu#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <fakemeta_util>
#include <fakemeta>
#include <colorchat>
new ibekapcsol_off
public plugin_precache()
{
precache_model("models/penz_modell/dollar.mdl")
precache_model("models/penz_modell/lada.mdl")
}
public plugin_init()
{
register_plugin("HoltTest Penz Drop", "1.2", "6almasok")
ibekapcsol_off = register_cvar( "holttestben_penz", "1" );
register_forward( FM_Touch,"felszedve" );
register_forward( FM_Touch,"aranylada" );
register_event( "DeathMsg","loovee","a" );
register_logevent( "eltuntetes", 2, "1=Round_Start" );
register_logevent( "nincslada", 2, "1=Round_Start" );
}
public loovee()
{
if(get_pcvar_num(ibekapcsol_off) == 0)
{
return PLUGIN_HANDLED;
}
switch(random_num(1,15))
{
case 1:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 2:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "ladass" );
engfunc( EngFunc_SetModel, ent, "models/penz_modell/lada.mdl" );
dllfunc( DLLFunc_Spawn, ent );
set_pev( ent, pev_solid, SOLID_BBOX );
set_pev( ent, pev_movetype, MOVETYPE_NONE );
engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} );
engfunc( EngFunc_DropToFloor, ent );
}
case 3:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 4:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 5:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 6:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 7:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 8:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 9:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 10:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 11:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 12:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 13:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 14:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
case 15:
{
new victim = read_data( 2 );
static Float:origin[ 3 ];
pev( victim, pev_origin, origin );
new ent = engfunc( EngFunc_CreateNamedEntity, engfunc( EngFunc_AllocString, "info_target" ) );
origin[ 2 ] -= 36;
engfunc( EngFunc_SetOrigin, ent, origin );
if( !pev_valid( ent ) )
{
return PLUGIN_HANDLED;
}
set_pev( ent, pev_classname, "penzss" ),engfunc( EngFunc_SetModel, ent, "models/penz_modell/dollar.mdl" ),dllfunc( DLLFunc_Spawn, ent ),set_pev( ent, pev_solid, SOLID_BBOX ),set_pev( ent, pev_movetype, MOVETYPE_NONE ),engfunc( EngFunc_SetSize, ent, Float:{-23.160000, -13.660000, -0.050000}, Float:{11.470000, 12.780000, 6.720000} ),engfunc( EngFunc_DropToFloor, ent )
}
}
return PLUGIN_CONTINUE
}
public aranylada(ent,id)
{
new egyns[ 32 ];
pev(ent,pev_classname,egyns,charsmax(egyns));
if(get_pcvar_num(ibekapcsol_off) == 0)
{
return PLUGIN_HANDLED;
}
if( !equal( egyns, "ladass" ) )
{
return FMRES_IGNORED;
}
switch(1)
{
case 1:
{
new nev[32]
get_user_name(id, nev, 31)
new penzran = random_num(5000,10000)
cs_set_user_money(id, cs_get_user_money(id)+penzran)
ColorChat(id, GREEN, "^1[^4Lada Drop^1] Szep munka ^3%s^1! Talaltal egy ^4Kincses Lada^1t amiben volt ^4+%i^3$^1!",nev,penzran);
}
}
engfunc( EngFunc_RemoveEntity, ent );
return FMRES_IGNORED
}
public felszedve( ent, id )
{
if(get_pcvar_num(ibekapcsol_off) == 0)
{
return PLUGIN_HANDLED;
}
new egynes[ 32 ];
pev( ent, pev_classname, egynes, charsmax( egynes ) );
if( !equal( egynes, "penzss" ) )
{
return FMRES_IGNORED;
}
switch(random_num(1,7))
{
case 1:
{
new penzran = random_num(500,1000)
cs_set_user_money(id, cs_get_user_money(id)+penzran)
ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Atkutattad a halottat es talaltal benne ^4+%i^3$^1-t.",penzran);
}
case 2:
{
new penzran = random_num(100,550)
cs_set_user_money(id, cs_get_user_money(id)+penzran)
ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Atkutattad a halottat es talaltal benne ^4+%i^3$^1-t.",penzran);
}
case 3:
{
new penzran = random_num(300,900)
cs_set_user_money(id, cs_get_user_money(id)-penzran)
ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Atkutattad a halottat es a faradozasba vesztettel ^4-%i^3$^1-t.",penzran);
}
case 4:
{
cs_set_user_money(id, 0)
ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Sajnos mig keresgeltel addig valaki ellopta az ^3OSSZES ^1penzed!");
}
case 5:
{
new nev[32]
get_user_name(id, nev, 31)
cs_set_user_money(id, cs_get_user_money(id)+3000)
ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1WOW ^3%s^1! Meg utotted a fonyeremeny. Talaltal ^4+3000^3$^1-t!",nev);
}
case 6:
{
new penzran = random_num(400,600)
cs_set_user_money(id, cs_get_user_money(id)+penzran)
ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Atkutattad a halottat es talaltal benne ^4+%i^3$^1-t.",penzran);
}
case 7:
{
new penzran = random_num(500,800)
cs_set_user_money(id, cs_get_user_money(id)-penzran)
ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Atkutattad a halottat es a faradozasba vesztettel ^4-%i^3$^1-t.",penzran);
}
}
engfunc( EngFunc_RemoveEntity, ent );
return FMRES_IGNORED
}
public eltuntetes()
{
if(get_pcvar_num(ibekapcsol_off) == 0)
{
}
new pensehol = FM_NULLENT;
while ( ( pensehol = fm_find_ent_by_class( pensehol, "penzss" ) ) )
{
engfunc( EngFunc_RemoveEntity, pensehol );
}
}
public nincslada()
{
if(get_pcvar_num(ibekapcsol_off) == 0)
{
}
new ladasehol = FM_NULLENT;
while ( ( ladasehol = fm_find_ent_by_class( ladasehol, "ladass" ) ) )
{
engfunc( EngFunc_RemoveEntity, ladasehol );
}
}