Logging the disconnection
#1

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?
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)