/giverank help please
#1

Hello,
I dont know how to change the number of ranks a faction leader can give, so could I have some help

Only answer here if you are gonna answer my question

Код:
if(strcmp(cmd, "/giverank", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /giverank [playerid/PartOfName] [Number(1-6)]");
				return 1;
			}
			new para1;
			new level;
			para1 = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			level = strvalEx(tmp);
			if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_GREY, "   Dont go below number 0, or above number 6!"); return 1; }
			if(PlayerInfo[playerid][pLeader] >= 1)
			{
			    if(IsPlayerConnected(para1))
			    {
			        if(para1 != INVALID_PLAYER_ID)
			        {
			            if(PlayerInfo[para1][pMember] == PlayerInfo[playerid][pLeader])
			            {
			                GetPlayerName(para1, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
							PlayerInfo[para1][pRank] = level;
							format(string, sizeof(string), "* You have been promoted to a higher Rank by Leader %s.", sendername);
							SendClientMessage(para1, COLOR_LIGHTBLUE, string);
							format(string, sizeof(string), "* You have given %s Rank %d.", giveplayer,level);
							SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
			            }
			            else
			            {
							SendClientMessage(playerid, COLOR_GREY, "   That player is not a member of your Faction / Family !");
			            	return 1;
			            }
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command (Leaders Only) !");
			}
		}
		return 1;
Thanks
Reply
#2

Bump - I need to know what to do ASAP
Reply
#3

Quote:
Originally Posted by seanny
Посмотреть сообщение
Bump - I need to know what to do ASAP
No you should wait like everyone else does.

Thanks.
Reply
#4

I got very little paitence in life

This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds. <- FUUUUUU
Reply
#5

Quote:
Originally Posted by seanny
Посмотреть сообщение
I got very little paitence in life

This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds. <- FUUUUUU
So have I..... So what makes you better than anyone else or me?
I have to wait.
Reply
#6

Quote:

Only post here if you are gonna answer my question!

This forum requires that you wait 120 seconds between posts. Please try again in 1 seconds. <- FUUU
Reply
#7

Bump - Very Urgent
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)