[HELP] /enter and /exit twice?
#1

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

Reply
#2

(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)
Reply
#3

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
Reply
#4

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;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)