GetPlayerVirtualWorld -
NuTShoT - 27.07.2013
Olб, boa tarde!
O que estб acontecendo ?! Ele pega o player mesmo se estiver em outro VirtualWorld...
pawn Код:
else if (PlayerToPoint(2.0, playerid,832.6270,7.2666,1004.1797))
{
if(GetPlayerVirtualWorld(playerid) == 0)
{
SetPlayerPos(playerid, 1631.8547,-1172.5637,24.084);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
}
Vlw!
Re: GetPlayerVirtualWorld -
FenixBorn - 27.07.2013
Mas o que voce quer fazer?
Re: GetPlayerVirtualWorld -
Coe1 - 27.07.2013
Quote:
Originally Posted by FenixBorn
Mas o que voce quer fazer?
|
pawn Код:
SetPlayerPos(playerid, 1631.8547,-1172.5637,24.084);
Re: GetPlayerVirtualWorld -
NuTShoT - 27.07.2013
Olб, boa noite!
Eu quero setar o player para outra posiзгo como o Coe1 disse porйm se o player estб no VirtualWorld 1 ele tambйm funciona. Queria que funcionasse apenas se o player estivesse no VirtualWorld 0
Vlw!
Re: GetPlayerVirtualWorld -
zRan - 28.07.2013
Tem certeza que vocк quer pegar o virtualworld da variбvel playerid? Digo, vocк nгo confundiu nenhuma var?
Re: GetPlayerVirtualWorld -
NuTShoT - 28.07.2013
Olб, bom dia!
Seria do playerid sim...
Dele mesmo...
Vlw!
Re: GetPlayerVirtualWorld -
Don_Speed - 28.07.2013
pawn Код:
if(GetPlayerVirtualWorld(playerid) < 1)
{
SetPlayerPos(playerid, 1631.8547,-1172.5637,24.084);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
Re: GetPlayerVirtualWorld -
NuTShoT - 28.07.2013
Olб, bom dia!
Posso fazer assim
pawn Код:
if(GetPlayerVirtualWorld(playerid) != 1)
{
SetPlayerPos(playerid, 1631.8547,-1172.5637,24.084);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
}
Vlw!
Re: GetPlayerVirtualWorld -
Don_Speed - 28.07.2013
Quote:
Originally Posted by NuTShoT
Olб, bom dia!
Posso fazer assim
pawn Код:
if(GetPlayerVirtualWorld(playerid) != 1) { SetPlayerPos(playerid, 1631.8547,-1172.5637,24.084); SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid,0); SetPlayerFacingAngle(playerid, 0); PlayerInfo[playerid][pInt] = 0; PlayerInfo[playerid][pLocal] = 255; }
Vlw! 
|
Sim , mas pegara 2,3,4,5,6,7 ...
Re: GetPlayerVirtualWorld -
NuTShoT - 28.07.2013
Pode. pegar. Obrigado! VOu testar ja edito