SA-MP Forums Archive
[HELP] Error with businesses in my edited LARP gamemode - 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: [HELP] Error with businesses in my edited LARP gamemode (/showthread.php?tid=143753)



[HELP] Error with businesses in my edited LARP gamemode - LTomi - 24.04.2010

Hi!
I'm here again with a new problem regarding my gamemode's businesses. I started to edit the LARP mode for my roleplay server and now I'm working on the businesses. I deleted all businesses with interiors and made three new, Cluckin' Bell businesses with the same interiors and the same /exit places. The problem is that if you write /exit in the interior of Willowfield's Cluckin' Bell, the game puts you to the exit of an other Cluckin' Bell in East Los Santos, and it is the same if you want to exit from the Cluckin' Bell in Market. I tried many things but I couldn't make it work properly, so I would like to ask you for some help, guys. Thanks!

The business part of my /exit command:
pawn Код:
for(new i = 0; i < sizeof(BizzInfo); i++)
            {
                   if (PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
                   {
                         DisablePlayerCheckpoint(playerid);
                         SetPlayerFacingAngle(playerid, BizzInfo[i][bAngleKi]);
                         SetPlayerInterior(playerid, 0);
                         SetPlayerVirtualWorld(playerid, 0);
                         PlayerInfo[playerid][pInt] = 0;
                         InAFoodPlace[playerid] = 0;
                         PlayerInfo[playerid][pLocal] = 255;
                         SetPlayerPos(playerid,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ]);
                         return 1;
                   }
            }
My biz.cfg file:
Код:
0|The State|~y~Cluckin' Bell - East Los Santos|No-one|2420.234375|-1508.995361|24.000000|364.971710|-11.026300|1001.851623|5|5000000|0|0|0|9|496|500|100|0|270|360
0|The State|~y~Cluckin' Bell - Willowfield|No-one|2397.771972|-1898.604614|13.546895|364.971710|-11.026300|1001.851623|5|5000000|0|0|0|9|483|500|100|1|0|360
0|The State|~y~Cluckin' Bell - Market|No-one|928.503112|-1352.824340|13.343791|364.971710|-11.026300|1001.851623|5|5000000|0|0|0|9|494|500|100|2|90|360



Re: [HELP] Error with businesses in my edited LARP gamemode - LTomi - 24.04.2010

Please help!


Re: [HELP] Error with businesses in my edited LARP gamemode - Lilcuete - 24.04.2010

360 is there virtual world
change it to like one of the clukin bell bizzes to 0 and the other clukin bell biz to 1 and the other to 2


Re: [HELP] Error with businesses in my edited LARP gamemode - LTomi - 24.04.2010

360 is the player's facing angle when he/she goes out from the business. The vitrual worlds are 0, 1, and 2.


Re: [HELP] Error with businesses in my edited LARP gamemode - LTomi - 25.04.2010

Every idea is welcome, please help me.


Re: [HELP] Error with businesses in my edited LARP gamemode - Las Venturas CNR - 25.04.2010

Post in the LARP topic, the owner might reply or someone else might reply who may know.