26.02.2013, 04:05
https://sampwiki.blast.hk/wiki/SendClientMessageToAll
If you have zcmd
Else
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/msgall", true) == 0) { // Send a message to everyone. SendClientMessageToAll(0xDEEE20FF, "Hello."); return 1; } return 0; } |
pawn Код:
CMD:am(playerid, params[]
{
new string[128];
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /am [message]");
format(string, sizeof(string), "%s", params);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
return 1;
}
pawn Код:
if (strcmp("/adminmessage", cmdtext, true) == 0 || strcmp(cmdtext,"/am",true)==0)
{
new string[128];
format(string, sizeof(string), "%s", params);
SendClientMessageToAll(COLOR_LIGHTBLUE, string);
return 1;
}