SA-MP Forums Archive
Logging the disconnection - 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: Logging the disconnection (/showthread.php?tid=193438)



Logging the disconnection - Face9000 - 26.11.2010

Hai,i need to log the disconnection of players,in that log i need to show how much health player has when he quitted.
It's possible?


Re: Logging the disconnection - [L3th4l] - 26.11.2010

Yeah,
pawn Код:
new File:your file, yourfile = fopen("blabla", io_append);
new Float:pHealth; GetPlayerHealth(playerid, pHealth);
format(Str, sizeof(Str), "Player: %s - Health: %f", playername, pHealth);
fwrite(yourfile, str);
Hope you get an idea, read the wiki for a full tutorial on writing using that method ^ , Im down, falling asleep ;p pce