Teleport on keypress?
#5

You mean like this ?

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if (PRESSED(KEY_SECONDARY_ATTACK))
        {
                if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near doors for enter
                {
                        SetPlayerPos(playerid, Your coordinates); //Set player position inside interior
                }
                if(IsPlayerInRangeOfPoint(playerid, 2.0, Your coordinates)) //Is near interior exit doors
                {
                        SetPlayerPos(playerid, Your coordinates); //Set player position to enter doors
                }
        }
        return 1;
}
Reply


Messages In This Thread
Teleport on keypress? - by DomagojSellug - 20.04.2017, 16:16
Re: Teleport on keypress? - by coool - 20.04.2017, 16:22
Re: Teleport on keypress? - by DomagojSellug - 20.04.2017, 16:23
Re: Teleport on keypress? - by coool - 20.04.2017, 16:25
Re: Teleport on keypress? - by Bolex_ - 20.04.2017, 16:26
Re: Teleport on keypress? - by DomagojSellug - 20.04.2017, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)