/ask (question) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /ask (question) (
/showthread.php?tid=500026)
/ask (question) -
ChromeMenu - 10.03.2014
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.
Re: /ask (question) -
benjaminjones - 10.03.2014
ZCMD?
Re: /ask (question) -
SPA - 11.03.2014
Код:
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);
}
}
Re: /ask (question) -
ChromeMenu - 11.03.2014
Would this just be sent to admin levels 1 and 2?
Re: /ask (question) -
ChromeMenu - 11.03.2014
I do have ZCMD
Re: /ask (question) -
SPA - 11.03.2014
Код:
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);
}
Re: /ask (question) -
benjaminjones - 11.03.2014
Is it working?
Re: /ask (question) -
benjaminjones - 12.03.2014
I have sent you the command via PM. Please check it.