12.11.2010, 08:40
pawn Код:
public OnPlayerConnect(playerid)
{
new name[25], tmp[40];
GetPlayerName(playerid, name, 25);
format(tmp, 40, "/Users/%s.ini", name);
if(fexist(tmp))
{
SendClientMessage(playerid, COLOR_GREEN, "hot damn sexy! You are registered! type /login [pass]!!");
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "OMGWTFBBQ You arent registered! type /register to save your stats!");
logged[playerid] = 0;
}
return 1;
}