Local chat command for special
#1

Alrighty so in LS-RP it marks the administrator's names whenever they are using PMs or /b (local chat).
How they do so, I know that you need to define whenever the admin is blah blah blah, but every time that I do so It doubles the chat instead of doing it to one chat.

Quote:

CMD:b(playerid, params[])
{
new str[200];
if(sscanf(params, "s[200]", str)) return SendClientMessage(playerid, COLOR_GRAY, "/b [message]");

format(str, sizeof(str), "(( %s: %s ))", GetRoleplayName(playerid), str);
SendLocalMessage(playerid, str,Range_Normal, COLOR_LBLUE, COLOR_LBLUE);
SetPlayerChatBubble(playerid, str, COLOR_LBLUE, Range_Normal, 7000);

return 1;
}
Quote:

CMD:pm(playerid, params[])
{
new pID, pmmsg[200], str[200];
if(sscanf(params, "us[200]", pID, pmmsg)) return SendClientMessage(playerid, COLOR_GRAY, "/pm [playerid] [message]");
format(str, sizeof(str), "[PM from [%d] %s]: %s", playerid, GetRoleplayName(playerid), pmmsg);
SendSplitMessage(pID, COLOR_YELLOW, str);

format(str, sizeof(str), "[PM to [%d] %s]: %s", pID, GetRoleplayName(pID), pmmsg);
SendSplitMessage(playerid, COLOR_YELLOW, str);
return 1;
}

Dont get what I'm saying? watch this screenie: http://prntscr.com/d1io4l
Reply


Messages In This Thread
Local chat command for special - by DemME - 01.11.2016, 03:20
Re: Local chat command for special - by jbankss - 01.11.2016, 04:00
Re: Local chat command for special - by DemME - 01.11.2016, 04:03
Re: Local chat command for special - by DemME - 01.11.2016, 04:39
Re: Local chat command for special - by DemME - 01.11.2016, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)