Plugin to get weapons
#11
I installed the plugin on my server, but nothing happens...
[Image: b_560_95_1.png]
Reply

#12
Are you compiled it using .NET 3.X ?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#13
Ohh... I used 4.0
3.0 or 3.5?

K I tried 3.0 but the commands doesn't work.
[Image: b_560_95_1.png]
Reply

#14
Try to remove all 'ChatType.ChatNone', but don't remove the last one.
If 'return' is outside of some statement, it just doesn't go next.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#15
Thanks not it works, but there are still some bugs:

I can't write anything in the chat, just commands.
The !ump and the !acr command doesn't work.
!speed is just for a short time (about 20 sec.)

Here's the code:

Code:
using System; using System.Collections.Generic; using Addon; using System.IO; namespace NS_Plugin { public class Main : CPlugin { public override ChatType OnSay(string Message, ServerClient Client) { string str = Message.ToLower(); if (str.StartsWith("!lol")) { Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut"); } if (str.StartsWith("!allperks")) { Client.Other.SetPerk(GetPerk("all_perks_bonus")); } if (str.StartsWith("!acr")) { if (Client.Team == Teams.Allies) { Client.Other.PrimaryWeapon = GetWeapon("iw5_acr_mp_specialty_bulletpenetration_specialty_marksman_specialty_armorpiercing_specialty_longerrange_specialty_moredamage_specialty_lightweight_xmags_silencer_01_camo12"); Client.Ammo.PrimaryAmmoClip = 250; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!ump")) { if (Client.Team == Teams.Allies) { Client.Other.PrimaryWeapon = GetWeapon("iw5_ump45_mp_specialty_bulletpenetration_specialty_marksman_specialty_armorpiercing_specialty_longerrange_specialty_moredamage_specialty_lightweight_xmags_silencer_01_camo12"); Client.Ammo.PrimaryAmmoClip = 250; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!fmg")) { if (Client.Team == Teams.Allies) { Client.Other.SecondaryWeaponAkimbo = true; Client.Other.SecondaryWeapon = GetWeapon("iw5_fmg9_mp"); Client.Ammo.SecondaryAkimboAmmo = 300; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!ammo")) { if (Client.Team == Teams.Allies) { Client.Ammo.PrimaryAmmoClip = 250; Client.Ammo.SecondaryAmmoClip = 100; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!health")) { Client.Other.Health = 200; } if (str.StartsWith("!speed")) { Client.Other.SpeedScale = 1.5f; } return ChatType.ChatNone; } } }
[Image: b_560_95_1.png]
Reply

#16
speedscale = if you jumping over to the roof/clumbing up the stairs (examples) will you lose your speed.

with the weapons, i Think you should pick away all the perks. and replace them with:
"Client.Other.SetPerk(GetPerk("your perk"));"

and add more perks like this:
"Client.Other.SetPerk(GetPerk("perk_1"));"
"Client.Other.SetPerk(GetPerk("perk_2"));"

[Example]
Client.Other.SetPerk(GetPerk("specialty_fastermelee"));
Client.Other.SetPerk(GetPerk("specialty_scavenger"));
etc...
Reply

#17
Thanks, but does someone now how to fix the chat bug?
[Image: b_560_95_1.png]
Reply

#18
(12-11-2013, 18:19)xxxLik3aB0SSxxx Wrote: Thanks, but does someone now how to fix the chat bug?

what chat bugg??
~FYANB~ Servers Website

Primary Account:
[Image: 76561198070236721.png]
Secondary Account:
[Image: 76561198096107676.png]
Third Account:
[Image: 76561198164751656.png]
Reply

#19
Omg, another commands aren't showing up because you need to move 'return'. I said it before.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#20
You mean like this?

Code:
using System; using System.Collections.Generic; using Addon; using System.IO; namespace NS_Plugin { public class Main : CPlugin { public override ChatType OnSay(string Message, ServerClient Client) { string str = Message.ToLower(); if (str.StartsWith("!lol")) { Client.Other.SetPlayerModel("mp_fullbody_opforce_juggernaut"); } if (str.StartsWith("!allperks")) { Client.Other.SetPerk(GetPerk("all_perks_bonus")); } if (str.StartsWith("!acr")) { if (Client.Team == Teams.Allies) { Client.Other.PrimaryWeapon = GetWeapon("iw5_acr_mp_specialty_bulletpenetration_specialty_marksman_specialty_armorpiercing_specialty_longerrange_specialty_moredamage_specialty_lightweight_xmags_silencer_01_camo12"); Client.Ammo.PrimaryAmmoClip = 250; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!ump")) { if (Client.Team == Teams.Allies) { Client.Other.PrimaryWeapon = GetWeapon("iw5_ump45_mp_specialty_bulletpenetration_specialty_marksman_specialty_armorpiercing_specialty_longerrange_specialty_moredamage_specialty_lightweight_xmags_silencer_01_camo12"); Client.Ammo.PrimaryAmmoClip = 250; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!fmg")) { if (Client.Team == Teams.Allies) { Client.Other.SecondaryWeaponAkimbo = true; Client.Other.SecondaryWeapon = GetWeapon("iw5_fmg9_mp"); Client.Ammo.SecondaryAkimboAmmo = 300; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!ammo")) { if (Client.Team == Teams.Allies) { Client.Ammo.PrimaryAmmoClip = 250; Client.Ammo.SecondaryAmmoClip = 100; } else { iPrintLnBold("^1You're not in the right team!", Client); } } if (str.StartsWith("!health")) { Client.Other.Health = 200; } if (str.StartsWith("!speed")) { Client.Other.SpeedScale = 1.5f; return ChatType.ChatNone; } } } }
[Image: b_560_95_1.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Shop plugin for infected server Petrosyan 0 3,319 01-11-2016, 21:01
Last Post: Petrosyan
  [Request] Full specialist plugin (.dll file prefered) plz check Ph4ntoM 4 4,831 10-24-2015, 20:51
Last Post: Casper
  Help health and ping plugin tamir20121 7 7,454 10-22-2015, 16:09
Last Post: Ph4ntoM
  [Request] Full specialist plugin (.dll file prefered) Ph4ntoM 0 2,807 10-18-2015, 21:18
Last Post: Ph4ntoM
  [Request] Welcome plugin that checks user for VAC bans. graphix2004 0 2,840 07-26-2015, 12:19
Last Post: graphix2004
Brick [Request] Flying plugin 7ru7a21 6 7,372 06-13-2015, 15:27
Last Post: leroi
  Need HUD plugin s.j-rez 7 7,772 11-08-2014, 21:16
Last Post: clacki
  give ammo plugin lander 2 4,317 09-06-2014, 14:10
Last Post: clacki
Heart [Request] Bunker Plugin (Can pay) as4dkhan 2 4,413 08-24-2014, 19:08
Last Post: as4dkhan
Tongue MW3 working jump height, gravity and fall damage plugin request/help Semyel 9 10,152 04-12-2014, 17:36
Last Post: Casper

Forum Jump:


Users browsing this thread:
1 Guest(s)

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