ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1811

Jp Narutomode Credit by Citssss

by Citssss - 09-09-2018 - 08:44 PM
#1
if (Narutomode)
{
int player = PLAYER::PLAYER_PED_ID();
TakeAllWeapons(player);
Vector3 vector = CAM::GET_GAMEPLAY_CAM_ROT(2);
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_L2))
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
ENTITY::SET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), 0, vector.y, vector.z, 2, true);
AI::SET_ANIM_RATE(player, 2.5, 0, 0);
ENTITY::APPLY_FORCE_TO_ENTITY(PLAYER::PLAYER_PED_ID(), true, 0, 0.5, 0, 0, 0, 0, false, true, true, true, false, true);
if (PED::IS_PED_HUMAN(player))
{
if ((!PED::IS_PED_FALLING(player)) && (!PED::IS_PED_SWIMMING_UNDER_WATER(player)) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "move_m@generic", "sprint", 3) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "skydive@freefall", "free_forward", 3))))
{
TASK_PLAY_ANIM8(player, "move_m@generic", "sprint");
TASK_PLAY_ANIM_13(player, "skydive@freefall", "free_forward");
}
Naruto_mode_ = true;
}
}
else
{
if (Naruto_mode_)
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), true);
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
AI::TASK_FORCE_MOTION_STATE(player, 0xFFF7E7A4, 0);
Naruto_mode_ = false;
Freeze(PLAYER::PLAYER_PED_ID());


}
else
{
if (Naruto_mode_)
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), true);
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
AI::TASK_FORCE_MOTION_STATE(player, 0xFFF7E7A4, 0);
Naruto_mode_ = false;
}
}
if (CONTROLS::IS_CONTROL_JUST_PRESSED(0, Button_R3))//R3
{
ENTITY::FREEZE_ENTITY_POSITION(player, false);
Freeze(PLAYER::PLAYER_PED_ID());
AI::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::PLAYER_PED_ID());
Narutomode = false;

}
if (CONTROLS::IS_CONTROL_JUST_PRESSED(0, Button_R1))//R1
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
PED::RESET_PED_RAGDOLL_TIMER(PLAYER::PLAYER_PED_ID());
ApplyForce(PLAYER::PLAYER_PED_ID(), 0, 0, 10);
ApplyForce(PLAYER::PLAYER_PED_ID(), 0, 0, 10);
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
PED::RESET_PED_RAGDOLL_TIMER(PLAYER::PLAYER_PED_ID());
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_R1))
{

ENTITY::SET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), vector.x, vector.y, vector.z, 2, true);
AI::SET_ANIM_RATE(PLAYER::PLAYER_PED_ID(), 1.0, 2.0, 0);
ENTITY::APPLY_FORCE_TO_ENTITY(PLAYER::PLAYER_PED_ID(), true, 0, 0.7, 0, 0, 0, 0, false, true, true, true, false, true);
if (!ENTITY::IS_ENTITY_PLAYING_ANIM(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up", 3))
{
TASK_PLAY_ANIM8(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up");
}
}
else
{
if (ENTITY::IS_ENTITY_PLAYING_ANIM(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up", 3))
{
Freeze(PLAYER::PLAYER_PED_ID());
if (PED::IS_PED_FALLING(PLAYER::PLAYER_PED_ID()))
AUDIO::DISABLE_PED_PAIN_AUDIO(PLAYER::PLAYER_PED_ID(), true);
}
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Dpad_Left))
{
BONBON("core", "ent_sht_electrical_box", player, 0, 0, 0, 0, 0, 0, 6286, 0.3);
Any veh[arrSize];
veh[0] = numElements;
int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), veh);
if (veh != NULL)
{
for (int i = 1; i <= count; i++)
{
int offsettedID = i;
if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
{
ENTITY::APPLY_FORCE_TO_ENTITY(veh[offsettedID], 1, 0.0, 1.0, 0.71, 5.0, 0.0, 0.0, 1, false, true, true, true, true);
ENTITY::SET_ENTITY_HAS_GRAVITY(veh[offsettedID], false);
}
}
}
if (PED::IS_PED_HUMAN(player))
{
if ((!PED::IS_PED_FALLING(player)) && (!PED::IS_PED_SWIMMING_UNDER_WATER(player)) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "move_m@generic", "sprint", 3) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "amb@lo_res_idles@", "world_human_maid_clean_lo_res_base", 3))))
{
TASK_PLAY_ANIM_1(player, "amb@lo_res_idles@", "world_human_maid_clean_lo_res_base");
}
Naruto_mode_5 = true;
}
}
else
{
if (Naruto_mode_5)
{
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
Freez2(player);
Naruto_mode_5 = false;
}
}
}
}


