[FilterScript] TFAdmin 1.0
#11

Quote:
Originally Posted by -Sam_hero-
Посмотреть сообщение
I've tested it, well i can't promote myself from Rcon or Scripftiles > TFAdmin > Accounts etc...
You will have to add
Код:
	if(AccInfo[playerid][LoggedIn] == 1)
	{
		if(AccInfo[playerid][Level] >= 6 || IsPlayerAdmin(playerid))
Good Idea
Thx to all

Guys in the command smute there are a problem.
Insert info[id][mute] = 1;
The command is:
Код:
CMD:mute(playerid,params[]){
    SendCMDSToAdmin(playerid,"Mute");
	if(info[playerid][livello] >= comandi[mute]){
		if(server[leanguage] == 0){
			if(sscanf(params,"u",id))return SendClientMessage(playerid,COLORE_ROSSO,"USA:/Mute ID");
			if(!IsPlayerConnected(id))return SendClientMessage(playerid,COLORE_ROSSO,"Player non connesso");
			if(info[id][mute] == 1)return SendClientMessage(playerid,COLORE_ROSSO,"Player mutato!");
			format(stringa,3000,"[AdminCMD]%s ha mutato %s",GetPlayerNameEx(playerid),GetPlayerNameEx(id));
		} else if(server[leanguage] == 1){
			if(sscanf(params,"uu",id,other))return SendClientMessage(playerid,COLORE_ROSSO,"USE:/Mute ID MINUTE");
			if(!IsPlayerConnected(id))return SendClientMessage(playerid,COLORE_ROSSO,"Player not connect");
			if(info[id][mute] == 1)return SendClientMessage(playerid,COLORE_ROSSO,"Player muted!");
			format(stringa,3000,"[AdminCMD]%s has muted %s",GetPlayerNameEx(playerid),GetPlayerNameEx(id));
		}
		SendClientMessageToAll(COLORE_GIALLO,stringa);
		info[id][mute] = 1;
	} else {
		SendLevelErrorCMDS(comandi[mute],playerid);
	}
	return 1;
}
Reply


Messages In This Thread
TFAdmin 1.0 - by [CwS]TonyFortebracci - 17.10.2012, 10:58
Re: TFAdmin 1.0 - by BlueFire_ - 17.10.2012, 11:06
Re: TFAdmin 1.0 - by [CwS]TonyFortebracci - 17.10.2012, 12:30
Re: TFAdmin 1.0 - by Edvin - 17.10.2012, 12:42
Re: TFAdmin 1.0 - by [CwS]TonyFortebracci - 17.10.2012, 12:52
Re: TFAdmin 1.0 - by Zh0ro` - 17.10.2012, 19:27
Re: TFAdmin 1.0 - by Skillet` - 17.10.2012, 19:33
Re: TFAdmin 1.0 - by -Sam_hero- - 17.10.2012, 21:32
Re: TFAdmin 1.0 - by XProtocol - 18.10.2012, 10:30
Re: TFAdmin 1.0 - by pes2012maniac - 18.10.2012, 11:07
Re: TFAdmin 1.0 - by [CwS]TonyFortebracci - 18.10.2012, 15:25
Re: TFAdmin 1.0 - by Hustlah - 19.10.2012, 05:38
Re: TFAdmin 1.0 - by [CwS]TonyFortebracci - 19.10.2012, 11:00

Forum Jump:


Users browsing this thread: 4 Guest(s)