#9

Код:
CMD:achat(playerid, params[])
{
	new string[128], text[128], pname[MAX_PLAYER_NAME+1];
	GetPlayerName(playerid, pname, sizeof(pname));

	if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, 0x46E850FF, "SERVER:{FFFFFF} /a(chat) [text]");

	if(pInfo[playerid][Admin] == 0) return SendClientMessage(playerid, 0x46E850FF, "SERVER:{FFFFFF} You're not an administrator!");

	format(string, sizeof(string), "[LVL: %d]{FFFFFF}  %s: %s", pInfo[playerid][Admin], pname, text);
	SendAdminMessage(0x46E850FF, string);

	return 1;
}
Okay so know i got the adminname in there how do i add it into this command? thanks for the help so far
Reply


Messages In This Thread
Help - by CSLangdale - 29.03.2016, 19:11
Re: Help - by Crystallize - 29.03.2016, 19:21
Re: Help - by CSLangdale - 30.03.2016, 08:16
Re: Help - by Sjn - 30.03.2016, 08:48
Re: Help - by CSLangdale - 30.03.2016, 13:54
Re: Help - by Mencent - 30.03.2016, 13:56
Re: Help - by Untonyst - 30.03.2016, 14:37
Re: Help - by Vanter - 30.03.2016, 14:46
Re: Help - by CSLangdale - 30.03.2016, 16:11
Re: Help - by CSLangdale - 31.03.2016, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)