/ask (question)
#1

Can someone make me a command that when you do /ask (Question) it will send it to only level 1 and 2 admin ranks? I will +rep whoever can give me a working command. It would be much appreciated, thank you.
Reply
#2

ZCMD?
Reply
#3

Код:
CMD:ask(playerid,params[])
{
       new string[256]
        if(sscanf(params, "s[128]",string)) return SendClientMessage(playerid,yellow,"USAGE: /ask <text>");
		format(Jstring,sizeof(string),"{FF0000}[QUESTION] %s(%d):{00FFFF} %s",GetName(playerid),playerid,string);
		return SendClientMessageToAll(-1,string);
	}
}
Reply
#4

Would this just be sent to admin levels 1 and 2?
Reply
#5

I do have ZCMD
Reply
#6

Код:
CMD:ask(playerid,params[])
{
       new string[256]
        if(sscanf(params, "s[128]",string)) return SendClientMessage(playerid,yellow,"USAGE: /ask <text>");
		format(Jstring,sizeof(string),"{FF0000}[QUESTION] %s(%d):{00FFFF} %s",GetName(playerid),playerid,string);
		return SendClientMessageToAll(-1,string);
		foreach(Player, i) if(pInfo[i][pLevel] >= 1) SendClientMessage(i,Admchat,string);
}
Reply
#7

Is it working?
Reply
#8

I have sent you the command via PM. Please check it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)