Offline |
 |
 |
Csatlakozott:2015.10.04. 22:42 Hozzászólások:164 Megköszönt másnak: 9 alkalommal Megköszönték neki: 6 alkalommal
|
*GrafitY* írta: Hello!! Van egy pluginom, de nem akarja az SMA-t lefordítani az AmxxStudio-m, valamilyen hibát dob. (a colorchat.inc bent van az include mappában) Online compiler lefordítja, de akkor nem lessz ékezetes. Valaki tudna segíteni?? Köszönöm előre!
SMA Forráskód: [ Mindet kijelol ]#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[^4Láda Drop^1] Szép munka ^3%s^1! Találtál egy ^4Kincses Ládá^1-t, 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] ^1Átkutattad a halottat, és találtál 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] ^1Átkutattad a halottat, és találtál 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] ^1Átkutattad a halottat, és a fáradozásban vesztettél ^4-%i^3$^1-t.",penzran); } case 4: { cs_set_user_money(id, 0) ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Sajnos ameddig keresgéltél, addig valaki ellopta az ^3ÖSSZES ^1pénzed! Cumii!"); } case 5: { new nev[32] get_user_name(id, nev, 31) cs_set_user_money(id, cs_get_user_money(id)+5000) ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1WOW ^3%s^1! Meg ütötted a főnyereményt. Találtál ^4+5000^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] ^1Átkutattad a halottat, és találtál 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] ^1Átkutattad a halottat, és a fáradozásban vesztettél ^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 ); } } #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[^4Láda Drop^1] Szép munka ^3%s^1! Találtál egy ^4Kincses Ládá^1-t, 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] ^1Ătkutattad a halottat, Ă©s találtál 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] ^1Ătkutattad a halottat, Ă©s találtál 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] ^1Ătkutattad a halottat, Ă©s a fáradozásban vesztettĂ©l ^4-%i^3$^1-t.",penzran); } case 4: { cs_set_user_money(id, 0) ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1Sajnos ameddig keresgĂ©ltĂ©l, addig valaki ellopta az ^3Ă–SSZES ^1pĂ©nzed! Cumii!"); } case 5: { new nev[32] get_user_name(id, nev, 31) cs_set_user_money(id, cs_get_user_money(id)+5000) ColorChat(id, GREEN, "^3[^4HoltTest Drop^3] ^1WOW ^3%s^1! Meg ĂĽtötted a fĹ‘nyeremĂ©nyt. Találtál ^4+5000^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] ^1Ătkutattad a halottat, Ă©s találtál 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] ^1Ătkutattad a halottat, Ă©s a fáradozásban vesztettĂ©l ^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 ); } }
próbáld ki _________________ Konfigost keresek aki ha bozonyít megkapja a jogot hogy az összes pbt szervert konfigolja irányitja 
|
|