11.10.2010, 22:45
Tipo eu coloquei uma outra prefeitura em sf tem 2 uma em ls e um em sf so que tipo n sei mecher cpm VW ainda e queria saber se ta certo aki.
Tipo quando entra na de sf sai de ls e quando entra na de ls sai na de ls msm
pawn Код:
else if (IsPlayerInRangeOfPoint(playerid, 1, 1481.0206,-1771.1138,18.7958 ))
{
//pref de ls entrada
SetPlayerPos(playerid, 386.2978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~p~Prefeitura",5000,1);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid, 2);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
}
else if (IsPlayerInRangeOfPoint(playerid, 1, 390.0630,173.5741,1008.3828 ))
{
//pref de ls saida
if(GetPlayerVirtualWorld(playerid) == 2)
{
SetPlayerPos(playerid, 1481.0206,-1769.5138,18.7958);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
}
}
else if (IsPlayerInRangeOfPoint(playerid, 1, -2764.6467,375.5862,6.3418 ))
{
//pref de sf entrada
SetPlayerPos(playerid, 386.2978,173.8582,1008.3828);
GameTextForPlayer(playerid, "~p~Prefeitura",5000,1);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid, 3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 3;
}
else if (IsPlayerInRangeOfPoint(playerid, 1, 390.0630,173.5741,1008.3828 ))
{
//pref de sf saida
if(GetPlayerVirtualWorld(playerid) == 3)
{
SetPlayerPos(playerid, -2758.0742,376.3429,4.3359);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
}
}