21.11.2010, 04:12
How do I make all the players on a team jump higher ?
The message you have entered is too short. Please lengthen your message to at least 8 characters.
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;
}
#define PRESSED(%0) \
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
The message you have entered is too short. Please lengthen your message to at least 8 characters.