Raised This Month: $32 Target: $400
 8% 

[CSS/CS:GO] Weapon Restrict


Post New Thread Reply   
 
Thread Tools Display Modes
m22b
Senior Member
Join Date: Jul 2013
Old 03-19-2015 , 05:13   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1711

3.1.6

Code:
L 03/19/2015 - 09:03:29: SourceMod error session started
L 03/19/2015 - 09:03:29: Info (map "de_nuke") (file "errors_20150319.log")
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "PrintToChat" reported: Translation failed: invalid client index 7370593
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 99, restrictinc/natives.sp::Native_RefundMoney()
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "Restrict_RefundMoney" reported: Error encountered while processing a dynamic native
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 237, restrictinc/natives.sp::Native_RemoveRandom()
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "Restrict_RemoveRandom" reported: Error encountered while processing a dynamic native
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 712, restrictinc/natives.sp::Native_CheckPlayerWeapons()
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "Restrict_CheckPlayerWeapons" reported: Error encountered while processing a dynamic native
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 159, restrictinc/events.sp::EventRoundStart()
L 03/19/2015 - 09:18:56: Error log file session closed.

Last edited by m22b; 03-19-2015 at 05:14.
m22b is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 03-19-2015 , 11:58   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1712

Quote:
Originally Posted by m22b View Post
3.1.6

Code:
L 03/19/2015 - 09:03:29: SourceMod error session started
L 03/19/2015 - 09:03:29: Info (map "de_nuke") (file "errors_20150319.log")
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "PrintToChat" reported: Translation failed: invalid client index 7370593
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 99, restrictinc/natives.sp::Native_RefundMoney()
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "Restrict_RefundMoney" reported: Error encountered while processing a dynamic native
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 237, restrictinc/natives.sp::Native_RemoveRandom()
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "Restrict_RemoveRandom" reported: Error encountered while processing a dynamic native
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 712, restrictinc/natives.sp::Native_CheckPlayerWeapons()
L 03/19/2015 - 09:03:29: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 03/19/2015 - 09:03:29: [SM] Native "Restrict_CheckPlayerWeapons" reported: Error encountered while processing a dynamic native
L 03/19/2015 - 09:03:29: [SM] Displaying call stack trace for plugin "weapon_restrict.smx":
L 03/19/2015 - 09:03:29: [SM]   [0]  Line 159, restrictinc/events.sp::EventRoundStart()
L 03/19/2015 - 09:18:56: Error log file session closed.
Can you post all the weapon restrict related translation files you have.
Dr!fter is offline
ocidius
Senior Member
Join Date: Oct 2014
Old 03-19-2015 , 14:16   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1713

is it possible to restrict just one player ?
ocidius is offline
parthi
Senior Member
Join Date: Mar 2015
Old 03-20-2015 , 09:19   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1714

can u update ur plugin in order to change text and color please ?

Last edited by parthi; 03-20-2015 at 18:40.
parthi is offline
m22b
Senior Member
Join Date: Jul 2013
Old 03-21-2015 , 07:09   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1715

Quote:
Originally Posted by Dr!fter View Post
Can you post all the weapon restrict related translation files you have.
WeaponRestrict.phrases.txt

