24.05.2018, 16:07
maybe this could help you
maybe work rep me if it works ok
PHP код:
CMD:getppass(playerid, params[])
{
new id,str[256], name[MAX_PLAYER_NAME];
if (adlvl[playerid] < 7) return 0;
if(sscanf(params,"i",id)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getppass [playerid]");
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: Inactive playerid.");
GetPlayerName(id, name ,sizeof(name));
format(str, sizeof(str), "%s's Password Is: %s", name, dini_Get(AddDirFile(dir_datafiles, FILE_REC), name));
SendClientMessage(playerid, COLOR_RED, str);
return 1;
}