SA-MP Forums Archive
Virtualworld & Houses. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Virtualworld & Houses. (/showthread.php?tid=140437)



Virtualworld & Houses. - Nakash - 09.04.2010

Hello, I have this command (from LARP mod):

pawn Код:
if(strcmp(cmd, "/exit", true) == 0)
            {
              if(IsPlayerConnected(playerid))
                {
                    for(new i = 0; i < sizeof(HouseInfo); 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);
                                TogglePlayerControllable(playerid, 0);

                              if(HouseEntered[playerid] == i)
                              {
                                        SetPlayerInterior(playerid,0);
                                        SetPlayerPos(playerid,HouseInfo[i][hEntrancex],HouseInfo[i][hEntrancey],HouseInfo[i][hEntrancez]);
                                        PlayerInfo[playerid][pInt] = 0;
                                        PlayerInfo[playerid][pLocal] = 255;
                                        SetCameraBehindPlayer(playerid);
                                        SetPlayerVirtualWorld(playerid,0);
                                        HouseEntered[playerid] = 255;
                                        if(HouseInfo[i][hHel] == 1)
                                        {
                                            new Float:tempheal;
                                            GetPlayerHealth(playerid,tempheal);
                                            if(tempheal < 100.0)
                                            {
                                                SetPlayerHealth(playerid,100.0);
                                            }
                                        }
                                    }
                                    return 1;
                                }
                            }
                        }
                }
Now, that problem is that when I type /exit sometimes it teleports me to another house.
I don't see any GetPlayerVirtualWorld function here and I don't know what the problem is.
Thanks in advance.




Re: Virtualworld & Houses. - Grim_ - 09.04.2010

Ask in LARP topic.


Re: Virtualworld & Houses. - Nakash - 09.04.2010

Quote:
Originally Posted by _Xerxes_
Ask in LARP topic.
Stop with this spam already, I'M TRYING TO SOLVE THIS PROBLEM, THIS HAS NOTHING TO DO WITH THE LARP TOPIC! I CHANGED THE COMMAND.


Re: Virtualworld & Houses. - Grim_ - 09.04.2010

Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by _Xerxes_
Ask in LARP topic.
Stop with this spam already, I'M TRYING TO SOLVE THIS PROBLEM, THIS HAS NOTHING TO DO WITH THE LARP TOPIC! I CHANGED THE COMMAND.
1. That is not spam, learn what spam is.
2. Do not use CAPS, I even believe that is one of the rules on this forums.
3. Do not start yelling at me or anyone else on this forums, because most likely their trying to help you and when you start acting like that, they won't anymore.
4. You are the one that spammed.

So, good day sir.


Re: Virtualworld & Houses. - Nakash - 09.04.2010

Quote:
Originally Posted by _Xerxes_
Quote:
Originally Posted by Kartowka
Quote:
Originally Posted by _Xerxes_
Ask in LARP topic.
Stop with this spam already, I'M TRYING TO SOLVE THIS PROBLEM, THIS HAS NOTHING TO DO WITH THE LARP TOPIC! I CHANGED THE COMMAND.
1. That is not spam, learn what spam is.
2. Do not use CAPS, I even believe that is one of the rules on this forums.
3. Do not start yelling at me or anyone else on this forums, because most likely their trying to help you and when you start acting like that, they won't anymore.
4. You are the one that spammed.

So, good day sir.
1. I know what spam is, believe me.
2. I don't think that is one of the forum's rules.
3. I'm not yelling at you or anyone else, I asked for help and you didn't want to help.
4. I'm not the one that spammed.
5. I was angry, sorry ;p


Re: Virtualworld & Houses. - woot - 09.04.2010

Double virtualworlds with the same interior.