Exit and Interior Problem
#1

I am using AGnational Bank FS. He already added a bank and the exit location of it, I added 2 more banks called Bank2 and Bank3. When I exit either of them it brings me back to the location of the first one. And the interior of the bank is always a 24/7.
Here is the exit script part.

dcmd_exit(playerid,params[]) {
#pragma unused params
if(pBankInfo[playerid][PLAYER_INBANK] == 1) {
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1274,23,1467.2456,-1011.0726); //location of first bank(my own first bank loc)
pBankInfo[playerid][PLAYER_INBANK] = 0;
}
Reply
#2

try to make it in different virtual worlds while you are making a another entrance and exit
Reply
#3

Quote:
Originally Posted by pds2012
Посмотреть сообщение
try to make it in different virtual worlds while you are making a another entrance and exit
I forgot to mention that I am completely new to scripting in Pawno. Could you please explain that, I dont understand.
Reply
#4

Anything?
Reply
#5

When player enter the bank1
pawn Код:
SetPlayerVirtualWorld(playerid,1);
When player enter the bank2
pawn Код:
SetPlayerVirtualWorld(playerid,2);
When player enter the bank3
pawn Код:
SetPlayerVirtualWorld(playerid,3);
And for every pickup set the apropriate virtual world don't use -1 for pickups
Reply
#6

Still have no idea. Sorry guys
Reply
#7

NO.....
maybe that script /enter to bank
because it could be the same bank vitural.

Ex:
i use zcmd
pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, /*X,Y,Z*/))// on exterior {
        SetPlayerPos(playerid, /*X,Y,Z*/);// to interior
        SetPlayerVirtualWorld(playerid, 1337);//dont same the vitural world

    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, /*X,Y,Z*/))//on exterior {
        SetPlayerPos(playerid, /*X,Y,Z*/);// to interior
        SetPlayerVirtualWorld(playerid, 1338);

    }
     return 1;
}

CMD:exit(playerid,params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, /*X,Y,Z*/)) //on interior {
        SetPlayerPos(playerid, /*X,Y,Z*/);// to exterior
        SetPlayerVirtualWorld(playerid,0);

    }
    else if(IsPlayerInRangeOfPoint(playerid, 2.0, /*X,Y,Z*/))//on interior {
        SetPlayerPos(playerid, /*X,Y,Z*/); //to exterior
        SetPlayerVirtualWorld(playerid,0);

    }
     return 1;
}
i dont know too
Reply
#8

Here is the full script not mine, i did not make changes to it
http://www.mediafire.com/?3cjwg3nzjid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)