Raised This Month: $ Target: $400
 0% 

CurWeapon Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Str4x3D1x
Member
Join Date: Feb 2014
Old 04-19-2017 , 08:25   CurWeapon Problem
Reply With Quote #1

Hello!

I have knife mod, and when changing model the really next round it will return model to default.

My problem is that i have knives_free, knives_VIP, knives_admin, knives_tron and knives_zixon in my code.

Each one of them have certain amount of knife models. So if i set under CurWeapon
knives_free then other (knives_admin and other) will still be bugged. I have no idea how to make them all under CurWeapon... :s
Help ?

If you haven't understand, here is more explained example:

knives_free
knives_VIP
knives_admin
knives_tron
knives_zixon

PHP Code:
new const knives_free[][]
{
"Knife 1"//Example ofc
"Knife 2"
}
new const 
knives_VIP[][]
{
"Knife Vip 1",
"Knife Vip 2"
}
new const 
knives_admin[][]
{
"Knife Admin 1",
"Knife Admin 2"
}
new const 
knives_tron[][]
{
"Knife Tron 1",
"Knife Tron 2"
}
new const 
knives_zixon[][]
{
"Knife Zixon 1",
"Knife Zixon 2"

Adding this to plugin_init
PHP Code:
register_event("CurWeapon""CurWeapon""be""1=1")
And 
this after

public CurWeapon(id)
{
if!(
is_user_alive(id))
{
return 
PLUGIN_CONTINUE
}
else
{
new 
weapon read_data (2)
switch(
weapon)
{
case 
CSW_KNIFE:
Set_Model//Now this is the problem, i can put only knives_free here, or any other but it makes other knives_zixon and all the others unavailable for CurWeapon and only knives_free (or what i put to curweapon) will work...This is what is my problem, anyone?
}
}
return 
PLUGIN_CONTINUE

Made new thread as someone told me to.

Last edited by Str4x3D1x; 04-19-2017 at 08:26. Reason: CP much :/
Str4x3D1x is offline
 



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 17:51.


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