24.03.2013, 12:51
GetPlayerPosFindZ
Example
pawn Код:
stock GetPlayerPosFindZ(playerid, Float:X, Float:Y, &Float:Z)
{
new Float:pos[5];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPosFindZ(playerid, X, Y, Z);
GetPlayerPos(playerid, pos[3], pos[4], Z);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
return 1;
}
Example
pawn Код:
CMD:a(playerid, params[])
{
new Float:pos;
GetPlayerPosFindZ(playerid, 0.0, 0.0, pos);
printf("%f", pos);
return 1;
}
