Advertisement
Guest User

Hiddos

a guest
May 22nd, 2010
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.03 KB | None | 0 0
  1. if(((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE)) || ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE)) ||  (newkeys & KEY_FIRE))
  2. {
  3.     for(new i = 0; i < GetMaxPlayers(); i++)
  4.     {
  5.         if(IsPlayerConnected(i) && playerid != i && !IsPlayerNPC(i))
  6.         {
  7.             if(IsPlayerAiming(playerid, i))
  8.             {
  9.                  if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 1 || PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 2)
  10.                 {
  11.                     if(GetPlayerWeapon(playerid) == 23)
  12.                     {
  13.                         if(IsPlayerInAnyVehicle(i) || IsPlayerInAnyVehicle(i))
  14.                         {
  15.                                 return 0;
  16.                         }
  17.                         //SetPlayerHealth(i, 0);
  18.                             TogglePlayerControllable(i, 0);
  19.                         ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  20.                         GameTextForPlayer(i, "(Tazed)", 3000, 3);
  21.                         GameTextForPlayer(playerid, "(Tazed) Complete", 3000, 3);
  22.                         //SetTimerEx("UnTaze", 9000, 0, "d",i);
  23.                         return 1;
  24.                     }
  25.                 }
  26.             }
  27.         }
  28.     }
  29. //Missing bracket!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement