/promote - NEED HELP
#1

pawn Код:
if(strcmp(cmd, "/promote", true) ==0 )
    {
      if(PLAYERLIST_authed[playerid] == 1)
      {
        tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "[USAGE]: /promote [id]");
                return 1;
            }
            new para1 = ReturnUser(tmp);
        new faction;
        if(PlayerInfo[playerid][pMember] == faction)
        {
          if(PLAYERLIST_authed[para1] == 1)
          {
            if(PlayerInfo[para1][pMember] == faction)
                {
                PlayerInfo[para1][pRank] ++;
                new string[256];
                format(string, sizeof(string), ".: %s has been promoted by %s. Rank %d :.", GetName(para1),GetName(playerid),PlayerInfo[para1][pRank]);
                        SendClientMessage(playerid, COLOR_ADMIN_TP, string);
                        OnPlayerFactionSpawn(playerid);
                }
        }
        }
        }
        return 1;
    }
How do i make it so the person doing the command can only rank up the person in his faction and not someone else in a diffrent faction.
Reply


Messages In This Thread
/promote - NEED HELP - by kevin974 - 15.08.2008, 18:11
Re: /promote - NEED HELP - by Uhunu - 15.08.2008, 19:08
Re: /promote - NEED HELP - by matt2127 - 15.08.2008, 19:46
Re: /promote - NEED HELP - by kevin974 - 15.08.2008, 22:06
Re: /promote - NEED HELP - by matt2127 - 15.08.2008, 22:15
Re: /promote - NEED HELP - by Securityz - 16.08.2008, 02:50
Re: /promote - NEED HELP - by kevin974 - 16.08.2008, 03:54
Re: /promote - NEED HELP - by nate660 - 16.08.2008, 03:59
Re: /promote - NEED HELP - by Uhunu - 16.08.2008, 05:56
Re: /promote - NEED HELP - by nate660 - 16.08.2008, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)