[INS] Guns Menu - modifacation
Hello guys!
I have this plugin for Insurgency, and i want to make different weapon modifications, for example: suppressor to M249 or armor-piercing bullets, or optic. Please show the sample code, help me pls Code:
#pragma semicolon 1 |
Re: [INS] Guns Menu - modifacation
I don't know anything about your game but it is a bad idea to set sv_cheats, tell me if this method works because it's undeniably safer, though maybe your source game doesn't make sv_cheats important, it is game-breaking when changed in L4D2.
SetConVarBool(FindConVar("sv_cheats"), true, false); ------> new flags = GetCommandFlags("give_weapon"); SetCommandFlags("give_weapon", flags & ~FCVAR_CHEAT); Also, SetConVarBool(FindConVar("sv_cheats"), false, false); -----> SetCommandFlags("give_weapon", flags); |
Re: [INS] Guns Menu - modifacation
Menu show, but weapons not give
Code:
#pragma semicolon 1 |
Re: [INS] Guns Menu - modifacation
Quote:
|
Re: [INS] Guns Menu - modifacation
BassPower - same, shows menu, but weapons not give
But I want to make different weapon modifications, for example: suppressor to M249 or armor-piercing bullets, or optic. http://i99.fastpic.ru/thumb/2018/021...e762c7f50.jpeg give_weapon m16a4+optic+armor bullet+and other... How do this ? |
Re: [INS] Guns Menu - modifacation
I did this, but no weapon mods are given
Quote:
|
Re: [INS] Guns Menu - modifacation
Quote:
Code:
#include <sourcemod> |
Re: [INS] Guns Menu - modifacation
1 Attachment(s)
dr_lex no, it does not work!
I made a dump netprops.txt and datamaps.txt I did through the function GivePlayerItem and it works ,but there is still weapon kits doesn't work Code:
#pragma semicolon 1 Code:
case 3: |
Re: [INS] Guns Menu - modifacation
Quote:
Your code has errors! (Ваш код имеет ошибки!) |
Re: [INS] Guns Menu - modifacation
Quote:
Any ideas ? |
All times are GMT -4. The time now is 17:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.