Command for /helpme and /helpers
#3

Код:
  if (strcmp(cmd, "/helpers", true) == 0)
	{
    if(IsPlayerConnected(playerid))
	  {
			foreach (Player,i)
			{
				if(gPlayerLogged[i])
				{
				  if((PlayerInfo[i][pHelper] >= 1 && PlayerInfo[i][pAdmin]==0) || (PlayerInfo[i][pAdmin]>0&&PlayerInfo[i][pHelper]>=1&&PlayerInfo[i][pHidden]==0))
				  {
						GetPlayerName(i, sendername, sizeof(sendername));
				    GiveNameSpace(sendername);
						if(HelperDuty[i] == 0)
						{
							format(string, 256, "[ONLINE]: %s",sendername);
							SendClientMessage(playerid, COLOR_LIGHTYELLOW5, string);
						}
						else
						{
						  format(string, 256, "[ONLINE]: %s (on duty)" ,sendername);
							SendClientMessage(playerid, COLOR_PURPLE, string);
						}
					}
				}
			}
		}
		return 1;
	}
After that, you will need to correctly edit "pHelper" and such to make it work.
For a /helpme, simply makes something that will broadcast on "pHelper" chat.
Good luck.
Reply


Messages In This Thread
Command for /helpme and /helpers - by Darklom - 05.06.2010, 02:43
Re: Command for /helpme and /helpers - by Darklom - 05.06.2010, 23:03
Re: Command for /helpme and /helpers - by VinceQc - 05.06.2010, 23:11
Re: Command for /helpme and /helpers - by Darklom - 06.06.2010, 01:38
Re: Command for /helpme and /helpers - by VinceQc - 06.06.2010, 02:16
Re: Command for /helpme and /helpers - by Darklom - 06.06.2010, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)