Code:
"Phrases"
{
	"deagle"
	{
		"en"		"Desert Eagle"
	}
	"glock"
	{
		"en"		"Glock"
	}
	"usp"
	{
		"en"		"USP"
	}
	"p228"
	{
		"en"		"P228"
	}
	"elite"
	{
		"en"		"Dual Elites"
	}
	"fiveseven"
	{
		"en"		"Five Seven"
	}
	"m4a1"
	{
		"en"		"M4A1"
	}
	"ak47"
	{
		"en"		"AK47"
	}
	"aug"
	{
		"en"		"AUG"
	}
	"sg552"
	{
		"en"		"SG552"
	}
	"galil"
	{
		"en"		"Galil"
	}
	"famas"
	{
		"en"		"Famas"
	}
	"scout"
	{
		"en"		"Scout"
	}
	"sg550"
	{
		"en"		"SG550"
	}
	"m249"
	{
		"en"		"M249"
	}
	"g3sg1"
	{
		"en"		"G3SG1"
	}
	"ump45"
	{
		"en"		"UMP 45"
	}
	"mp5navy"
	{
		"en"		"MP5 Navy"
	}
	"m3"
	{
		"en"		"M3"
	}
	"xm1014"
	{
		"en"		"XM1014"
	}
	"tmp"
	{
		"en"		"TMP"
	}
	"mac10"
	{
		"en"		"Mac 10"
	}
	"p90"
	{
		"en"		"P90"
	}
	"awp"
	{
		"en"		"AWP"
	}
	"smokegrenade"
	{
		"en"		"Smoke Grenade"
	}
	"hegrenade"
	{
		"en"		"HE Grenade"
	}
	"flashbang"
	{
		"en"		"Flashbang"
	}
	"c4"
	{
		"en"		"C4"
	}
	"defuser"
	{
		"en"		"Defuser"
	}
	"knife"
	{
		"en"		"Knife"
	}
	"vest"
	{
		"en"		"Kevlar"
	}
	"vesthelm"
	{
		"en"		"Vest and Helmet"
	}
	"nvgs"
	{
		"en"		"Nightvision"
	}
	"galilar"
	{
		"en"		"Galil AR"
	}
	"bizon"
	{
		"en"		"Bizon"
	}
	"mag7"
	{
		"en"		"Mag7"
	}
	"negev"
	{
		"en"		"Negev"
	}
	"sawedoff"
	{
		"en"		"Sawedoff Shotgun"
	}
	"tec9"
	{
		"en"		"Tec-9"
	}
	"taser"
	{
		"en"		"Taser"
	}
	"hkp2000"
	{
		"en"		"HKP2000"
	}
	"mp7"
	{
		"en"		"MP7"
	}
	"mp9"
	{
		"en"		"MP9"
	}
	"nova"
	{
		"en"		"Nova Shotgun"
	}
	"p250"
	{
		"en"		"P250"
	}
	"scar17"
	{
		"en"		"Scar 17"
	}
	"scar20"
	{
		"en"		"Scar 20"
	}
	"sg556"
	{
		"en"		"SG556"
	}
	"ssg08"
	{
		"en"		"SSG08"
	}
	"knifegg"
	{
		"en"		"Gungame Knife"
	}
	"molotov"
	{
		"en"		"Molotov"
	}
	"decoy"
	{
		"en"		"Decoy Grenade"
	}
	"incgrenade"
	{
		"en"		"Incendiary Grenade"
	}
	"pistols"
	{
		"en"		"Pistols"
	}
	"smgs"
	{
		"en"		"Submachine Guns"
	}	
	"shotguns"
	{
		"en"		"Shotguns"
	}	
	"rifles"
	{
		"en"		"Rifles"
	}	
	"snipers"
	{
		"en"		"Snipers"
	}	
	"grenades"
	{
		"en"		"Grenades"
	}
	"armor"
	{
		"en"		"All Armor"
	}
	"AllWeapons"
	{
		"en"		"All Weapons"
	}
	"IsRestrictedBuyT"
	{
		"#format"	"{1:i}"
		"en"		"is currently restricted to {1} for Terrorists and cannot be bought."	
		"ru"		"Ограничено до {1} для Террористов и не может быть куплено."	
	}
	"IsRestrictedBuyCT"
	{
		"#format"	"{1:i}"
		"en"		"is currently restricted to {1} for Counter-Terrorists and cannot be bought."	
		"ru"		"Ограничено до {1} для Спецназа и не может быть куплено."
	}
	"IsRestrictedPickupT"
	{
		"#format"	"{1:i}"
		"en"		"is currently restricted to {1} for Terrorists and cannot be picked up."	
		"ru"		"Ограничено до {1} для Террористов и не может быть подобрано."	
	}
	"IsRestrictedPickupCT"
	{
		"#format"	"{1:i}"
		"en"		"is currently restricted to {1} for Counter-Terrorists and cannot be picked up."
		"ru"		"Ограничено до {1} для Спецназа и не может быть подобрано."
	}
	"WarmupCountdown"
	{
		"#format"	"{1:i}"
		"en"		"Warm up round {1} seconds left"
	}
	"CannotBuyWarmup"
	{
		"en"		"You cannot buy anything during warm up round."
	}
	"Refunded"
	{
		"#format"	"{1:i}"
		"en"		"You have been refunded ${1} for"
	}
	"RemovedRestricted"
	{
		"en"		"Removed all restricted items."
	}
	"RestrictedAll"
	{
		"en"		"Restricted all weapons."
	}
	"UnrestrictedAll"
	{
		"en"		"Unrestricted all weapons."
	}
	"InvalidWeapon"
	{
		"en"		"Weapon/group is invalid."
	}
	"RestrictedCmd"
	{
		"en"		"Restricted"
	}
	"UnrestrictedCmd"
	{
		"en"		"Unrestricted"
	}
	"ForCT"
	{
		"en"		"for Counter-Terrorists."
	}
	"ForT"
	{
		"en"		"for Terrorists."
	}
	"ToAmount"
	{
		"#format"	"{1:i}"
		"en"		"to {1}"
	}
	"RestrictReply"
	{
		"en"		"sm_restrict <weapon|all|group> <amount> <both|ct|t>"
	}
	"InvalidAmount"
	{
		"en"		"Invalid amount."
	}
	"InvalidTeam"
	{
		"en"		"Invalid team."
	}
	"UnrestrictReply"
	{
		"en"		"sm_unrestrict <weapon|all|group> <both|ct|t>"
	}
	"ForcedBombDrop"
	{
		"en"		"Forced the bomb to be dropped."
	}
	"NoOneHasBomb"
	{
		"en"		"No one has the bomb."
	}
	"SpecialRoundAlreadySet"
	{
		"en"		"Special round has already been set for next round."
	}
	"ReloadedRestricitions"
	{
		"en"		"Reloaded weapon restrictions."
	}
	"PistolRoundSetup"
	{
		"en"		"Setup a pistol only round next round."
	}
	"KnivesRoundSetup"
	{
		"en"		"Setup a knife only round next round."
	}
	"RestrictMenuMainTitle"
	{
		"en"		"Weapon Restrict"
	}
	"RestrictMenuMainOption"
	{
		"en"		"Weapon Restrict Commands"
	}
	"RestrictWeaponsOption"
	{
		"en"		"Restrict Weapons"
	}
	"UnrestrictWeaponsOption"
	{
		"en"		"Unrestrict Weapons"
	}
	"ForceBombDropOption"
	{
		"en"		"Force Bomb Drop"
	}
	"SetupKnivesOption"
	{
		"en"		"Setup Knives Round"
	}
	"SetupPistolsOption"
	{
		"en"		"Setup Pistols Round"
	}
	"RestrictionTypeMenuTitle"
	{
		"en"		"Select Type"
	}
	"TypeWeaponRestrict"
	{
		"en"		"By Weapon"
	}
	"TypeGroupRestrict"
	{
		"en"		"By Group"
	}
	"RestrictMenuTitle"
	{
		"en"		"Select Item To Restrict"
	}
	"UnrestrictMenuTitle"
	{
		"en"		"Select Item To Unrestrict"
	}
	"AmountMenuTitle"
	{
		"en"		"Select Amount"
	}
	"SelectTeamMenuTitle"
	{
		"en"		"Select Team"
	}
	"CounterTerrorists"
	{
		"en"		"Counter-Terrorists"
	}
	"Terrorists"
	{
		"en"		"Terrorists"
	}
	"Allteams"
	{
		"en"		"Both Teams"
	}
	"SpecialNotAllowed"
	{
		"en"		"is not allowed during this special round."
	}
}
m22b is offline
parthi
Senior Member
Join Date: Mar 2015
Old 03-29-2015 , 10:06   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1716

