11.03.2012, 22:44
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;
}