20.11.2013, 18:25
This maybe inaccurate but this code help you, if you press SHIFT it will increase the player Position X & Z by 3(Edit if it's too high/low)
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SECONDARY_ATTACK)
{
new Float:Coordinates[4];
GetPlayerPos(playerid, Coordinates[0], Coordinates[1], Coordinates[2]), GetPlayerFacingAngle(playerid, Coordinates[3]);
SetPlayerPos(playerid, Coordinates[0]+3, Coordinates[1], Coordinates[2]+3); //increasing the Coordinate 'Z' by 3 | increase the Coordinate 'X' by 3
SetPlayerFacingAngle(playerid, Coordinates[3]);
}
return true;
}