Is it possible? - 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: Is it possible? (
/showthread.php?tid=88326)
Is it possible? -
pierhs - 25.07.2009
Is it possible to add a position saving function in gf gamemode?If yes please give me the code
Re: Is it possible? -
HuRRiCaNe - 25.07.2009
it is automatic in samp , just do /save [something that reminds you what you saved]
Re: Is it possible? -
NeRoSiS - 25.07.2009
Quote:
Originally Posted by BiG_Sm0k3
it is automatic in samp , just do /save [something that reminds you what you saved]
|
Theres that, but if you mean saving a position for a player during his session then resetting him to it within a single position then create a float for X Y Z then create a command to write the players position to the floats using GetPlayerPos, for example.
Код:
new Float:x;
new Float:y;
new Float:z;
if(strcmp, "/savepos", cmdtext)
{
GetPlayerPos(playerid, x, y, z);
return 1;
}
if(strcmp, "/goback", cmdtext)
{
SetPlayerPos(playerid, x, y, z);
return 1;
}
Thats not exact, but in theory it should work, haven't scripted in a while and felt liek I would help. If a player uses /savepos he can then go back there by using /goback.
Wazza
Re: Is it possible? -
pierhs - 26.07.2009
I want the player to spawn to the same place after crash or logout