SA-MP Forums Archive
[help]Sendclientmessagetoall - 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: [help]Sendclientmessagetoall (/showthread.php?tid=265045)



[help]Sendclientmessagetoall - Horrible - 29.06.2011

Код:
CMD:kill(playerid, params[])
{
		SetPlayerHealth(playerid, 0);
		SetPlayerVirtualWorld(playerid, 0);
		SendClientMessage(playerid, -1,""#COL_RED" Kamu telah menggunakan Command /kill");
   		SendClientMessageToAll(0xDEEE20FF, "???????????");
		return 1;
	}
i want like this

when some player use command /kill the chatbox show who use that command
Example:
i use kill
then the chatbox say:
Horrible[playerid] menggunakan command /kil
^pl0x help....l


Re: [help]Sendclientmessagetoall - Laronic - 29.06.2011

pawn Код:
CMD:kill(playerid, params[])
{
    new name[24], string[56];
    GetPlayerName(playerid, name, sizeof(name));
    SetPlayerHealth(playerid, 0.0);
    SetPlayerVirtualWorld(playerid, 0);
    format(string, sizeof(string), "%s[%d] menggunakan command /kill", name, playerid);
    SendClientMessageToAll(0xFF0000FF, string);
    return 1;
}



Re: [help]Sendclientmessagetoall - Horrible - 29.06.2011

TY man.