17.09.2014, 01:22
pawn Код:
CMD:superjump( playerid, params[ ] )
{
#pragma unused params
if(PlayerInfo[playerid][SjKey] == 0)
{
PlayerInfo[playerid][SjKey] = 0;
SendClientMessage(playerid, COLOR_RED, "{00FFCC}[AFS]{FF0000}You turned off Super Jump {00FF00}(/Superjump)");
}
else
{
PlayerInfo[playerid][SjKey] = 1;
SendClientMessage(playerid, COLOR_RED, "{00FFCC}[AFS]{FF0000}You turned on Super Jump. Press {00FF00}LShift {FF0000}to use it");
}
}
if ( newkeys & KEY_JUMP && PlayerInfo[ playerid ][ SjKey ] == 1 )
{
new Float:SuperJump[3];
GetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]);
SetPlayerVelocity(playerid, SuperJump[0], SuperJump[1], SuperJump[2]+5);
return ( 1 );
}