AllowAdminTeleport()
#4

Its not in use anymore. You must use OnPlayerClickMap callback for that now. Use it like this:
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;
}
Edit: wowow, 2 replies while i was replying.. anyway, my way here is with MapAndreas plugin and both for vehicle and on foot tp.
Reply


Messages In This Thread
AllowAdminTeleport() - by dannyk0ed - 19.03.2012, 19:26
Re: AllowAdminTeleport() - by NeTuddMeg - 19.03.2012, 19:31
Re: AllowAdminTeleport() - by T0pAz - 19.03.2012, 19:32
Re: AllowAdminTeleport() - by Richie© - 19.03.2012, 19:32
Re: AllowAdminTeleport() - by Abravanel - 19.03.2012, 19:33
Re: AllowAdminTeleport() - by dannyk0ed - 19.03.2012, 19:39
Re: AllowAdminTeleport() - by Abravanel - 19.03.2012, 19:49
Re: AllowAdminTeleport() - by dannyk0ed - 19.03.2012, 19:50
Re: AllowAdminTeleport() - by Abravanel - 19.03.2012, 19:57
Re: AllowAdminTeleport() - by new121 - 19.03.2012, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)