22.01.2010, 10:31
It's time to realy learn pawn language.
dcmd_megaphone(playerid, params[])
{
new
string[128],
pName[MAX_PLAYER_NAME];
if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/megaphone [message]");
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, ">>Megaphone [Officer %s]: >>%s!!!", pName);
SendClientMessageToAll(COLOR, string);
return 1;
}
You can edit the rest by urself.
dcmd_megaphone(playerid, params[])
{
new
string[128],
pName[MAX_PLAYER_NAME];
if(!strlen(params)) return SendClientMessage(playerid, COLOR, "/megaphone [message]");
GetPlayerName(playerid, pName, sizeof pName);
format(string, sizeof string, ">>Megaphone [Officer %s]: >>%s!!!", pName);
SendClientMessageToAll(COLOR, string);
return 1;
}
You can edit the rest by urself.