[Scripting Help]
#1

I'm trying to create a little script, that will teleport a person back to his last position after a crash.
Quote:

#include <file.inc>
#include <a_npc>
#include <a_samp>


public OnPlayerDisconnect(playerid)
{
//Save the players location so we can spawn him there again on connect.
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);

printf("The player left when he was at %f,%f,%f.", x, y, z);

return 1;
}
Saying players last position. Now I have to move them into a file that will later be readed and the person will be spawned and the crash point. Same position... Need a way to continue that.
Reply


Messages In This Thread
[Scripting Help] - by Visualbr - 24.05.2010, 16:25
Re: [Scripting Help] - by aircombat - 24.05.2010, 16:52
Re: [Scripting Help] - by Visualbr - 24.05.2010, 17:20
Re: [Scripting Help] - by DJDhan - 24.05.2010, 17:27
Re: [Scripting Help] - by Visualbr - 24.05.2010, 18:14
Re: [Scripting Help] - by ViruZZzZ_ChiLLL - 24.05.2010, 18:15
Re: [Scripting Help] - by Visualbr - 24.05.2010, 18:33

Forum Jump:


Users browsing this thread: 3 Guest(s)