Tazing with the SD pistol.
#1

pawn Code:
if(((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE)) || ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE)) || (newkeys & KEY_FIRE))
    {
      for(new i = 0; i < GetMaxPlayers(); i++)
        {
          if(IsPlayerConnected(i) && playerid != i && !IsPlayerNPC(i))
          {
                if(IsPlayerAiming(playerid, i))
                {
                    if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 1 || PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 2)
                    {
                      if(GetPlayerWeapon(playerid) == 23)
                      {
                        if(IsPlayerInAnyVehicle(i) || IsPlayerInAnyVehicle(i))
                        {
                            return 0;
                        }
                        //SetPlayerHealth(i, 0);
                        TogglePlayerControllable(i, 0);
                            ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                            GameTextForPlayer(i, "(Tazed)", 3000, 3);
                            GameTextForPlayer(playerid, "(Tazed) Complete", 3000, 3);
                            //SetTimerEx("UnTaze", 9000, 0, "d",i);
                            return 1;
                        }
                    }
                }
            }
        }
How come this doesn't work on my script? Credits goto Eric_.

It gives me 26 errors that are irrelevant to this code. I checked for missing brackets, etc.
Reply


Messages In This Thread
Tazing with the SD pistol. - by NiiRV4N4 - 22.05.2010, 20:55
Re: Tazing with the SD pistol. - by W00Z - 22.05.2010, 20:58
Re: Tazing with the SD pistol. - by NiiRV4N4 - 22.05.2010, 21:03
Re: Tazing with the SD pistol. - by Assyria - 22.05.2010, 21:12
Re: Tazing with the SD pistol. - by Hiddos - 22.05.2010, 21:14
Re: Tazing with the SD pistol. - by NiiRV4N4 - 22.05.2010, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)