public OnGameModeInit()
{
AllowAdminTeleport(1);
return 1;
}
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
new Float:x, Float:y, Float:z;
if(!IsPlayerAdmin(playerid))
return 1;
if(IsPlayerAdmin(playerid))
SetPlayerPosFindZ(playerid, x, y, z);
return 1;
}
, Float:y, Float:z;, if(!IsPlayerAdmin(playerid)), return 1; Its not needed.
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(IsPlayerAdmin(playerid))
{
SetPlayerPosFindZ(playerid, fX, fY, fZ);
}
return 1;
}
|
Originally Posted by SA-MP Wiki
The Z value returned will be 0 (invalid) if it is far away from the player; use the MapAndreas plugin to get a more accurate Z coordinate.
|