04.03.2017, 18:52
I'll explain it with dini as it is easy af.
There may be mistakes, but you should get the idea from it.
You have the player's name stored in 'org5_member6'. Use it to get the player's file.
If the player is online, you can loop through players to compare the names, and get the info from him
Or something
Код:
GetOrg5Member6InfoForHaxPurposes() { new userfail[128],isheadmin; format(userfail,sizeof userfail,"/users/%s.ini",org5_member6); isheadmin = dini_Get(userfail, "AdminLevel"); // or however you've named it in your database SendClientMessageToAll(-1,"%s is admin level %d!",org5_member6,isheadmin); return 1; }
You have the player's name stored in 'org5_member6'. Use it to get the player's file.
If the player is online, you can loop through players to compare the names, and get the info from him
Код:
new playname[24]; for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++) { GetPlayerName(i,playname,sizeof playname); if(strcmp(org5_member6,playname)) continue; return PlayerInfo[i][Admin] }