Quick Question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Quick Question (
/showthread.php?tid=73830)
Quick Question -
FreeSoul - 18.04.2009
I have the following command
if(strcmp(cmdtext, "/takeguns", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
ShowMenuForPlayer(gunmenu1,playerid);
return 1;
}
}
How can I make it available only if the player is in a certain place,X,Y,Z ?
Re: Quick Question -
RyDeR` - 18.04.2009
Use PlayerToPoint :P
Re: Quick Question -
RyDeR` - 18.04.2009
Example:
https://sampwiki.blast.hk/wiki/Automatic_Gates