17.09.2014, 03:38
Thanks, Here is the new code
Still won't work
Код:
CMD:superjump( playerid, params[ ] ) { #pragma unused params if(PlayerInfo[playerid][SjKey] == 0) { PlayerInfo[playerid][SjKey] = 1; SendClientMessage(playerid, COLOR_RED, "You turned on Super Jump. Press {00FF00}LShift {FF0000}to use it"); } else if(PlayerInfo[playerid][SjKey] == 1) { PlayerInfo[playerid][SjKey] = 0; SendClientMessage(playerid, COLOR_RED, "You turned off Super Jump {00FF00}(/Superjump)"); } } 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 ); }