17.10.2007, 16:25
As there isn't a GetPlayerPosFindZ you can:
Then pos[3] will be the Z of the ground below the player and pos[2] will be where to player is now so to work out the difference you would then do:
or
It's hardly rocket science so i don't know why you are calling me a "smartass"..
pawn Code:
new Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPosFindZ(playerid, pos[0], pos[1], pos[2]);
GetPlayerPos(playerid, pos[0], pos[1], pos[3]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
pawn Code:
pos[2] -= pos[3];
pawn Code:
floatsub(pos[2], pos[3]);

