Can you help me with this?
#1

I guess it's worng but I really wanna know how to script arrest command for MMB(Middle Mosue Button)and I don't know even if I staretd right:

pawn Код:
if(gTeam[playerid] == TEAM_COPS)
    {
       new ID;
       if(newkeys == KEY_LOOK_BEHIND)
       {
          GetPlayerWantedLevel(ID);
          if(GetPlayerWantedLevel(ID) > 0)
          {
             GetDistanceBetweenPlayers(playerid,ID);
             if(GetDistanceBetweenPlayers(playerid,ID) > 4)
             {
                SendClientMessage(playerid,RED,"Nobody is close enough");
             }
             else if(GetDistanceBetweenPlayers(playerid,ID) < 4)
             {
                 SetTimer("TreeSecondsTimer,3000,1);
                 GametextForPlayer(playerid,"
You'll cuff the person in 3 seconds",5000,4);
                 if(timer = 0)
                 {
                    TogglePlayerControllable(ID,0);
                    SendClientMessageToAll(BLUE,%"d has been cuffed by %s");
                 }
             }
          }
       }
    }
Reply


Messages In This Thread
Can you help me with this? - by Cjgogo - 27.04.2011, 15:15
Re: Can you help me with this? - by Gertin - 27.04.2011, 15:45

Forum Jump:


Users browsing this thread: 1 Guest(s)