24.03.2015, 13:12
Let me make your life easier:
Download this (check out the features as well and if you like it): https://sampforum.blast.hk/showthread.php?tid=520734
And then you could do this:
Download this (check out the features as well and if you like it): https://sampforum.blast.hk/showthread.php?tid=520734
And then you could do this:
pawn Код:
CMD:whisper(playerid, params[])
{
new string[256], message[128];
if(sscanf(params, "s[128]", message)) return SendMessage(playerid, 0xFFFF00FF, "Usage: /whisper (message).");
format(string, sizeof(string), "[WHISPER]: (%d) %s: %s.", playerid, PlayerName(playerid), message);
SendWhisperMessage(10.0, playerid, 0x00FFFFFF, string);
return 1;
}
CMD:w(playerid, params[]) return cmd_whisper(playerid, params);
stock PlayerName(playerid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
return pname;
}