24.05.2010, 16:25
I'm trying to create a little script, that will teleport a person back to his last position after a crash.
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.
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; } |