OnPlayerText help
#1

Hi,

I've attempted to create it so that before an administrator speaks it comes up with a tag: "[ADMIN]". However, the name of the player appears before it making it look strange. This is my script:

Код:
public OnPlayerText(playerid, text[])
{
	if(PlayerInfo[playerid][pAdmin] >= 1)
	{
	    new Text[144], pName[MAX_PLAYER_NAME];
	    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
	    format(Text, sizeof(Text), "{F81414}[{00CED1}ADMIN{F81414}]{FFFFFF} %s (%d): %s", pName, playerid, text);
	    SendPlayerMessageToAll(playerid, Text);
	}
	return 0;
}
Can anyone help?
Reply


Messages In This Thread
OnPlayerText help - by OMonger - 17.02.2015, 20:58
Re: OnPlayerText help - by arakuta - 17.02.2015, 21:10
Re: OnPlayerText help - by PaulDinam - 17.02.2015, 21:11
Re: OnPlayerText help - by OMonger - 17.02.2015, 21:12

Forum Jump:


Users browsing this thread: 1 Guest(s)