SA-MP Forums Archive
Command /asay [REP+] - 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: Command /asay [REP+] (/showthread.php?tid=327797)



Command /asay [REP+] - [FoR]EveR - 22.03.2012

Please create me agein one command for /asay but not for /asay now for /sayme (is to /asay but for work) Colour to pink ! For Admin level admin ( all admins)


Re: Command /asay [REP+] - T0pAz - 22.03.2012

You can do it by looping through all of the connected players and checking if that player is an admin or not, if so then send him the message.


Re: Command /asay [REP+] - Spooky - 22.03.2012

pawn Код:
CMD:asay(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(!isnull(params))
{
new string[128];
format(string, sizeof(string),"Admin says: %s", params);
SendClientMessageToAll(-1, string);
}
else SendClientMessage(playerid, -1,"USAGE: /asay [message]");
}
else SendClientMessage(playerid, -1,"You must be admin.");
return 1;
}
Is this what you want?


AW: Command /asay [REP+] - Tigerkiller - 22.03.2012

why you dont learn pawno ? -,-


Re: Command /asay [REP+] - [FoR]EveR - 22.03.2012

dont work


Re: Command /asay [REP+] - Twisted_Insane - 22.03.2012

If you can't even script such a simple command, then you have NOTHING lost in this forum! Bye!