how to use dini save online player in to file every time player enter or out
#1

as said. i wanna save onplayers to op\onlineplayers.txt . how can i do that, every time when player connected or disconnected,
Reply
#2

first off, no one understood what u wrote just there.
i think what u mean to say is u want to make a log, a list of people as and when they come online / go offline.
well, thats pretty pointless, but if it helps u in any way, heres what u do....
NOTE: this is not DINI in any way, so idk why u wrote that in the title

under onplayerconnect
format a string in this manner
"%s(playername) %d(player ip) has logged in", playername, playerip
[use the log function to save it to onlineplayers.log]

and under onplayerdisconnect
"%s %d has logged off", playername, playerip
[use the log function to save it to offlineplayers.log]

NOTE: you need to define playername, playerip etc using getplayername, getplayerip functions etc.
if you have no idea whats going on, check out www.wiki.sa-mp.com 's functions list.
cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)