i have some weapons rectrict, can i put immunity for just 1 or 2 weapons ? How pls
parthi is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 03-29-2015 , 18:28   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1717

Quote:
Originally Posted by parthi View Post
i have some weapons rectrict, can i put immunity for just 1 or 2 weapons ? How pls
Create another plugin to handle it.
Dr!fter is offline
parthi
Senior Member
Join Date: Mar 2015
Old 03-31-2015 , 10:44   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1718

Quote:
Originally Posted by Dr!fter View Post
Create another plugin to handle it.
How ??
parthi is offline
Takaraisio
New Member
Join Date: Apr 2015
Old 04-13-2015 , 03:15   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1719

Hello all! I tried to find answer from before posts, but couldn't found it.

So here's my question: How to disable this mod to affect warmup.

So the thing is, I wan't warmup to be "normal". Like you can buy weapons and armors.

Thank you!
Takaraisio is offline
ownage13
AlliedModders Donor
Join Date: Apr 2015
Old 04-22-2015 , 05:56   Re: [CSS/CS:GO] Weapon Restrict
Reply With Quote #1720

I have been going through all the sp's, txts and cfg files and cant seem to figure out how i would enable an awp only round or sniper only round. i love the pistols only and the knife only but is there a way to make a snipers only round with this plugin? or would i have to manually add a ton of code and recompile the plugin? any help would be super awesome! runs without errors just wish to know if a sniper or awp only round is possible?

Last edited by ownage13; 04-22-2015 at 05:58.
ownage13 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode