umm lil help please thanks
#1

pawn Код:
if(strcmp(cmd, "/enter", true) == 0)
    {
     if(IsPlayerConnected(playerid))
        {
            if (PlayerToPoint(3.0, playerid,1480.9843,-1772.3068,18.7958))
            {
              SetPlayerInterior(playerid,3);
                SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
                GameTextForPlayer(playerid, "~w~Welcome to the City Hall", 5000, 1);
                PlayerInfo[playerid][pInt] = 3;
                PlayerInfo[playerid][pLocal] = 241;
            }
            else if (PlayerToPoint(3.0, playerid,2695.6235,-1704.6960,11.8438))
            {
              GameTextForPlayer(playerid, "~w~Welcome to the 8ball Track", 5000, 1);
              SetPlayerInterior(playerid,7);
                SetPlayerPos(playerid,-1404.5299,-259.0602,1043.6563);
            }
            else if (PlayerToPoint(8.0, playerid,-2111.5686,-443.9720,38.7344))
            {
              GameTextForPlayer(playerid, "~w~Welcome to the Dirt Track", 5000, 1);
              SetPlayerInterior(playerid,4);
                SetPlayerPos(playerid,-1443.0554,-581.1879,1055.0472);
            }
            else if (PlayerToPoint(8.0, playerid,-2080.3079,-406.0309,38.7344))
            {
              GameTextForPlayer(playerid, "~w~Welcome to the Stunting Track", 5000, 1);
              SetPlayerInterior(playerid,14);
                SetPlayerPos(playerid,-1464.7732,1557.5533,1052.5313);
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/exit", true) == 0)
    {
      if(IsPlayerConnected(playerid))
        {
             if (PlayerToPoint(3.0, playerid,387.7978,173.8582,1008.3828))
            {
              SetPlayerInterior(playerid,0);
                SetPlayerPos(playerid,-2162.2554,-2385.9541,30.6250);
                PlayerInfo[playerid][pInt] = 0;
                PlayerInfo[playerid][pLocal] = 255;
            }
            else if (PlayerToPoint(6.0, playerid,-1404.5299,-259.0602,1043.6563))
            {
              SetPlayerInterior(playerid,0);
                SetPlayerPos(playerid,2695.6235,-1704.6960,11.8438);
            }
            else if (PlayerToPoint(8.0, playerid,-1443.0554,-581.1879,1055.0472))
            {
              SetPlayerInterior(playerid,0);
                SetPlayerPos(playerid,-2111.5686,-443.9720,38.7344);
            }
            else if (PlayerToPoint(8.0, playerid,-1464.7732,1557.5533,1052.5313))
            {
              SetPlayerInterior(playerid,0);
                SetPlayerPos(playerid,-2080.3079,-406.0309,38.7344);
            }
        }
        return 1;
    }
My /enter command works but my /exit command doesn't can anyone help me please?
Reply
#2

Must have the coordinates wrong for the exit.
Reply
#3

Quote:
Originally Posted by _❼_
Must have the coordinates wrong for the exit.
hes right xD
I see you found out another way on making them
Reply
#4

pawn Код:
/enter
if (PlayerToPoint(3.0, playerid,1480.9843,-1772.3068,18.7958))
            {
              SetPlayerInterior(playerid,3);
                SetPlayerPos(playerid,387.7978,173.8582,1008.3828);
                GameTextForPlayer(playerid, "~w~Welcome to the City Hall", 5000, 1);
                PlayerInfo[playerid][pInt] = 3;
                PlayerInfo[playerid][pLocal] = 241;
            }
/exit
 if (PlayerToPoint(3.0, playerid,387.7978,173.8582,1008.3828))
            {
              SetPlayerInterior(playerid,0);
                SetPlayerPos(playerid,-2162.2554,-2385.9541,30.6250);
                PlayerInfo[playerid][pInt] = 0;
                PlayerInfo[playerid][pLocal] = 255;
            }
I got it fixed nevermind
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)