Jump to content
  • 0

detalii comenzi


shaun

Question

pe serverul meu daca esti mai mare de level 1 cand cineva foloseste o comanda acel admin o poate vedea,level maxim e 10

de ex

Gheorghe da /god

Adminul vede: Gheorghe a folosit comanda god

Cum fac ca doar cei de level 10 sa vada?

u78ch.jpg

CHECK MY CHANNEL!

http://www.youtube.com/user/amysoica

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Modifici functia SendCommandToAdmins.

Asa e originala:

stock SendCommandToAdmins(playerid,command[])
{
	if(ServerInfo[AdminCmdMsg] == 0) return 1;

        new string[MAX_PLAYER_NAME];
	GetPlayerName(playerid,string,sizeof(string));
	format(string,sizeof(string),"(ADM) '%s' (Level: %d) | Command: %s",string,AccInfo[playerid][Level],command);
	return MessageToAdmins(blue,string);
}
trebuie sa fie asa ca sa apara doar la cei de nivel 10:
stock SendCommandToAdmins(playerid,command[])
{
	if(ServerInfo[AdminCmdMsg] == 0) return 1;
     
        new string[MAX_PLAYER_NAME];
	GetPlayerName(playerid,string,sizeof(string));
	format(string,sizeof(string),"(ADM) '%s' (Level: %d) | Command: %s",string,AccInfo[playerid][Level],command);
	for(new i = 0; i < MAX_PLAYERS; i++){ if(IsPlayerConnected(i) == 1) if(AccInfo[i][Level] == 10) SendClientMessage(i, blue, string); }
	return 1;
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.