WHAT THE **** is wrong here?
#1

I'm trying to make arrest command for button,BUT THE ONLY THING I MANAGE TO DO IS ARRESTING MYSELF WHEN I'M WANTE,WHAT"S WRONG?

pawn Код:
if(newkeys == KEY_LOOK_BEHIND)
    {
      if(gTeam[playerid] == TEAM_COPS)
      {
        for(new i=0;i<MAX_PLAYERS;i++)
        {
          new p1 = i;
          new p2 = i++;
          if(GetDistanceBetweenPlayers(p1,p2) > 4) return SendClientMessage(playerid,COLOR_WHITE,"Nobody is close enough");
          if(GetDistanceBetweenPlayers(p1,p2) <= 4  && GetPlayerWantedLevel(p2) > 0)
          {
            TogglePlayerControllable(p2,0);
            new copname[24];
            new wantedname[24];
            GetPlayerName(p1,copname,sizeof(copname));
            GetPlayerName(p2,wantedname,sizeof(wantedname));
            new string[128];
            format(string,sizeof(string),"%s has been cuffed by %s",wantedname,copname);
            SendClientMessageToAll(COLOR_GREY,string);
            GivePlayerMoney(p1,500);
         }
       }
      }
    }
Reply


Messages In This Thread
WHAT THE **** is wrong here? - by Cjgogo - 22.05.2011, 08:11
Re: WHAT THE **** is wrong here? - by (SF)Noobanatior - 22.05.2011, 08:38
Re: WHAT THE **** is wrong here? - by [L3th4l] - 22.05.2011, 08:42
Re: WHAT THE **** is wrong here? - by Cjgogo - 22.05.2011, 08:59
Re: WHAT THE **** is wrong here? - by Haydz - 22.05.2011, 09:10
Re: WHAT THE **** is wrong here? - by boelie - 22.05.2011, 09:11
Re: WHAT THE **** is wrong here? - by xir - 22.05.2011, 09:18
Re: WHAT THE **** is wrong here? - by Cjgogo - 22.05.2011, 09:25

Forum Jump:


Users browsing this thread: 1 Guest(s)