Dar eu vreau sa apara de 1-2 ori prima data cand intri pe server dupa sa nu mai apara ..
- | Afiseaza codul
/* * * Author: homorapian * Date: 14-Aug-2005 * * * what it is.. It is a bunnyhop that removes the slowdown after a jump. hold it to go faster * * Cvars: * bh_enabled 1 to enable this plugin, 0 to disable. * bh_autojump If set to 1 players just need to hold down jump to bunny hop (no skill required) * bh_showusage If set to 1 it will inform joining players that bunny hopping has been enabled * and how to use it if bh_autojump enabled. * * Requirements: amxmodx 1.01 or higher * * ************************ I LEARNED THIS PLUGIN FROM ANOTHER Bunnyhop PLUGIN************************************* */ #include <amxmodx> #include <engine> #define TAG "INFO" #define FL_WATERJUMP (1<<11) // popping out of the water #define FL_ONGROUND (1<<9) // not moving on the ground public plugin_init() { register_plugin("Bhop", "1.0", "homorapian") register_cvar("sbhopper_version", "1.0", FCVAR_SERVER) register_cvar("bh_enabled", "1") register_cvar("bh_autojump", "1") register_cvar("bh_showusage", "1") } public client_PreThink(id) { if (!get_cvar_num("bh_enabled")) return PLUGIN_CONTINUE entity_set_float(id, EV_FL_fuser2, 0.0) // Won't slow down after a jump if (!get_cvar_num("bh_autojump")) return PLUGIN_CONTINUE if (entity_get_int(id, EV_INT_button) & 2) { new flags = entity_get_int(id, EV_INT_flags) if (flags & FL_WATERJUMP) return PLUGIN_CONTINUE if ( entity_get_int(id, EV_INT_waterlevel) >= 2 ) return PLUGIN_CONTINUE if ( !(flags & FL_ONGROUND) ) return PLUGIN_CONTINUE new Float:velocity[3] entity_get_vector(id, EV_VEC_velocity, velocity) velocity[2] += 250.0 entity_set_vector(id, EV_VEC_velocity, velocity) entity_set_int(id, EV_INT_gaitsequence, 6) // Jump graphics } return PLUGIN_CONTINUE } public client_authorized(id) set_task(30.0, "showUsage" ) public showUsage(id) { if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") ) return PLUGIN_HANDLED xColor( 0, "!nBunnyHop este activat pe acest server, puteti sari." ); } stock xColor(const id, const input[], any:...) { new count = 1, players[32] static msg[320], msg2[320] vformat(msg, 190, input, 3) format(msg2, 190, "!g[!g%s!g] %s", TAG, msg) replace_all(msg2, 190, "!g", "^4") replace_all(msg2, 190, "!n", "^1") replace_all(msg2, 190, "!t", "^3") replace_all(msg2, 190, "!t2", "^0") if (id) players[0] = id else get_players(players, count, "ch") for (new i = 0; i < count; i++) { if (is_user_connected(players)) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players) write_byte(players) write_string(msg2) message_end() } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } */
Sper ca ati inteles si sa ma ajutati :)