Enjoy Naruto mode  Angel Angel Angel
Reply
#2
What the BONBON?
Reply
#3
(09-09-2018 - 08:44 PM)Citssss Wrote: if (Narutomode)
{
int player = PLAYER::PLAYER_PED_ID();
TakeAllWeapons(player);
Vector3 vector = CAM::GET_GAMEPLAY_CAM_ROT(2);
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_L2))
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
ENTITY::SET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), 0, vector.y, vector.z, 2, true);
AI::SET_ANIM_RATE(player, 2.5, 0, 0);
ENTITY::APPLY_FORCE_TO_ENTITY(PLAYER::PLAYER_PED_ID(), true, 0, 0.5, 0, 0, 0, 0, false, true, true, true, false, true);
if (PED::IS_PED_HUMAN(player))
{
if ((!PED::IS_PED_FALLING(player)) && (!PED::IS_PED_SWIMMING_UNDER_WATER(player)) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "move_m@generic", "sprint", 3) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "skydive@freefall", "free_forward", 3))))
{
TASK_PLAY_ANIM8(player, "move_m@generic", "sprint");
TASK_PLAY_ANIM_13(player, "skydive@freefall", "free_forward");
}
Naruto_mode_ = true;
}
}
else
{
if (Naruto_mode_)
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), true);
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
AI::TASK_FORCE_MOTION_STATE(player, 0xFFF7E7A4, 0);
Naruto_mode_ = false;
Freeze(PLAYER::PLAYER_PED_ID());


}
else
{
if (Naruto_mode_)
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), true);
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
AI::TASK_FORCE_MOTION_STATE(player, 0xFFF7E7A4, 0);
Naruto_mode_ = false;
}
}
if (CONTROLS::IS_CONTROL_JUST_PRESSED(0, Button_R3))//R3
{
ENTITY::FREEZE_ENTITY_POSITION(player, false);
Freeze(PLAYER::PLAYER_PED_ID());
AI::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::PLAYER_PED_ID());
Narutomode = false;

}
if (CONTROLS::IS_CONTROL_JUST_PRESSED(0, Button_R1))//R1
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
PED::RESET_PED_RAGDOLL_TIMER(PLAYER::PLAYER_PED_ID());
ApplyForce(PLAYER::PLAYER_PED_ID(), 0, 0, 10);
ApplyForce(PLAYER::PLAYER_PED_ID(), 0, 0, 10);
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
PED::RESET_PED_RAGDOLL_TIMER(PLAYER::PLAYER_PED_ID());
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_R1))
{

ENTITY::SET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), vector.x, vector.y, vector.z, 2, true);
AI::SET_ANIM_RATE(PLAYER::PLAYER_PED_ID(), 1.0, 2.0, 0);
ENTITY::APPLY_FORCE_TO_ENTITY(PLAYER::PLAYER_PED_ID(), true, 0, 0.7, 0, 0, 0, 0, false, true, true, true, false, true);
if (!ENTITY::IS_ENTITY_PLAYING_ANIM(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up", 3))
{
TASK_PLAY_ANIM8(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up");
}
}
else
{
if (ENTITY::IS_ENTITY_PLAYING_ANIM(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up", 3))
{
Freeze(PLAYER::PLAYER_PED_ID());
if (PED::IS_PED_FALLING(PLAYER::PLAYER_PED_ID()))
AUDIO::DISABLE_PED_PAIN_AUDIO(PLAYER::PLAYER_PED_ID(), true);
}
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Dpad_Left))
{
BONBON("core", "ent_sht_electrical_box", player, 0, 0, 0, 0, 0, 0, 6286, 0.3);
Any veh[arrSize];
veh[0] = numElements;
int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), veh);
if (veh != NULL)
{
for (int i = 1; i <= count; i++)
{
int offsettedID = i;
if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
{
ENTITY::APPLY_FORCE_TO_ENTITY(veh[offsettedID], 1, 0.0, 1.0, 0.71, 5.0, 0.0, 0.0, 1, false, true, true, true, true);
ENTITY::SET_ENTITY_HAS_GRAVITY(veh[offsettedID], false);
}
}
}
if (PED::IS_PED_HUMAN(player))
{
if ((!PED::IS_PED_FALLING(player)) && (!PED::IS_PED_SWIMMING_UNDER_WATER(player)) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "move_m@generic", "sprint", 3) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "amb@lo_res_idles@", "world_human_maid_clean_lo_res_base", 3))))
{
TASK_PLAY_ANIM_1(player, "amb@lo_res_idles@", "world_human_maid_clean_lo_res_base");
}
Naruto_mode_5 = true;
}
}
else
{
if (Naruto_mode_5)
{
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
Freez2(player);
Naruto_mode_5 = false;
}
}
}
}


