Help /b chat.
#1

Код:
CMD:b(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0)
	{
		SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
		return 1;
	}
	if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Perdorimi: /b [local ooc chat]");
	if(AntiAdv(playerid, params)) return 1;
	new string[128];
	if(PlayerInfo[playerid][pMask] == 1) { format(string,sizeof(string), "Stranger says: (( %s ))", params); }
	else { format(string, sizeof(string), "%s says: (( %s ))", GetPlayerNameEx(playerid), params); }
	ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
	return 1;
}
who can make this script , when a admin speak on /b chat to tell with green colour his name

please make it for me + rep
Reply
#2

if(!PlayerData[playerid][pMask])
format(string, sizeof(string), "%s %s says: (( %s ))", (PlayerData[playerid][pAdmin]) ? ("{hexcode}"), GetPlayerNameEx(playerid), params);
Reply
#3

Quote:

CMD:b(playerid, params[])
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You're not logged in.");
return 1;
}
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "Perdorimi: /b [local ooc chat]");
if(AntiAdv(playerid, params)) return 1;
new string[128];
if(PlayerInfo[playerid][pMask] == 1) { format(string,sizeof(string), "Stranger says: (( %s ))", params); }
else { format(string, sizeof(string), "%s says: (( %s ))", GetPlayerNameEx(playerid), params); }
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_F ADE4,COLOR_FADE5);
if(!PlayerData[playerid][pMask])
format(string, sizeof(string), "%s %s says: (( %s ))", (PlayerData[playerid][pAdmin]) ? ("{hexcode}"), GetPlayerNameEx(playerid), params);
return 1;
}

like this ?
Reply
#4

If you have no clue whatsoever as to how to script, using a RP gamemode to edit isn't the brightest idea. Try some basic gamemodes.

Edit: Also stop opening the same topics over and over again, you have been given an answer already.

https://sampforum.blast.hk/showthread.php?tid=600136

If you can't simply do this, either stop editing a RP gamemode because RP gamemodes arent newbie friendly OR if you still insist on editing it then at least use the PROPER section to request a script.

https://sampforum.blast.hk/showthread.php?tid=447813
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)