SA-MP Forums Archive
Right seriously, this is driving me INSANE! - 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: Right seriously, this is driving me INSANE! (/showthread.php?tid=276011)



Right seriously, this is driving me INSANE! - Rabbayazza - 12.08.2011

I've been having troubles with "/exit" not working at all and no-one can fix it!
Anyone, ANYONE, please try!
Код:
COMMAND:exit(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
    {
            SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
            SetPlayerInterior(playerid, 0);
    }
    return 1;
}

COMMAND:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 2.0, 290.7193,-1618.0544,33.1547))
    {
    		SetPlayerPos(playerid, 246.2732,112.0255,1003.2188);
    		SetPlayerInterior(playerid, 10);
    }
    return 1;
}
/enter works FINE!!!!!!! /exit doesn't work at all! Whats wrong with this?!


Re: Right seriously, this is driving me INSANE! - Sensitive - 12.08.2011

Try This:

Quote:

COMMAND:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.218)
{
SetPlayerPos(playerid,290.7193, -1618.0544, 33.1547);
SetPlayerInterior(playerid, 0);
}
return 1;
}




Re: Right seriously, this is driving me INSANE! - Rabbayazza - 12.08.2011

Nothing, still not working.


Re: Right seriously, this is driving me INSANE! - =WoR=Varth - 12.08.2011

Check again your coordinate. It might be wrong.


Re: Right seriously, this is driving me INSANE! - Rabbayazza - 12.08.2011

I GOT IT TO WORK!
You see the already included FS, gl_property has an /exit command too! so just delete that and it fixed!