Пользователь
- Сообщения
- 33
- Реакции
- 0
Помогите найти хороший парашют с моделью на реапи , в интернете один хлам (дыры в кодах) , скальпеля не хочу юзать так как реклама в консоле да и плагин люди говорят тяжелый у него .. заранее спасибо )
#include <amxmodx>
#include <reapi>
public plugin_init() {
register_plugin("[ReAPI] Parachute", "1.1.1", "ReHLDS Team");
RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}
public PM_AirMove(const playerIndex) {
if(!(get_entvar(playerIndex, var_button) & IN_USE) || get_entvar(playerIndex, var_waterlevel) > 0 || !is_user_alive(playerIndex)) return;
new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);
if(flVelocity[2] < 0.0) {
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
set_entvar(playerIndex, var_model, "models/custom/ваша модель парашюта");
set_movevar(mv_gravity, 80.0);
}
}
#include <amxmodx>
#include <reapi>
public plugin_init() {
register_plugin("PARACHUTE", "0.0.1", "ReHLDS Team");
RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}
public PM_AirMove(const playerIndex) {
if(!(get_entvar(playerIndex, var_button) & IN_USE) || get_entvar(playerIndex, var_waterlevel) > 0 || !is_user_alive(playerIndex)) return;
new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);
if(flVelocity[2] < 0.0) {
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
set_entvar(playerIndex, var_model, "models/parachute.mdl");
set_movevar(mv_gravity, 80.0);
}
#include <amxmodx>
#include <reapi>
public plugin_init() {
register_plugin("PARACHUTE", "0.0.1", "ReHLDS Team");
RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}
public PM_AirMove(const playerIndex) {
if(!(get_entvar(playerIndex, var_button) & IN_USE) || get_entvar(playerIndex, var_waterlevel) > 0 || !is_user_alive(playerIndex)) return;
new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);
if(flVelocity[2] < 0.0) {
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
set_entvar(playerIndex, var_model, "models/custom/parachute.mdl");
set_movevar(mv_gravity, 80.0);
}
}
Если бы я знал, кто автор, то написал его ник. Тем более, я не указал никого в авторстве.Minni, щас модно стало переделывать исходник одной строкой и менять автора ?
#include <amxmodx>
#include <reapi>
public plugin_init() {
register_plugin("[ReAPI] Parachute", "1.1.1", "ReHLDS Team");
RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}
public PM_AirMove(const playerIndex) {
if(!(get_entvar(playerIndex, var_button) & IN_USE) || get_entvar(playerIndex, var_waterlevel) > 0 || !is_user_alive(playerIndex)) return;
new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);
if(flVelocity[2] < 0.0) {
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
set_entvar(playerIndex, var_model, "models/custom_directory/your_model_parachute.mdl");
set_movevar(mv_gravity, 80.0);
}
}
#include <amxmodx>
#include <reapi>
new const MODEL_PARACHUTE[] = "models/custom/parachute.mdl" //Путь к модели и сама модель
public plugin_init() {
register_plugin("[ReAPI] Parachute", "1.1.1", "ReHLDS Team");
RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}
public plugin_precache() {
precache_model(MODEL_PARACHUTE);
}
public PM_AirMove(const playerIndex) {
if(!(get_entvar(playerIndex, var_button) & IN_USE) || get_entvar(playerIndex, var_waterlevel) > 0 || !is_user_alive(playerIndex)) return;
new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);
if(flVelocity[2] < 0.0) {
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
set_entvar(playerIndex, var_model, MODEL_PARACHUTE);
set_movevar(mv_gravity, 80.0);
}
}
#include <amxmodx>
#include <reapi>
#include <engine>
new const MODEL_PARACHUTE[] = "models/custom/parachute.mdl" //Путь к модели и сама модель
public plugin_init() {
register_plugin("[ReAPI] Parachute", "1.1.1", "ReHLDS Team");
RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}
public plugin_precache() {
precache_model(MODEL_PARACHUTE);
}
public PM_AirMove(const playerIndex) {
if(!(get_entvar(playerIndex, var_button) & IN_USE) || get_entvar(playerIndex, var_waterlevel) > 0 || !is_user_alive(playerIndex)) return;
new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);
if(flVelocity[2] < 0.0) {
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
entity_set_string(playerIndex, EV_SZ_model, MODEL_PARACHUTE);
set_movevar(mv_gravity, 80.0);
}
}