[HELP] /enter and /exit twice? - 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: [HELP] /enter and /exit twice? (
/showthread.php?tid=87972)
[HELP] /enter and /exit twice? -
FreddeN - 23.07.2009
Now it's time to make /enter and /exit cmds.
I have PlayerToPoint in my scriotm but I need something that allows me to put in how many /enter and /exit cmds how I want...
Thanks
Re: [HELP] /enter and /exit twice? -
Klutty - 23.07.2009
(tja freddie
)
Do like this
pawn Код:
if(PlayerToPoint(playerid, bla bla) || PlayerToPoint(playerid, bla bla) || PlayerToPoint(playerid, bla bla))
{
// w/e
return 1;
}
Quote:
Originally Posted by SA-MP Wiki
|| = or = if (Left || Right)
|
Re: [HELP] /enter and /exit twice? -
FreddeN - 23.07.2009
Quote:
Originally Posted by Klutty
(tja freddie )
Do like this
pawn Код:
if(PlayerToPoint(playerid, bla bla) || PlayerToPoint(playerid, bla bla) || PlayerToPoint(playerid, bla bla)) { // w/e return 1; }
|
Yo, do you think you can exmapl a bit more, never done this before xD
Re: [HELP] /enter and /exit twice? -
Klutty - 23.07.2009
For example:
pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
{
if(PlayerToPoint(5.0,playerid, x,y,z) || PlayerToPoint(5.0,playerid, x,y,z) || PlayerToPoint(5.0,playerid, x,y,z))
{
SetPlayerPos(playerid, interior:x,interior:y,interior:z);
}
else
{
SendClientMessage(playerid, COLOR_RED,"You must be at a house entrance to enter.");
}
return 1;
}