/* Plugin generated by AMXX-Studio */ #include #include #include #include #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "Administrator" new bool:g_Have[33] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_forward(FM_Touch,"Touch") register_logevent("new_round", 2, "1=Round_Start") } public client_connect(id) g_Have[id] = false public new_round() { for(new id=1;id<33;id++) { if(is_user_alive(id)) { g_Have[id] = true set_user_noclip(id,1) set_task(10.0,"Np_off",id) } } } public Np_off(id) { g_Have[id] = false set_user_noclip(id,0) } public Touch(touched,toucher) { new class[2][33] pev(touched, pev_classname,class[0],32) pev(toucher, pev_classname,class[1],32) if(equali(class[0],"player") && equali(class[1],"player")) { if(g_Have[toucher]) { push_off(toucher) } } } public push_off(id) { new Float: velocity[3], Float: DW; pev(id, pev_velocity, velocity); DW = vector_length(velocity) + 0.0001; velocity[0] = (velocity[0] / DW) * (-500.0); velocity[1] = (velocity[1] / DW) * (-500.0); if(velocity[2] < 0) velocity[2] = velocity[2] * (-1.0) + 15.0; set_pev(id, pev_velocity, velocity); }