[Ajuda] Virtual World adicionando no GM
#1

Aonde que bota isso daqui no meu GM para nгo bugar casa...
Код:
SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualWorld]);
Код:
SetPlayerVirtualWorld(playerid, 0);
E o comando para nгo bugar....
Код:
if(strcmp(cmd, "/entrar", true) == 0)
{
  if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
{
if(PlayerInfo[playerid][pPhousekey] == i || HouseInfo[i][hLock] == 0)
{
SetPlayerInterior(playerid, HouseInfo[i][hInt]);
SetPlayerPos(playerid, HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]);
GameTextForPlayer(playerid, "~w~bem vindo em casa", 5000, 1);
PlayerInfo[playerid][pInt] = HouseInfo[i][hInt];
PlayerInfo[playerid][pLocal] = i;
SetPlayerVirtualWorld(playerid, HouseInfo[i][hVirtualWorld]);
}
else
{
GameTextForPlayer(playerid, "~r~trancado", 5000, 1);
}
}
}
Код:
if(strcmp(cmd, "/sair", true) == 0)
{
  if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(HouseInfo); i++)
{
//printf("House :%d",i);
if (PlayerToPoint(3, playerid,HouseInfo[i][hExitx], HouseInfo[i][hExity], HouseInfo[i][hExitz]))
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
PlayerInfo[playerid][pInt] = 0;
PlayerInfo[playerid][pLocal] = 255;
SetPlayerVirtualWorld(playerid, 0);
if(HouseInfo[i][hHel] == 1)
{
new Float:tempheal;
GetPlayerHealth(playerid,tempheal);
if(tempheal < 100.0)
{
SetPlayerHealth(playerid,100.0);
}
}
}
}
            [...]
Bom eu nгo sei se prescisa botar mais algo por que eu fui na pasta do Caio Cartaxo pedindo ajuda com o Virtual World...Eu tbm presciso...

Eu queria saber como que bota e se prescisa botar mais algo como comando.....

Obrigado !
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)