Question on SA-MP districts/areas.. - 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: Question on SA-MP districts/areas.. (
/showthread.php?tid=497505)
Question on SA-MP districts/areas.. -
SyntaxQ - 27.02.2014
I've created a /customspawn command with a DIALOG, basically it stores their current position and the players spawn on it. I want to show in which area they are currently storing their position:
[SPAWN] You have saved your custom spawn position in <Area> (For example: Red County)..
Is there any way to do that?
Re: Question on SA-MP districts/areas.. -
MasterReturnz - 27.02.2014
Tell the server to write to a .txt slot with the player name and their saved position location.
Re: Question on SA-MP districts/areas.. -
klimgorilla - 27.02.2014
https://sampforum.blast.hk/showthread.php?tid=27598 <- you need this include
example:
pawn Код:
new String[128], zonename[28];
GetPlayer2DZone(playerid, zonename, 28);
format(String, sizeof(String),"[SPAWN] You have saved your custom spawn position in: %s.", zonename);
Re: Question on SA-MP districts/areas.. -
SyntaxQ - 27.02.2014
Quote:
Originally Posted by klimgorilla
https://sampforum.blast.hk/showthread.php?tid=27598 <- you need this include
example:
pawn Код:
new String[128], zonename[28]; GetPlayer2DZone(playerid, zonename, 28); format(String, sizeof(String),"[SPAWN] You have saved your custom spawn position in: %s.", zonename);
|
Thanks!