Read comds problem? please help
#1

man this is my read cmds by which admins can read cmds for admin onlly

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new playname[MAX_PLAYER_NAME], ircCommand[256];
	GetPlayerName(playerid, playname, sizeof(playname));
	format(ircCommand, sizeof(ircCommand), "02[%i] 07%s: %s", playerid, playname, cmdtext);
	IRC_GroupSay(gGroupID2, IRC_CHANNEL, ircCommand);

	new string[256];
	new idx;
	string = strtok(cmdtext, idx);
 //================ [ Read Comamands ] ===========================//
	if(ServerInfo[ReadCmds] == 1)
	{
		format(string, sizeof(string), "*** %s (%d) typed: %s", pName(playerid),playerid,cmdtext);
		for(new i = 0; i < MAX_PLAYERS; i++) {
			if(IsPlayerConnected(i)) {
				if( (PlayerInfo[i][Level] > PlayerInfo[playerid][Level]) && (PlayerInfo[i][Level] > 1) && (i != playerid) ) {
					SendClientMessage(i, grey, string);
				}
			}
		}
	}
}
but it wont show
Reply


Messages In This Thread
Read comds problem? please help - by CBCandyBoy - 02.02.2013, 12:54
Re: Read comds problem? please help - by Rapgangsta - 02.02.2013, 15:52
Re: Read comds problem? please help - by CBCandyBoy - 03.02.2013, 04:15
Re: Read comds problem? please help - by Scenario - 03.02.2013, 04:54

Forum Jump:


Users browsing this thread: 1 Guest(s)