Enjoy Naruto mode  Angel Angel Angel
TASK_PLAY_ANIM8
TASK_PLAY_ANIM_13
Freeze
show this func end natives pls?
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Reply
#4
(09-09-2018 - 09:05 PM)NoNameV2345 Wrote:
(09-09-2018 - 08:44 PM)Citssss Wrote: if (Narutomode)
{
int player = PLAYER::PLAYER_PED_ID();
TakeAllWeapons(player);
Vector3 vector = CAM::GET_GAMEPLAY_CAM_ROT(2);
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_L2))
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
ENTITY::SET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), 0, vector.y, vector.z, 2, true);
AI::SET_ANIM_RATE(player, 2.5, 0, 0);
ENTITY::APPLY_FORCE_TO_ENTITY(PLAYER::PLAYER_PED_ID(), true, 0, 0.5, 0, 0, 0, 0, false, true, true, true, false, true);
if (PED::IS_PED_HUMAN(player))
{
if ((!PED::IS_PED_FALLING(player)) && (!PED::IS_PED_SWIMMING_UNDER_WATER(player)) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "move_m@generic", "sprint", 3) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "skydive@freefall", "free_forward", 3))))
{
TASK_PLAY_ANIM8(player, "move_m@generic", "sprint");
TASK_PLAY_ANIM_13(player, "skydive@freefall", "free_forward");
}
Naruto_mode_ = true;
}
}
else
{
if (Naruto_mode_)
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), true);
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
AI::TASK_FORCE_MOTION_STATE(player, 0xFFF7E7A4, 0);
Naruto_mode_ = false;
Freeze(PLAYER::PLAYER_PED_ID());


}
else
{
if (Naruto_mode_)
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), true);
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
AI::TASK_FORCE_MOTION_STATE(player, 0xFFF7E7A4, 0);
Naruto_mode_ = false;
}
}
if (CONTROLS::IS_CONTROL_JUST_PRESSED(0, Button_R3))//R3
{
ENTITY::FREEZE_ENTITY_POSITION(player, false);
Freeze(PLAYER::PLAYER_PED_ID());
AI::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::PLAYER_PED_ID());
Narutomode = false;

}
if (CONTROLS::IS_CONTROL_JUST_PRESSED(0, Button_R1))//R1
{
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
PED::RESET_PED_RAGDOLL_TIMER(PLAYER::PLAYER_PED_ID());
ApplyForce(PLAYER::PLAYER_PED_ID(), 0, 0, 10);
ApplyForce(PLAYER::PLAYER_PED_ID(), 0, 0, 10);
ENTITY::FREEZE_ENTITY_POSITION(PLAYER::PLAYER_PED_ID(), false);
PED::RESET_PED_RAGDOLL_TIMER(PLAYER::PLAYER_PED_ID());
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Button_R1))
{

ENTITY::SET_ENTITY_ROTATION(PLAYER::PLAYER_PED_ID(), vector.x, vector.y, vector.z, 2, true);
AI::SET_ANIM_RATE(PLAYER::PLAYER_PED_ID(), 1.0, 2.0, 0);
ENTITY::APPLY_FORCE_TO_ENTITY(PLAYER::PLAYER_PED_ID(), true, 0, 0.7, 0, 0, 0, 0, false, true, true, true, false, true);
if (!ENTITY::IS_ENTITY_PLAYING_ANIM(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up", 3))
{
TASK_PLAY_ANIM8(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up");
}
}
else
{
if (ENTITY::IS_ENTITY_PLAYING_ANIM(PLAYER::PLAYER_PED_ID(), "dead@fall", "dead_fall_up", 3))
{
Freeze(PLAYER::PLAYER_PED_ID());
if (PED::IS_PED_FALLING(PLAYER::PLAYER_PED_ID()))
AUDIO::DISABLE_PED_PAIN_AUDIO(PLAYER::PLAYER_PED_ID(), true);
}
}
if (CONTROLS::IS_CONTROL_PRESSED(0, Dpad_Left))
{
BONBON("core", "ent_sht_electrical_box", player, 0, 0, 0, 0, 0, 0, 6286, 0.3);
Any veh[arrSize];
veh[0] = numElements;
int count = PED::GET_PED_NEARBY_VEHICLES(PLAYER::PLAYER_PED_ID(), veh);
if (veh != NULL)
{
for (int i = 1; i <= count; i++)
{
int offsettedID = i;
if (veh[offsettedID] != NULL && ENTITY::DOES_ENTITY_EXIST(veh[offsettedID]))
{
ENTITY::APPLY_FORCE_TO_ENTITY(veh[offsettedID], 1, 0.0, 1.0, 0.71, 5.0, 0.0, 0.0, 1, false, true, true, true, true);
ENTITY::SET_ENTITY_HAS_GRAVITY(veh[offsettedID], false);
}
}
}
if (PED::IS_PED_HUMAN(player))
{
if ((!PED::IS_PED_FALLING(player)) && (!PED::IS_PED_SWIMMING_UNDER_WATER(player)) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "move_m@generic", "sprint", 3) && (!ENTITY::IS_ENTITY_PLAYING_ANIM(player, "amb@lo_res_idles@", "world_human_maid_clean_lo_res_base", 3))))
{
TASK_PLAY_ANIM_1(player, "amb@lo_res_idles@", "world_human_maid_clean_lo_res_base");
}
Naruto_mode_5 = true;
}
}
else
{
if (Naruto_mode_5)
{
AI::SET_ANIM_RATE(player, 0.5, 0.0, 0.0);
Freez2(player);
Naruto_mode_5 = false;
}
}
}
}


Enjoy Naruto mode  Angel Angel Angel
TASK_PLAY_ANIM8
TASK_PLAY_ANIM_13
Freeze
show this func end natives pls?

TASK_PLAY_ANIM_1 too pls
Reply

Users browsing: 3 Guest(s)