How do I make all the players on a team jump higher ?
#1

How do I make all the players on a team jump higher ?
Reply
#2

Put everything on a top shelf, jk i don't know
Reply
#3

'-.-


Код:
The message you have entered is too short. Please lengthen your message to at least 8 characters.
Reply
#4

Hmm, have you looked into seeing if it possible to set a lower gravity for a certain team or group of players? I'm not sure myself, just throwing out ideas.
Reply
#5

Quote:
Originally Posted by Haegon
Посмотреть сообщение
Hmm, have you looked into seeing if it possible to set a lower gravity for a certain team or group of players? I'm not sure myself, just throwing out ideas.
Yeh maybe, try it anyways, when a player joins a certain team SetPlayerGravity.
Reply
#6

Download YSF from alex and test that out.
Reply
#7

There are two ways of doing this:
- Set the gravity of the server higher/lower
- Make use of the SetPlayerVelocity function!

Something like this may do:
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
   if( PRESSED( KEY_JUMP ) )
   {
      new Float:vel[ 3 ];
      GetPlayerVelocity( playerid, vel[ 0 ], vel[ 1 ], vel[ 2 ] );
      SetPlayerVelocity( playerid, vel[ 0 ], vel[ 1 ], vel[ 2 ] * 2 );
   }
   return 1;
}
Alternatively, you could use the GetPlayerPos/SetPlayerPos functions instead, if that doesn't work out correctly (You would just add, say 10, instead of multiplying by two).

Here is the code for PRESSED function - Credits to the person who made it on the SA:MP wiki
pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
Reply
#8

I want the gravity one, is it possible ?
Reply
#9

Yes, it's possible. But you don't have SetPlayerGravity, so you need a plugin ****** made which has SetPlayerGravity.

EDIT: All the players on a team, so you want the whole server?
Then you don't need the thing above I've said. Just use SetGravity(Float: amount);
Reply
#10

I searched and didn't find can u give me the link ?
Reply
#11

Here:Click Me
Reply
#12

thx

Код:
The message you have entered is too short. Please lengthen your message to at least 8 characters.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)