Deci vreau sa fac mai multe 24/7 cu acelasi interior.. am facut cu VW dar tot nu merge, am facut mai multe feluri cu vw dar nici cum. Problema e ca cand dau exit la un 24/7 facut de mine ma da la celallat... nu la ala care trebuie... Asa am facut: //-------------------------------------------ENTER/EXIT --------------------
if(strcmp(cmdtext, "/enter", true) == 0)//24/7 LV ---1---
{
if (PlayerToPoint(5, playerid, 2436.9211,1734.6388,10.8203) || SetPlayerVirtualWorld(playerid) == 11)
{
//SetPlayerVirtualWorld(playerid, 11);
//PlayerInfo[playerid][pVirWorld] = 11;
SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
SetPlayerInterior(playerid,17);
format(string, sizeof(string), "~w~24/7 ~w~Shop");
GameTextForPlayer(playerid, string, 1000, 1);
return 1;
}
}
if(strcmp(cmdtext, "/exit", true) == 0)//24/7 LV ---1---
{
if(GetPlayerVirtualWorld(playerid) == 11)
{
if (PlayerToPoint(5, playerid, -25.884498,-185.868988,1003.546875))
{
SetPlayerPos(playerid, 2436.9211,1734.6388,10.8203);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVirWorld] = 0;
format(string, sizeof(string), "~w~Las Venturas");
GameTextForPlayer(playerid, string, 1000, 1);
return 1;
}
}
}
//----------------------------- 24/7 ---2-------------------------------------------------
if(strcmp(cmdtext, "/enter", true) == 0)//24/7 LV ---1---
{
if (PlayerToPoint(5, playerid, 2188.0947,2469.6829,11.2422) || GetPlayerVirtualWorld(playerid) == 12)
{
// SetPlayerVirtualWorld(playerid, 12);
//PlayerInfo[playerid][pVirWorld] = 12;
SetPlayerPos(playerid,-25.884498,-185.868988,1003.546875);
SetPlayerInterior(playerid,17);
format(string, sizeof(string), "~w~24/7 ~w~Shop");
GameTextForPlayer(playerid, string, 1000, 1);
return 1;
}
}
if(strcmp(cmdtext, "/exit", true) == 0)//24/7 LV ---1---
{
if(GetPlayerVirtualWorld(playerid) == 12)
{
if (PlayerToPoint(5, playerid, -25.884498,-185.868988,1003.546875))
{
SetPlayerPos(playerid, 2188.0947,2469.6829,11.2422);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVirWorld] = 0;
format(string, sizeof(string), "~w~Las Venturas");
GameTextForPlayer(playerid, string, 1000, 1);
return 1;
}
}
} Va rog ma poate ajuta cineva?:|