/o ranks
#1

This is my code for the /o

Код:
CMD:o(playerid, params[])
{
	new say[256];
	if(togo[playerid] == 0) return SendClientMessage(playerid, COLOR_CYAN, "You have not enabled OOC chat. Type /togooc if you wish to toggle it.");
	if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /o [text]");
	if(sscanf(params, "s[256]", say))
	{
	SendClientMessage(playerid, -1, "USAGE: /o [text]");
	}
	new str[256];
	format(str, 256, "(( %s says: %s ))", GetName(playerid), say);
	SCMTO(str);
	return 1;
}
I'm trying to change it so that the rank shows before the name. I tried adding things like this under the script..

Код:
	if(PlayerInfo[playerid][pAdmin] == 6)
	{
		format(str, 256, "Server Director %s: %s", GetName(playerid), say);
		return 1;
	}
And I didn't get any errors, although when I went ingame, nothing appeared to change. I would be very appreciative if somebody could fix my script, using the above sort of text, so that all the administrator ranks from 1-6 and helper ranks from 1-2 (which just changes from pAdmin to pHelper) show up before the players name.

Regards,
Reply


Messages In This Thread
/o ranks - by Joshswag - 30.03.2013, 08:57
Re: /o ranks - by Chrillzen - 30.03.2013, 08:59
Re: /o ranks - by Joshswag - 30.03.2013, 09:11
Re: /o ranks - by Joshswag - 30.03.2013, 10:42

Forum Jump:


Users browsing this thread: 1 Guest(s)