How do I make all the players on a team jump higher ? -
marinov - 21.11.2010
How do I make all the players on a team jump higher ?
Re: How do I make all the players on a team jump higher ? -
[Comrade] - 21.11.2010
Put everything on a top shelf, jk i don't know
Re: How do I make all the players on a team jump higher ? -
marinov - 21.11.2010
'-.-
Код:
The message you have entered is too short. Please lengthen your message to at least 8 characters.
Re: How do I make all the players on a team jump higher ? -
Haegon - 21.11.2010
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.
Re: How do I make all the players on a team jump higher ? -
Haydz - 21.11.2010
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.
Re: How do I make all the players on a team jump higher ? -
X35B - 21.11.2010
Download YSF from alex and test that out.
Re: How do I make all the players on a team jump higher ? -
Grim_ - 21.11.2010
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)))
Re: How do I make all the players on a team jump higher ? -
marinov - 21.11.2010
I want the gravity one, is it possible ?
Re: How do I make all the players on a team jump higher ? -
RyDeR` - 21.11.2010
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);
Re: How do I make all the players on a team jump higher ? -
marinov - 21.11.2010
I searched and didn't find

can u give me the link ?
Re: How do I make all the players on a team jump higher ? -
Victor - 21.11.2010
Here:
Click Me
Re: How do I make all the players on a team jump higher ? -
marinov - 21.11.2010
thx
Код:
The message you have entered is too short. Please lengthen your message to at least 8 characters.