SA-MP Forums Archive
How to create interior enter code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to create interior enter code (/showthread.php?tid=543402)



How to create interior enter code - kingcrome - 26.10.2014

Hello, I am creating a new gamemode and I am new to pawno, Can someone tell me how to create /enter to enter a interior for a special building?


Re: How to create interior enter code - Rudy_ - 26.10.2014

save the pos of the door from which a players enters to the interior,
the create a cmd
and check
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, Range, X,Y,Z);
{
    //Player is in range,
    //SetPlayerPos(playerid, X,Y,Z); // The pos of door in interior
}