• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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:
CSHARP Code
  1. public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage)
  2. {
  3. if (Attacker.Team == Teams.Axis && Weapon == "riotshield_mp")
  4. {
  5. Damage = 100;
  6. }
  7. return Damage;
  8. }
  Reply
#3
[img] [Image: 3c9b71f4cefa9a3ad569f9808f638025.jpg] 1920x1080(390.54 kB) хостинг изображений[/img]
(04-03-2013, 20:47)8q4s8 Wrote: Example for damage increase:
CSHARP Code
  1. public override int OnPlayerDamaged(ServerClient Attacker, ServerClient Victim, string Weapon, int Damage)
  2. {
  3. if (Attacker.Team == Teams.Axis && Weapon == "riotshield_mp")
  4. {
  5. Damage = 100;
  6. }
  7. return Damage;
  8. }

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 3,616 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 7,648 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,085 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 3,765 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 8,767 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,138 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 2,184 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,050 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 3,759 04-05-2013, 18:15
Last Post: SuperNovaAO
  Help error code [HARD] Tony. 2 2,782 03-23-2013, 00:19
Last Post: 8q4s8

Forum Jump:


Users browsing this thread: 1 Guest(s)