Help Headshot plugin giving ammo or more points
#1
Rainbow 
hello
can somebody make for me plugin when alive shot head shoot then get more points or ammo

sry for my bad english
Reply

#2
Maybe someone come in handy Smile

C# Code:
Code:
using Addon; using System; using System.Collections.Generic; namespace Headshot { public class Headshot : CPlugin { public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage, string DamageMod, HitLocations HitLocation) { //if survival make headshot he get 50 ammo to primary weapon if (Attacker.Team == Teams.Allies && HitLocation == HitLocations.Head && Victim.Team == Teams.Axis && Damage >= Victim.Other.Health) { //Your code for getting points/ammo //Example: Attacker.Ammo.PrimaryAmmo += 50; } return Damage; } } }
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help IAM plugin source GameplaysDPP 8 9,840 07-19-2017, 19:40
Last Post: W4R||The Hyper
  MW3 plugin for BigBrotherBot raminr63 0 3,176 12-28-2014, 20:05
Last Post: raminr63
  Help YuriMAP Plugin clacki 7 7,168 12-27-2014, 03:16
Last Post: Casper
Rainbow Plugin no work Rudy 9 6,516 07-26-2014, 23:00
Last Post: Nekochan
Rainbow Help Can sombody end this plugin premium to work Rudy 6 5,637 07-26-2014, 22:16
Last Post: Rudy
  Help Server crashes after using plugin Gmzorz 2 3,831 01-23-2014, 19:04
Last Post: Gmzorz
  help w/ domination points Gmzorz 0 2,363 12-22-2013, 17:50
Last Post: Gmzorz

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.