Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- }
- }
- }
- }
- //Missing bracket!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement