[help]Sendclientmessagetoall
#1

Код:
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
Reply
#2

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;
}
Reply
#3

TY man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)