SA-MP Forums Archive
help me pls - 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: help me pls (/showthread.php?tid=385506)



help me pls - t-wstriker - 16.10.2012

when im exiting /exit from lspd hq then it falling me from sky and it says i left business


Re: help me pls - Lordzy - 16.10.2012

It might be scripted like that.


Re: help me pls - t-wstriker - 16.10.2012

how can i fix it ?


Re: help me pls - ♣Frosty♣ - 16.10.2012

Quote:
Originally Posted by t-wstriker
View Post
how can i fix it ?
The Coords of your DD(Dynamic Door) exit coords isn't set correctly,set it correctly so you won't fall of from the sky.


Re: help me pls - t-wstriker - 16.10.2012

cant understand can u explain it pls


Re: help me pls - Glint - 16.10.2012

Post us the /exit command


Re: help me pls - t-wstriker - 16.10.2012

Code:
if(strcmp(cmd, "/exit", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
		    if(PlayerInfo[playerid][pLocal] != 999) //in house
		    {
				if(IsAtHouseExit(playerid))
				{
				    if(PlayerInfo[playerid][pMask] == 1) { sendername = "Stranger"; }
					format(string, sizeof(string), "* %s has left the house.", sendername);
					ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			    	SetPlayerVirtualWorld(playerid, 0);
					SetPlayerInterior(playerid,0);
					SetPlayerPos(playerid,PlayerInfo[playerid][pHouseExitX],PlayerInfo[playerid][pHouseExitY],PlayerInfo[playerid][pHouseExitZ]);
					SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pHouseExitR]-180);
					SetCameraBehindPlayer(playerid);
					PlayerInfo[playerid][pInt] = 0;
					PlayerInfo[playerid][pVirtualWorld] = 0;
					PlayerInfo[playerid][pLocal] = 999;
			     	return 1;
		        }
		    }
		    if(PlayerInfo[playerid][pInBiz] != 255) //in a biz
		    {
		    	if(PlayerInfo[playerid][pMask] == 1) { sendername = "Stranger"; }
				format(string, sizeof(string), "* %s has left the business.", sendername);
				ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
   				SetPlayerVirtualWorld(playerid, 0);
				SetPlayerInterior(playerid,0);
				SetPlayerPos(playerid,PlayerInfo[playerid][pHouseExitX],PlayerInfo[playerid][pHouseExitY],PlayerInfo[playerid][pHouseExitZ]);
				SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pHouseExitR]-180);
				SetCameraBehindPlayer(playerid);
				PlayerInfo[playerid][pInt] = 0;
				PlayerInfo[playerid][pVirtualWorld] = 0;
				PlayerInfo[playerid][pLocal] = 999;
				PlayerInfo[playerid][pInBiz] = 255;
   				return 1;
		    }



Re: help me pls - Kwarde - 17.10.2012

Well, the coordinates are defined in an array it seems. Try to find a command (or make one) that can 'teleport' the exit position of the business (in this case, the LSPD HQ).
By the way, that gamemode you sent ('least I thought it was you who'd send it, on ******** and so), I found that bug and I started to remove it


Re: help me pls - Simplyfrag - 17.10.2012

you need to change the coordinates use ****** and get in the interior also i would use dynamic systems are the best and easy to place