SA-MP Forums Archive
/enter and /exit CMD'S - 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: /enter and /exit CMD'S (/showthread.php?tid=263008)



/enter and /exit CMD'S - Mr.Black - 20.06.2011

Can someone Make me a Filterscript with /enter and /exit CMD'S and they only work when you at a Deifinite Point (( Ex : at a door to do /enter )) - So i can Edit it later if i want to make Enterable places ? Thanks


Re: /enter and /exit CMD'S - sampfans - 20.06.2011

you need to make one cmd only not two cmds that not work

use isplayerrangeofpoint make in same enter cmd place


Re: /enter and /exit CMD'S - Wesley221 - 20.06.2011

Example (using ZCMD, change it to DCMD/STRCMP if you want)

pawn Код:
COMMAND:enter(playerid, cmdtext)
{
   if(IsPlayerInRangeOfPoint(playerid, 5, 1, 2, 3))
   {
      SetPlayerPos(playerid, 50, 60, 70);
   }
   else if(IsPlayerInRangeOfPoint(playerid, 5, 4, 5, 6))
   {
      SetPlayerPos(playerid, 80, 90, 100);
   }
   return 1;
}