17.09.2014, 01:15
The code compile properly, but it doesn't work in game
Any idea ?
Код:
CMD:superjump( playerid, params[ ] )
{
#pragma unused params
if(PlayerInfo[playerid][SjKey] == 0)
{
PlayerInfo[playerid][SjKey] = 1;
SendClientMessage(playerid, COLOR_RED, "You turned off Super Jump {00FF00}(/Superjump)");
}
else
{
PlayerInfo[playerid][SjKey] = 0;
SendClientMessage(playerid, COLOR_RED, "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 );
}


