• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release luck ahaha
#1
Wink 
•Hey hey guys. I just started learning C #, and have made a very simple plugin. Maybe it fits is for the beginner who has just created a server and fills its plugins))


This plug-in gives weapons ak47 and ACR, 300 lives and police shield team !luc, !luc2. this plugin for infection.


may be useful. ahaha. Sorry for my bad English. Smile

•COMMANDS
• !luc get AK-47
• !luc2 get ACR


Attached Files
.rar   luck.rar (Size: 4.39 KB / Downloads: 26)
[Image: doc137842780_192751677?hash=1bfc334a6fc0...7907&wnd=1]
======================================
  Reply
#2
(02-07-2013, 17:30)NyZzE Wrote: •Hey hey guys. I just started learning C #, and have made a very simple plugin. Maybe it fits is for the beginner who has just created a server and fills its plugins))


This plug-in gives weapons ak47 and ACR, 300 lives and police shield team !luc, !luc2. this plugin for infection.


may be useful. ahaha. Sorry for my bad English. Smile

•COMMANDS
• !luc get AK-47
• !luc2 get ACR

Why you named it "luck ahaha"?
I don't understand what the use of this plugin is, maybe you should explain it a bit better.
[-] The following 1 user says Thank You to 8q4s8 for this post:
  • JariZ
  Reply
#3
(02-07-2013, 19:32)8q4s8 Wrote:
(02-07-2013, 17:30)NyZzE Wrote: •Hey hey guys. I just started learning C #, and have made a very simple plugin. Maybe it fits is for the beginner who has just created a server and fills its plugins))


This plug-in gives weapons ak47 and ACR, 300 lives and police shield team !luc, !luc2. this plugin for infection.


may be useful. ahaha. Sorry for my bad English. Smile

•COMMANDS
• !luc get AK-47
• !luc2 get ACR

Why you named it "luck ahaha"?
I don't understand what the use of this plugin is, maybe you should explain it a bit better.

OK. you help me with the plugin? I called plugin "luck ahaha", because it can only use one player who will have time to type a command, and once for the card, and even if you do not like the name "luck ahaha"then offer me a new name, I will change a new one))

Sorry for bad english, if you understand me

