Command for /helpme and /helpers
#1

Well this is what I want, a level 5 admin can make people leader of the "Helpers" and the leader (Can be more than one) can /makehelper which a helper has the ability to /unfreeze, /setint, and it can accept /helpme's for common questions which a normal player does /helpme.
Reply
#2

Anyone know this or could make it?
Reply
#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
#4

Quote:
Originally Posted by VinceQc
Код:
  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.
Thanks for this, maybe someone else can help me finish this.
Reply
#5

You should do it by yourself if you want to learn buddy.
Reply
#6

Quote:
Originally Posted by VinceQc
You should do it by yourself if you want to learn buddy.
I'm on the learning stage, but if I want a good one I must get it from someone profesional.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)