Server restarting.
#5

Well, it's kinda complicated, the coordonates are in a txt file in Scriptfiles folder. That's the line:


1772.5704,-1548.4906,9.9133,1508.3622,-1700.8057,2622.3782,~b~Prison Indoor,0,20,0,0,0,0,0
1797.9349,-1578.8494,14.0907,1548.5311,-1707.5896,2628.7197,~b~Los Santos Prison,0,20,5,1,30,0,0


Entrancex
Entrancey
Entrancez
Exitx
Exity
Exitz
Description
World
Interior
Type
Icon
IconT
Pick
PickT

EDIT: That's the code for what am I using for /enter.

pawn Код:
for(new i = 0; i < sizeof(IntInfo); i++)
        {
            if (PlayerToPoint(3, playerid,IntInfo[i][iEntrancex], IntInfo[i][iEntrancey], IntInfo[i][iEntrancez]))
            {
                if(IntInfo[i][iType] == 5)
                {
                    if(PlayerInfo[playerid][pMember] >= 0)
                    {
                        GameTextForPlayer(playerid, "~w~type /exit~n~to get out", 5000, 3);
                        SetPlayerInterior(playerid,IntInfo[i][iInt]);
                        SetPlayerVirtualWorld(playerid,IntInfo[i][iWorld]);
                        Pause(playerid);
                        SetPlayerPos(playerid,IntInfo[i][iExitx], IntInfo[i][iExity], IntInfo[i][iExitz]);
                        IntEntered[playerid] = i;
                        return 1;
                    }
                }
                GameTextForPlayer(playerid, "~w~type /exit~n~to get out", 5000, 3);
                SetPlayerInterior(playerid,IntInfo[i][iInt]);
                SetPlayerVirtualWorld(playerid,IntInfo[i][iWorld]);
                Pause(playerid);
                SetPlayerPos(playerid,IntInfo[i][iExitx], IntInfo[i][iExity], IntInfo[i][iExitz]);
                IntEntered[playerid] = i;
                if(IntInfo[i][iType] == 1)
                {
                    SetPlayerShopName(playerid,"FDBURG");
                }
                else if(IntInfo[i][iType] == 2)
                {
                    SetPlayerShopName(playerid,"FDPIZA");
                }
                else if(IntInfo[i][iType] == 3)
                {
                    SetPlayerShopName(playerid,"FDCHICK");
                }
                else if(IntInfo[i][iType] == 4)
                {
                    SendClientMessage(playerid,COLOR_GRAD4,"Type /skin to change your clothes.");
                }
            }
        }
Reply


Messages In This Thread
Server restarting. - by marko94 - 23.01.2011, 17:32
Re: Server restarting. - by Alex_Valde - 23.01.2011, 17:47
Re: Server restarting. - by marko94 - 23.01.2011, 17:56
Re: Server restarting. - by Alex_Valde - 23.01.2011, 17:59
Re: Server restarting. - by marko94 - 23.01.2011, 18:14
Re: Server restarting. - by marko94 - 23.01.2011, 22:15
Re: Server restarting. - by Johndaonee - 23.01.2011, 22:18
Re: Server restarting. - by ricardo178 - 23.01.2011, 22:21
Re: Server restarting. - by marko94 - 24.01.2011, 10:52
Re: Server restarting. - by _Tommy - 24.01.2011, 12:35

Forum Jump:


Users browsing this thread: 2 Guest(s)