[Ajuda] Interiores
#2

Mano, se for o que eu entendi eu fiz de uma forma que eu acho atй mais fбcil... exemplo:
ao entrar no interior em LS vc seta virtualworld 1 em SF 2 em LV 3,
se for o mesmo interior o que vc pode fazer й getar o mundo virtual, se for 1 ele retorna ao local em ls, se for 2 sf e se for 3 em lv..

Exemplo:
Entrando:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, -1751.1934,964.0541,24.8906))
{
SetPlayerPos(playerid, 388.7208,173.4743,1008.3828);
SetPlayerVirtualWorld(playerid, 2);
SetPlayerInterior(playerid, 3);
}
Saindo:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 2.0, 388.7208,173.4743,1008.3828))
{
new mundo = GetPlayerVirtualWorld(playerid);
if(mundo == 2)
{
SetPlayerPos(playerid, -1751.1934,964.0541,24.8906);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
}
Reply


Messages In This Thread
Interiores - by Azah - 21.02.2017, 14:46
Re: Interiores - by johntrybescripter - 21.02.2017, 16:10
Re: Interiores - by Azah - 22.02.2017, 14:21
Re: Interiores - by johntrybescripter - 22.02.2017, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)