04.03.2010, 16:56
This would be OnPlayerConnect
But i would not recommend using this as other players just needs to know the name of a player to gain hes stats. You could tho save the players IP on register and check if its the same
Код:
new name[MAX_PLAYER_NAME],file[23]; GetPlayerName(playerid,name,sizeof(name)); format(file,sizeof(file),"%s.ini"); if(fexist(file)) { SendClientMessage(playerid,0xFFFFFF,"Welcome back! You have been automatically logged in!"); //Load the stuff return 1; } if(!fexist(file)) { SendClientMessage(playerid,0xFFFFFF,"You have not been registered! Please use /register"); return 1; }