06.07.2009, 14:42
I just started this script:
What I mean, is that, when he disconnects from the server, it saves his level (pLevel) in a .txt with his name (like, Test_Test.txt contains the number 3 in the file), and when he reconnects, he types /loadmylevel and then the number that is written in the file will be his level, and the file will be erased too.
ty
Код:
if(strcmp(cmd, "/loadmylevel", true) == 0) { if(IsPlayerConnected(playerid)) { PlayerInfo[playerid][pLevel] = I DON'T KNOW HERE; } } public OnPlayerDisconnect(playerid, reason) { [SOMETHING HERE] }
ty