Registry help?
#2

This would be OnPlayerConnect

Код:
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;
}
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
Reply


Messages In This Thread
Registry help? - by -Rebel Son- - 04.03.2010, 16:23
Re: Registry help? - by Desert - 04.03.2010, 16:56
Re: Registry help? - by -Rebel Son- - 04.03.2010, 17:46
Re: Registry help? - by Desert - 04.03.2010, 18:10
Re: Registry help? - by -Rebel Son- - 04.03.2010, 18:18
Re: Registry help? - by -Rebel Son- - 04.03.2010, 19:15
Re: Registry help? - by Desert - 04.03.2010, 19:19
Re: Registry help? - by -Rebel Son- - 04.03.2010, 19:26
Re: Registry help? - by -Rebel Son- - 09.03.2010, 01:51

Forum Jump:


Users browsing this thread: 1 Guest(s)