How to make a teleport with button?
#6

When player presses F / ENTER, I think, take this and learn more.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
    if((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK)) {
        if(IsPlayerInRangeOfPoint(playerid, 2.5, X, Y, Z)) { // You need to change X, Y, Z to the entrance..
            // Here you teleports the player to the specific location with interior ID.
            return 1;
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to make a teleport with button? - by Join7 - 30.07.2011, 14:53
Re: How to make a teleport with button? - by eDz0r - 30.07.2011, 14:57
Re: How to make a teleport with button? - by Pooh7 - 30.07.2011, 14:58
Re: How to make a teleport with button? - by Join7 - 30.07.2011, 15:02
Re: How to make a teleport with button? - by Join7 - 30.07.2011, 16:10
Re: How to make a teleport with button? - by Toreno - 30.07.2011, 16:17
Re: How to make a teleport with button? - by Join7 - 30.07.2011, 16:22
Re: How to make a teleport with button? - by Toreno - 30.07.2011, 16:25
Re: How to make a teleport with button? - by =WoR=Varth - 30.07.2011, 17:03
Re: How to make a teleport with button? - by Toreno - 30.07.2011, 17:07
Re: How to make a teleport with button? - by =WoR=Varth - 30.07.2011, 17:09
Re: How to make a teleport with button? - by Join7 - 01.08.2011, 15:28
Re: How to make a teleport with button? - by =WoR=Varth - 02.08.2011, 00:47

Forum Jump:


Users browsing this thread: 5 Guest(s)