Never met before BUG ! Need your help to fix! - 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)
+--- Thread: Never met before BUG ! Need your help to fix! (
/showthread.php?tid=361952)
Never met before BUG ! Need your help to fix! -
Peter Alex - 22.07.2012
Basically what I've tried to do is map an interior inside a building. However, if I enter inside the interior, the collision forces of that building would force me out, so I had to remove it everytime I /enter the building and add it back everytime I /exit the building. The problem is, once I /exit the building, it returns at it's original place, but it's TRANSPARENT. How do I fix this?
It's not because of my graphics card or anything, I have the best streamer available.
Here's the code:
Код:
COMMAND:enter(playerid, params[])
{
if (IsPlayerInRangeOfPoint(playerid, 1.0, 172.66, -152.10, 1.72)) // checks if in range of the /enter point
{
RemoveBuildingForPlayer(playerid, 12923, 158.3594, -176.3047, 5.5703, 0.25);
RemoveBuildingForPlayer(playerid, 13200, 158.3594, -176.3047, 5.5703, 0.25);
SetPlayerPos(playerid, 170.75, -153.94, 1.81); // Sets their new position
}
return 1;
}
COMMAND:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 170.85, -153.85, 1.48)) // Checks if near the exit door
{
SetPlayerPos(playerid, 172.24, -152.26, 1.81);
RemoveObjectVar2 = CreateObject(12923, 158.3594, -176.3047, 5.5703);
}
return 1;
}
And here's the problem:
Re: Never met before BUG ! Need your help to fix! -
seanny - 22.07.2012
Try adding the draw distance to it.
Re: Never met before BUG ! Need your help to fix! -
Peter Alex - 22.07.2012
Shit, works - Thanks a lot