Is it possible to combine two enums?
#4

I'll explain it with dini as it is easy af.

Код:
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;
}
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

Код:
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]
}
Or something
Reply


Messages In This Thread
Is it possible to combine two enums? - by Saddin - 04.03.2017, 17:28
Re: Is it possible to combine two enums? - by Toroi - 04.03.2017, 18:12
Re: Is it possible to combine two enums? - by Saddin - 04.03.2017, 18:17
Re: Is it possible to combine two enums? - by Toroi - 04.03.2017, 18:52
Re: Is it possible to combine two enums? - by Saddin - 04.03.2017, 19:30
Re: Is it possible to combine two enums? - by Saddin - 05.03.2017, 18:03
Re: Is it possible to combine two enums? - by iLearner - 05.03.2017, 19:58
Re: Is it possible to combine two enums? - by Saddin - 12.03.2017, 19:49
Re: Is it possible to combine two enums? - by Saddin - 24.03.2017, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)