23.04.2016, 18:06
Quote:
Код:
case DIALOG_LOGIN: { new pwhash[129]; WP_Hash(pwhash, sizeof(pwhash), inputtext); if (!response) return PKick(playerid); if(response) { if(!strcmp(pwhash, PlayerInfo[playerid][pKey])) { INI_ParseFile(UserPath(playerid), "loadUserData", .bExtra = true, .extra = playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); SetPlayerScore(playerid, PlayerInfo[playerid][pExp]); } } else { SendClientMessage(playerid, -1, "{FF0000}Your password is incorrect. Please, talk to an administrator regarding this."); PKick(playerid); } return 1; } |