help me with the problem of side arms, weapons work, but when they switch to a second weapon, it does not shoot ((

I say again, Sorry for English

PHP Code:
using System;
using Addon;
using System.Timers;

namespace 
plugin_test_akimbo
{
    
//" : CPlugin"     NyZzE akimbo
    
public class plugin_test_akimbo CPlugin
    
{
        
//    NyZzE akimbo
        
bool mp5 false;
        
//
        
public override void OnMapChange()
        {
            
mp5 false;
        }

        public 
override void OnServerLoad()
        {
            
ServerPrint("**NyZzE akimbo_Load**");
        }

        public 
void NyZzEFunc(ServerClient Client)
        {
            
iPrintLnBold("^1|akimbo Load ^2" Client.Name ""null);
            
int mp5 GetWeapon("iw5_acr_mp_camo11_mp_reflex");
            
Client.Other.PrimaryWeaponAkimbo true;
            
Client.Other.SecondaryWeaponAkimbo true;
            
Client.Other.PrimaryWeapon mp5;
            
Client.Other.SecondaryWeapon mp5;
            
Client.Other.CurrentWeapon mp5;
            
Client.Ammo.PrimaryAmmoClip 1034;
            
Client.Ammo.SecondaryAmmoClip 1034;

            
Client.Other.MaxHealth 660;
            
Client.Other.Health 660;

            
int mp51 GetWeapon("iw5_mp5_mp_camo11");
            
Client.Other.PrimaryWeaponAkimbo true;
            
Client.Other.SecondaryWeaponAkimbo true;
            
Client.Other.PrimaryWeapon mp5;
            
Client.Other.SecondaryWeapon mp51;
            
Client.Other.CurrentWeapon mp51;
            
Client.Ammo.PrimaryAmmoClip 1034;
            
Client.Ammo.SecondaryAmmoClip 1034;
        }



        public 
override ChatType OnSay(string MessageServerClient Client)
        {
            
ServerPrint("Player " Client.Name "said " Message);
            if (
Client.Team == Teams.Allies)
            {
                if (
Message == "!ak")
                {
                    if (
mp5 == false)
                    {
                        
NyZzEFunc(Client);
                        return 
ChatType.ChatNone;
                    }
                    else if (
mp5 == true)
                    {
                        
TellClient(Client.ClientNum"^1NyZzE akimbo load"true);
                        return 
ChatType.ChatNone;
                    }
                }
            }
            else if (
Client.Team == Teams.Axis)
            {
                if (
Message == "!ak")
                {
                    
TellClient(Client.ClientNum"^1NyZzE akimbo load"true);
                    return 
ChatType.ChatNone;
                }
            }
            return 
ChatType.ChatContinue;
        }
    }


you can look?


Attached Files
.rar   NyZze akimbo.rar (Size: 2.22 KB / Downloads: 3)
[Image: doc137842780_192751677?hash=1bfc334a6fc0...7907&wnd=1]
======================================
  Reply
#4
(02-07-2013, 19:32)8q4s8 Wrote: I don't understand what the use of this plugin is, maybe you should explain it a bit better.

Some people learn how to make plugins. Embrace them and don't hate them but help them.
[-] The following 4 users say Thank You to SuperNovaAO for this post:
  • barata, House, JariZ, OzonE
  Reply
#5
Well, to hell with you .
[Image: doc137842780_192751677?hash=1bfc334a6fc0...7907&wnd=1]
======================================
[-] The following 1 user says Thank You to NyZzE for this post:
  • JariZ
  Reply
#6
(02-07-2013, 23:38)NyZzE Wrote: OK. you help me with the plugin? I called plugin "luck ahaha", because it can only use one player who will have time to type a command, and once for the card, and even if you do not like the name "luck ahaha"then offer me a new name, I will change a new one))

Sorry for bad english, if you understand me

help me with the problem of side arms, weapons work, but when they switch to a second weapon, it does not shoot ((

I say again, Sorry for English

PHP Code:
using System;
using Addon;
using System.Timers;

namespace 
plugin_test_akimbo
{
    
//" : CPlugin"     NyZzE akimbo
    
public class plugin_test_akimbo CPlugin
    
{
        
//    NyZzE akimbo
        
bool mp5 false;
        
//
        
public override void OnMapChange()
        {
            
mp5 false;
        }

        public 
override void OnServerLoad()
        {
            
ServerPrint("**NyZzE akimbo_Load**");
        }

        public 
void NyZzEFunc(ServerClient Client)
        {
            
iPrintLnBold("^1|akimbo Load ^2" Client.Name ""null);
            
int mp5 GetWeapon("iw5_acr_mp_camo11_mp_reflex");
            
Client.Other.PrimaryWeaponAkimbo true;
            
Client.Other.SecondaryWeaponAkimbo true;
            
Client.Other.PrimaryWeapon mp5;
            
Client.Other.SecondaryWeapon mp5;
            
Client.Other.CurrentWeapon mp5;
            
Client.Ammo.PrimaryAmmoClip 1034;
            
Client.Ammo.SecondaryAmmoClip 1034;

            
Client.Other.MaxHealth 660;
            
Client.Other.Health 660;

            
int mp51 GetWeapon("iw5_mp5_mp_camo11");
            
Client.Other.PrimaryWeaponAkimbo true;
            
Client.Other.SecondaryWeaponAkimbo true;
            
Client.Other.PrimaryWeapon mp5;
            
Client.Other.SecondaryWeapon mp51;
            
Client.Other.CurrentWeapon mp51;
            
Client.Ammo.PrimaryAmmoClip 1034;
            
Client.Ammo.SecondaryAmmoClip 1034;
        }



        public 
override ChatType OnSay(string MessageServerClient Client)
        {
            
ServerPrint("Player " Client.Name "said " Message);
            if (
Client.Team == Teams.Allies)
            {
                if (
Message == "!ak")
                {
                    if (
mp5 == false)
                    {
                        
NyZzEFunc(Client);
                        return 
ChatType.ChatNone;
                    }
                    else if (
mp5 == true)
                    {
                        
TellClient(Client.ClientNum"^1NyZzE akimbo load"true);
                        return 
ChatType.ChatNone;
                    }
                }
            }
            else if (
Client.Team == Teams.Axis)
            {
                if (
Message == "!ak")
                {
                    
TellClient(Client.ClientNum"^1NyZzE akimbo load"true);
                    return 
ChatType.ChatNone;
                }
            }
            return 
ChatType.ChatContinue;
        }
    }


you can look?

PrimarryWeaponAkimbo doesn't work very well, I think @SailorMoon will release a fix for that. I didn't understand why you named it "luck" but now I understand why, sorry for that.
[-] The following 1 user says Thank You to 8q4s8 for this post:
  • NyZzE
  Reply
#7
its a bug, you get when you try and have primary and secondary akimbo with different weapons, someone said they were going to release a fix but not as yet.
[Image: b_560_95_1.png]


[Image: b_560_95_1.png]

  Reply
#8
wait is not difficult, thanks to all. name can be changed just tell me))Smile

(02-08-2013, 15:53)hillbilly Wrote: its a bug, you get when you try and have primary and secondary akimbo with different weapons, someone said they were going to release a fix but not as yet.

I tried to do but for this very very stupid
[Image: doc137842780_192751677?hash=1bfc334a6fc0...7907&wnd=1]
======================================
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)