19.03.2012, 19:32
Its not in use anymore. You must use OnPlayerClickMap callback for that now. Use it like this:
Edit: wowow, 2 replies while i was replying.. anyway, my way here is with MapAndreas plugin and both for vehicle and on foot tp.
pawn Код:
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
if(IsPlayerAdmin(playerid))
{
if(GetPlayerState(playerid) == 2)
{
new carid;
carid=GetPlayerVehicleID(playerid);
SetVehiclePos(carid,fX,fY,MapAndreas_FindZ_For2DCoord(fX,fY,fZ));
}
else SetPlayerPosFindZ(playerid, fX, fY, fZ);
}
return 1;
}
