pawn Код:
YCMD:login(playerid, params[], help)
{
new pFile[100], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(pFile, sizeof(pFile), "Accounts/%s.ini", pName);
new string[256],string2[256];
format(string,sizeof(string),"%s",dini_Get(pFile,"Password"));
format(string2,sizeof(string),"%s",params);
if(!dini_Exists(pFile)) return SendClientMessage(playerid,0x00FF00AA,"You are not registered! Please /register");
if(strcmp(string,string2) != 0) return SendClientMessage(playerid,0x00FF00AA,"wrong!");
if(strcmp(string,string2) == 0)
{
SendClientMessage(playerid,0x00FF00AA,"WORKS YEAAAAAAA");
}
return 1;
}