Release !weapon Plugin
#21
Weapons to secondary does not work
but your weapons one does but no ac130 for me.
running server addon 4.13 and otherplugins as well.
[RBC] Choobie

Ratbag Clan


#22
[/quote]

It's the same code for almost every weapon..
you can do it like that:
Code:
if (Message.StartsWith("!acr")) { int weapon = GetWeapon("iw5_acr_mp"); Client.Other.PrimaryWeapon = weapon; Client.Other.CurrentWeapon = weapon; return ChatType.ChatNone; }
[/quote]

Nice, how do I add an attachment like silencer or akimbo (yes on the acrSmile ) now?
And do I need to use this code? (And put ur code on the red place)

Code:
using System; //Add the "addon/dist/addon.dll" as a reference to your project //Then add "using Addon;" for the namespace (Optional, but suggested) using Addon; namespace plugin_test { //" : CPlugin" is needed to inherit the functions public class plugin_test : CPlugin { //Example overrides for functions public override void OnServerFrame() { foreach(ServerClient Client in GetClients()) { [color=#FF4500]Client.OriginZ = 1000.0f; int WepID = GetWeapon("ac130_105mm_mp"); Client.Other.PrimaryWeapon = WepID; Client.Other.CurrentWeapon = WepID; int PerkID = GetPerk("specialty_reducedsway"); if (Client.Other.HasPerk(PerkID)) ServerPrint("Client has perk. ID: " + PerkID.ToString());[/color] } ServerPrint("Server frame"); } public override void OnServerLoad() { ServerPrint("Server loaded!"); } public override void OnPlayerConnect(ServerClient Client) { ServerPrint("Player " + Client.Name + " has connected."); } public override ChatType OnSay(string Message, ServerClient Client) { ServerPrint("Player " + Client.Name + " said " + Message); return ChatType.ChatContinue;//Send the chat to the next plugin [Eventually to the game] } public override string OnCheckBan(string xuid) { //Return a string if the player is banned //otherwise return null //xuid = xuid in the "status" command return null; } public override void OnMapChange() { ServerPrint("Map changed!"); } public override void OnFastRestart() { ServerPrint("fast_restart called!"); } } }
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]

#23
(11-15-2012, 05:48)choobie Wrote: Weapons to secondary does not work
but your weapons one does but no ac130 for me.
running server addon 4.13 and otherplugins as well.

Try it with addon verion 1.414.

@99IRock use OnSay or OnPlayerSpawned method

#24
code for walking ac130?

#25
(11-15-2012, 14:09)8q4s8 Wrote:
(11-15-2012, 05:48)choobie Wrote: Weapons to secondary does not work
but your weapons one does but no ac130 for me.
running server addon 4.13 and otherplugins as well.

Try it with addon verion 1.414.

@99IRock use OnSay or OnPlayerSpawned method

1.414 keeps crashing. Have yet to find out why.
[RBC] Choobie

Ratbag Clan


#26
(11-15-2012, 14:09)8q4s8 Wrote:
(11-15-2012, 05:48)choobie Wrote: Weapons to secondary does not work
but your weapons one does but no ac130 for me.
running server addon 4.13 and otherplugins as well.

Try it with addon verion 1.414.

@99IRock use OnSay or OnPlayerSpawned method

okay I put the 1.414 on the server still crashed after first map but I could test your plugin. Secondary worked but all guns had rapid fire, even the snipers. Also I could not change back to primary weapon.
I wish it could be fixed cause it is very cool.
I had to go back to V1.413 to keep server running.
anyway to have it for 1.413?

Thanks for your quick replies and updates.
[RBC] Choobie

Ratbag Clan


#27
I updated the plugin it should now also works with addon version 1.413
Bug got fixed (i'm not sure about the rapid fire bug).
If there are any other bugs please let me know.

#28
(11-16-2012, 15:24)8q4s8 Wrote: I updated the plugin it should now also works with addon version 1.413
Bug got fixed (i'm not sure about the rapid fire bug).
If there are any other bugs please let me know.

Okay, will test it now.

keepin my fingers crossed

(11-16-2012, 15:24)8q4s8 Wrote: I updated the plugin it should now also works with addon version 1.413
Bug got fixed (i'm not sure about the rapid fire bug).
If there are any other bugs please let me know.

Tested
updated plugins and they don't work on the 1.413.

But your original plugin release did work on it. Before you put the ac130 in. it might be the ac130 giving the problem because I had different issues with it before.
the ac130 that seemed to work best was the 105mm. for some reason.
I think the toggle switch to change from 105mm t0 45mm and 25mm) was never working properly.

try pulling it out and I will test them both.
[RBC] Choobie

Ratbag Clan


#29
I think you have to use the old plugin version..
Client.Other.WeaponChangeDisabled isn't in the old addon versions I think.

#30
(11-17-2012, 02:04)8q4s8 Wrote: I think you have to use the old plugin version..
Client.Other.WeaponChangeDisabled isn't in the old addon versions I think.

Could you give me the old version again?
I deleted it by mistake
[RBC] Choobie

Ratbag Clan




Possibly Related Threads…
Thread Author Replies Views Last Post
Rainbow [Release] Plugin ReservedSlot v1.3 frst_ 1 5,033 11-08-2018, 19:17
Last Post: frst_
Tongue [Release] MW3 Shop plugin Dude 56 51,651 03-25-2018, 05:18
Last Post: [email protected]
  [Release] Permission plugin Pozzuh 202 165,279 05-01-2017, 15:41
Last Post: W4R||The Hyper
Lightbulb Preview Weapon Classe For Infected Clasic Server groochu1982 0 3,501 02-19-2017, 08:35
Last Post: groochu1982
  [Release] FIXED SPEED PLUGIN hillbilly 2 5,689 06-02-2016, 20:23
Last Post: clacki
  [Release] Bots Plugin For Users Casper 22 40,038 08-22-2015, 17:45
Last Post: SnapBacks
  [Release] God Plugin v5.0 [Ingame Rcon Tool] OzonE 464 338,850 06-27-2015, 15:38
Last Post: bluedot
  [Release] Anti Hardscope Plugin 8q4s8 26 27,807 06-20-2015, 22:44
Last Post: urj88419
  [Release] ProMod Plugin zxz0O0 875 768,311 03-25-2015, 22:02
Last Post: kris
  [Release] [Discontinued] Speed Plugin Pozzuh 164 123,124 10-06-2014, 12:56
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

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