12.12.2010, 10:03
im having problems. If someone joins registered or not none of these messages appear
why?
why?
pawn Код:
public OnPlayerConnect(playerid)
{
new file[128],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(file,sizeof(file),"Cadmin/Users/%s.ini",pName);
if(!dini_Exists(file))
{
SendClientMessage(playerid,red,"||- Info: You arn't registered, /register [password] -||");
PInfo[playerid][Regged] = 0;
PInfo[playerid][Logged] = 0;
}
else if(dini_Exists(file))
{
SendClientMessage(playerid,lgreen,"||- Info: You are registered, /login [password] -||");
PInfo[playerid][Regged] = 1;
PInfo[playerid][Logged] = 0;
return true;
}
return 1;
}