i'm using same place but diferent VW and i need to make /exit like in diferent places. So if player is in VW 2 and His position is 2305.688964,-16.088100,26.749599 then he will exit at ...
Код:
if(strcmp(cmd, "/exit", true) == 0)
{
if(GetPlayerVirtualWorld(playerid) != 2)
{
if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
{
GameTextForPlayer(playerid, "~w~Sveicinati SEB Banka", 5000, 1);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,981.6595,-1161.3964,25.0962);
}
}
if(GetPlayerVirtualWorld(playerid) != 3)
{
if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
{
GameTextForPlayer(playerid, "~w~Sveicinati SwedBank", 5000, 1);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1112.0267,-1370.2819,13.9844);
}
}
if(GetPlayerVirtualWorld(playerid) != 4)
{
if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
{
GameTextForPlayer(playerid, "~w~Sveicinati Parex Banka", 5000, 1);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1270.8789,-1667.8645,19.7344);
}
}
if(GetPlayerVirtualWorld(playerid) != 5)
{
if (PlayerToPoint(3.0, playerid,2305.688964,-16.088100,26.749599))
{
GameTextForPlayer(playerid, "~w~Sveicinati GE Money Banka", 5000, 1);
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,1720.2047,-1740.9485,13.5469);
}
}