SA-MP Forums Archive
/exit not work - 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: /exit not work (/showthread.php?tid=251210)



/exit not work - Aizen - 26.04.2011

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp(cmdtext,"/enter",true) == 0)
		{
	    	if(IsPlayerInRangeOfPoint(playerid,8,2045.5084228516,-1908.2283935547,12.99134349823))
			{
			    SetPlayerInterior(playerid,2);
			    SetPlayerPos(playerid,2451.77,-1699.80,1013.51);
				
				
				return 1;
			}
		}
    if (strcmp(cmdtext,"/exit",true) == 0)
		{
	    	if(IsPlayerInRangeOfPoint(playerid,8,2451.77,-1699.80,1013.51))
			{
                            SetPlayerInterior(playerid,0);
			    SetPlayerPos(playerid,2045.5084228516,-1908.2283935547,12.99134349823);
				return 1;
			}
		}



Re: /exit not work - diesulke - 26.04.2011

pawn Код:
if (strcmp(cmdtext,"/exit",true) == 0)
        {
            if(IsPlayerInRangeOfPoint(playerid,8,2451.77,-1699.80,1013.51))
            {
                SetPlayerPos(playerid,2045.5084228516,-1908.2283935547,12.99134349823);
                return 1;
            }
        }