SA-MP Forums Archive
have any script like this ? - 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: have any script like this ? (/showthread.php?tid=589906)



have any script like this ? - Rafaeloo - 23.09.2015

when any admin turn on /aduty to tell a server message lioke this

an admin now is aduty for all /reprt like this ? fs


AW: have any script like this ? - Kaliber - 23.09.2015

It is just one function:

PHP код:
//In your onduty command
SendClientMessageToAll(-1,"an admin now is aduty for all /report"); 



Re: have any script like this ? - Rafaeloo - 23.09.2015

filter script or to add anywehre in gamemode ?

#you are a super helper bro tjanks a lot


AW: have any script like this ? - Kaliber - 23.09.2015

Yes you should add this in the GameMode:

PHP код:
//For example your command can look like this:
//Btw: IsPlayerAdmin checks Rcon-Admin :) u can change it
CMD:aduty(playerid,params[])
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"You're not an admin!");
    return 
SendClientMessageToAll(-1,"an admin now is aduty for all /report"); 




Re: have any script like this ? - Rafaeloo - 23.09.2015

replace or add anywehere ?


AW: have any script like this ? - Kaliber - 23.09.2015

Just add

BUT...if you have already an /aduty command...then just add this line:

PHP код:
SendClientMessageToAll(-1,"an admin now is aduty for all /report"); 



Re: have any script like this ? - Rafaeloo - 23.09.2015

thanks a lot