Cerere VIP RESPAWN in Cereri Resurse Posted May 16, 2015 Flagul la vip e "t" /* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <engine> #include <hamsandwich> #include <fun> #define PLUGIN "New Plug-In" #define VERSION "0.Ox" #define AUTHOR "Hades Ownage" #define VIP_HEALTH 150 #define VIP_ARMOR 150 #define KNIFE_SPEED 400 #define VIP_FLAG ADMIN_LEVEL_H new jumpnum [ 33 ] = 0 new bool: dojump [ 33 ] = false; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam ( Ham_Spawn, "player", "Player_Spawn", 1 ); register_cvar ( "vip_maxjumps", "1" ); register_event ( "CurWeapon", "CurrentWeapon", "be", "1=1" ); } public client_putinserver ( id ) { jumpnum [ id ] = 0; dojump [ id ] = false; } public client_disconnect ( id ) client_putinserver ( id ); public Player_Spawn ( id ) { if ( is_user_alive ( id ) && is_user_vip ( id ) ) { set_user_health ( id, VIP_HEALTH ); set_user_armor ( id, VIP_ARMOR ); } } public CurrentWeapon ( id ) { if ( is_user_vip ( id ) && get_user_weapon ( id ) == CSW_KNIFE ) set_user_maxspeed ( id, float ( KNIFE_SPEED ) ); } // Multi Jump public client_PreThink(id) { if(!is_user_alive(id) || !is_user_vip ( id )) return PLUGIN_CONTINUE new nbut = get_user_button(id) new obut = get_user_oldbutton(id) if((nbut & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(obut & IN_JUMP)) { if(jumpnum[id] < get_cvar_num("vip_maxjumps")) { dojump[id] = true jumpnum[id]++ return PLUGIN_CONTINUE } } if((nbut & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND)) { jumpnum[id] = 0 return PLUGIN_CONTINUE } return PLUGIN_CONTINUE } public client_PostThink(id) { if(!is_user_alive(id) || !is_user_vip ( id )) return PLUGIN_CONTINUE if(dojump[id] == true) { new Float:velocity[3] entity_get_vector(id,EV_VEC_velocity,velocity) velocity[2] = random_float(265.0,285.0) entity_set_vector(id,EV_VEC_velocity,velocity) dojump[id] = false return PLUGIN_CONTINUE } return PLUGIN_CONTINUE } bool: is_user_vip ( id ) { if ( get_user_flags ( id ) & VIP_FLAG ) return true; return false; } 3
Cerere VIP RESPAWN
in Cereri Resurse
Posted
Flagul la vip e "t"