27.11.2010, 03:12
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(gTeam[playerid] != TEAM_HUNTER)
{
if ( PRESSED ( KEY_JUMP ) )
{
new Float:X1 , Float:Y1 , Float:Z1 ;
GetPlayerVelocity ( playerid, X1, Y1, Z1 );
SetPlayerVelocity ( playerid, X1, Y1, Z1 + 0.5 );
}
}
return 1;
}