Raised This Month: $ Target: $400
 0% 

i need help on code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 05-15-2007 , 14:25   i need help on code
Reply With Quote #1

this is what i have so far

if(CSW_KNIFE) (id,entity_set_string (id, EV_SZ_viewmodel, "v_knife_zombie.mdl")
i need it to set T team for this kinfe for my zombie mod server
like this


----------------------------------------------------------------------
if(team == CS_TEAM_T)
{
g_human[id] = false
g_zombie[id] = true
set_task(0.1, "RemovePickedWeapon", id) //Strips zombies if they do have guns
cs_set_user_model(id,"zombie_swarm")
set_user_health(id,get_pcvar_num(zomb_hp))
cs_set_user_armor(id,get_pcvar_num(zomb_ap),A rmorType)
set_user_footsteps(id, 1)
set_user_gravity(id,0.770)
set_user_maxspeed(id,(get_pcvar_float(zomb_sp eed)))
if(CSW_KNIFE) (id,entity_set_string (id, EV_SZ_viewmodel, "v_knife_zombie.mdl")
cs_set_user_money(id,0)
if (!cs_get_user_nvg(id))
{
cs_set_user_nvg(id,1)
message_begin(MSG_ONE, get_user_msgid("NVGToggle"), {0,0,0}, id)
write_byte(1)
message_end()
} else {
message_begin(MSG_ONE, get_user_msgid("NVGToggle"), {0,0,0}, id)
write_byte(1)
message_end()
}







}
else if(team == CS_TEAM_CT)
{
g_zombie[id] = false
g_human[id] = true
set_user_footsteps(id, 0)
cs_set_user_money(id, cs_get_user_money(id) + 20000)
set_user_health(id,280)
set_user_gravity(id,0.820)
cs_reset_user_model(id)


}

pls help i will love you all
mando127 is offline
Send a message via Skype™ to mando127
Xel0z
Senior Member
Join Date: Apr 2006
Location: Netherlands
Old 05-15-2007 , 15:14   Re: i need help on code
Reply With Quote #2

This is definitely not scripting help for superhero..
__________________
Heroes: TESS-One Working on: Grit (Fixing bugs)
Xel0z is offline
Send a message via MSN to Xel0z
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 05-15-2007 , 15:47   sry
Reply With Quote #3

but i do need help
mando127 is offline
Send a message via Skype™ to mando127
Drak
Veteran Member
Join Date: Jul 2005
Old 05-15-2007 , 16:06   Re: i need help on code
Reply With Quote #4

We have no idea what you want...
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-15-2007 , 16:42   Re: i need help on code
Reply With Quote #5

Quote:
Originally Posted by SixTwin View Post
We have no idea what you want...
dito
__________________
regalis is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 05-15-2007 , 18:03   Re: i need help on code
Reply With Quote #6

i need the CSW_KNIFE for cs 1.6
as a team kinfe like ct ( baseballbat.mdl ) t ( bigKinfe.mdl )
that i can replace the ct and the t kinfes
this is for my zombie server pls help
mando127 is offline
Send a message via Skype™ to mando127
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-15-2007 , 18:33   Re: i need help on code
Reply With Quote #7

Please edit your first post on top of the page.
Use [CO DE] [/CO DE] tags around your code and post more code than that...
then maybe we are able to help
If it is alot code post the .sma instead!
__________________
regalis is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 05-15-2007 , 23:53   Re: i need help on code
Reply With Quote #8

try to just change the v_knife_zombie.mdl to what you want;

Code:
if(CSW_KNIFE) (id,entity_set_string (id, EV_SZ_viewmodel, "what you want")
ur also gunna have to change the ".mdl" line in ur plugin_cfg coding too
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
Reply



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 10:30.


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