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.