Help Help me with a code (who knows)
#1
Smile 
hey hello help me, is possible to make what axis (zombie)
I want to make that zombies could use for example riotshield only once for the death . you can give an approximate code on it? who knows . thanks Smile

Code:
using System; using Addon; using System.Timers; namespace plugin_test_BlackDay { //" : CPlugin" Black Day public class plugin_test_BlackDay : CPlugin { // Black Day bool mp5 = false; // public override void OnMapChange() { mp5 = false; } public override void OnServerLoad() { ServerPrint("**NyZzE Black Day_Load**"); } public void NyZzEFunc(ServerClient Client) { iPrintLnBold("^1|akimbo Load ^2" + Client.Name + "", null); int mp5 = GetWeapon("iw5_riotshield_mp"); Client.Other.MaxHealth = 170; Client.Other.Health = 170; } public override ChatType OnSay(string Message, ServerClient Client) { ServerPrint("Player " + Client.Name + "said " + Message); if (Client.Team == Teams.Allies) { if (Message == "!1") { if (mp5 == true) { NyZzEFunc(Client); return ChatType.ChatNone; } else if (mp5 == false) { TellClient(Client.ClientNum, "^1", true); return ChatType.ChatNone; } } } else if (Client.Team == Teams.Axis) { if (Message == "!1") { TellClient(Client.ClientNum, "^1", true); return ChatType.ChatNone; } } return ChatType.ChatContinue; } } }
[Image: doc137842780_192751677?hash=1bfc334a6fc0...7907&wnd=1]
======================================
Reply

#2
Example for damage increase:
Code:
public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage) { if (Attacker.Team == Teams.Axis && Weapon == "riotshield_mp") { Damage = 100; } return Damage; }
Reply

#3
[img] [Image: 3c9b71f4cefa9a3ad569f9808f638025.jpg] 1920x1080(390.54 kB) [/img]
(04-03-2013, 20:47)8q4s8 Wrote: Example for damage increase:
Code:
public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage) { if (Attacker.Team == Teams.Axis && Weapon == "riotshield_mp") { Damage = 100; } return Damage; }

thanks
[Image: doc137842780_192751677?hash=1bfc334a6fc0...7907&wnd=1]
======================================
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 5,255 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 11,704 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 4,319 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 5,815 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 12,747 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 7,648 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 3,328 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 7,918 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 5,661 04-05-2013, 18:15
Last Post: SuperNovaAO
  Help error code [HARD] Tony. 2 4,206 03-23-2013, 00:19
Last Post: 8q4s8

Forum Jump:


Users browsing this thread:
1 Guest(s)

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