anti-jump for roleplay
#1

hi. i see on many rp servers and when you jump, you will not jump very far. how i make that?
Reply
#2

Do you mean bunny hopping or just that the character doesn't jump too far.
Reply
#3

i mean like u know if people sprint and jump becuse they can run faster, well i dont want that. i want it so if the player sprints and then jumps (thinking he can go faster), he wont jump as far and just sprinting will be faster than sprint and jump.
Reply
#4

GetPlayerVelocity + SetPlayerVelocity. They just half it when they jump I guess.
Reply
#5

Block every jump

pawn Код:
//OnPlayerKeyStateChange
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP))
{
    new Float:VBPos[3];
    GetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
    SetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
}
Reply
#6

Also remember not to get the player to the same place because sometimes a player need to jump over fences and stuff, and not just bunny hop :S
Reply
#7

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Block every jump

pawn Код:
//OnPlayerKeyStateChange
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP))
{
    new Float:VBPos[3];
    GetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
    SetPlayerPos(playerid,VBPos[0],VBPos[1],VBPos[2]);
}
He doesn't want to STOP them from jumping. Read his post.
Reply
#8

Don't use UsePlayerPedAnims();
It'll stop them from running fast and jumping like CJ.
Reply
#9

You mean Anti Bunny hoping?
Reply
#10

Read the god damn topic, Jesus. Unless you can run and jump in a car he clearly doesn't mean that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)