/exit - 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: /exit (
/showthread.php?tid=622814)
/exit -
toxicape - 27.11.2016
Okay the problem is that, when i type /exit anywhere its teleports me on the air. I know everyone gonna tell me to check the EXIT command but i check it and there are some coords so i can't fix it, i mean i will bug it more if i try
so i need ur help
Quote:
CMD:exit(playerid, params[])
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "Loading Objects.", 4000, 5);
SetPVarInt(playerid, "LoadingObjects", 1);
SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
SetPlayerPos(playerid, 319.554931, 312.155181, 999.148437);
return SendToExit(playerid);
}
|
Re: /exit -
Abagail - 27.11.2016
SetPlayerPos is likely setting the coordinates(specifically the z coordinate, 999) somewhere in the air, unless something else is being done in SendToExit.
I can't get in game right now to test, but you can /save while ingame(on any server) to get proper coordinates. Replace these coordinates with the ones you currently have, and it should work fine.
If this doesn't work, show your SendToExit function.
Re: /exit -
toxicape - 27.11.2016
Its for a Dynamic Doors, i mean its used for them /exit