23.04.2014, 12:05
OnPlayerClickMap is a callback. Remove the function and add this to the gamemode:
For better results about the Z (height) parameter, you can use MapAndreas.
pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
return 1;
}