Some admin chat help please
#3

I tryed a thing here, it kinda work, but not work.. xD
on top off:
Код:
enum pInfo
{
	Admin
}

new PlayerInfo[MAX_PLAYERS][pInfo];
When player login:
Код:
    if(dini_Int(file, "admin") >1)
    {
      PlayerInfo[playerid][Admin] = 1;
    }
The command:
Код:
	if(strcmp(cmdtext, "/a", true, 2) == 0 )
	{
	  if(dini_Int(file, "admin") >1)
	  {
	  	for(new i = 0; i < MAX_PLAYERS; i ++)
			{
				if(PlayerInfo[i][Admin] == PlayerInfo[playerid][Admin])
				{
				  new pname2[256];
				  GetPlayerName(playerid, pname2, sizeof(pname2));
					new string[256];
					format(string, 256, "[ADMIN]%s: %s", pname, cmdtext[3]);
					SendClientMessage(i, COLOR_ORANGE, string);
				}
			}
	  }
	  else
		{
		  SendClientMessage(playerid, COLOR_YELLOW, "You are not admin!");
		}
		return 1;
	}
When I'm in with a friend and i use /a not my name comming but hes.. And i did me self sivilian but then it com on hes screen that he was not a admin. Help?
Reply


Messages In This Thread
Some admin chat help please - by Danand - 13.04.2009, 18:18
Re: Some admin chat help please - by luxeon - 13.04.2009, 19:16
Re: Some admin chat help please - by Danand - 13.04.2009, 19:20
Re: Some admin chat help please - by luxeon - 13.04.2009, 19:42
Re: Some admin chat help please - by Danand - 13.04.2009, 19:44
Re: Some admin chat help please - by luxeon - 13.04.2009, 19:46
Re: Some admin chat help please - by Danand - 13.04.2009, 19:49
Re: Some admin chat help please - by FranKyG70 - 13.04.2009, 20:02
Re: Some admin chat help please - by Danand - 13.04.2009, 20:50
Re: Some admin chat help please - by Danand - 14.04.2009, 04:51

Forum Jump:


Users browsing this thread: 1 Guest(s)