SA-MP Forums Archive
how to send message to admin with command - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to send message to admin with command (/showthread.php?tid=157959)



how to send message to admin with command - OmarEco - 08.07.2010

i do that
Код:
	public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext,"/want",true))
        {
       SendClientMessage(playerid,0xE100E1FF,"|Your Order Send to admins|");
       format(string, sizeof(string), "%s\"(id: %d) Want to be an admin",name,playerid);
       IsPlayerAdmin(0x008040FF,string);print(string);

		}
	return 1;
        }
but not tested please i try it now help me any one join


Re: how to send message to admin with command - Niixie - 08.07.2010

First of all, read the wiki tutorial ...
Second of all, what is this for?
pawn Код:
IsPlayerAdmin(0x008040FF,string);print(string);
This is how you want it
http://pastebin.com/0HcfDQyZ
Untested, but should work