/enter, /exit
#3

Here's an example:

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEYNUMBERHERE) // Get The key from here https://sampwiki.blast.hk/wiki/GetPlayerKeys
    {
        if(IsPlayerInRangeOfPoint(playerid, RANGE, POS-X, POS-Y, POS-Z)) // Here if you don't know how to use IsPlayerInRangeOfPoint https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
        {
            SetPlayerPos(playerid, Pos-X, POS-Y, POS-Z); // Here if you need help with SetPlayerPos https://sampwiki.blast.hk/wiki/SetPlayerPos
            SetPlayerInterior(playerid, InteriorNumberHere); // Here if you need help with SetPlayerInterior https://sampwiki.blast.hk/wiki/SetPlayerInterior
        }
    }
    return 1;
}
Reply


Messages In This Thread
/enter, /exit - by Dripac - 11.03.2012, 22:29
Re: /enter, /exit - by jameskmonger - 11.03.2012, 22:39
Re: /enter, /exit - by JJB562 - 11.03.2012, 22:44
Re: /enter, /exit - by Dripac - 11.03.2012, 22:48
Re: /enter, /exit - by JJB562 - 11.03.2012, 22:51
Re: /enter, /exit - by jameskmonger - 11.03.2012, 22:51
Re: /enter, /exit - by Dripac - 11.03.2012, 22:59
Re: /enter, /exit - by JJB562 - 11.03.2012, 23:29
Re: /enter, /exit - by IceCube! - 12.03.2012, 00:36
Re: /enter, /exit - by Dripac - 12.03.2012, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)