ItsMods
[Release] luck ahaha - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [Release] luck ahaha (/Thread-Release-luck-ahaha.html)



luck ahaha - NyZzE - 02-07-2013

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


RE: luck ahaha - 8q4s8 - 02-07-2013

(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.


RE: luck ahaha - NyZzE - 02-07-2013

(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 Message, ServerClient 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?


RE: luck ahaha - SuperNovaAO - 02-08-2013

(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.


RE: luck ahaha - NyZzE - 02-08-2013

Well, to hell with you .


RE: luck ahaha - 8q4s8 - 02-08-2013

(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 Message, ServerClient 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.


RE: luck ahaha - hillbilly - 02-08-2013

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.


RE: luck ahaha - NyZzE - 02-08-2013

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