Raised This Month: $ Target: $400
 0% 

zombie.mdl and i get gign


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shino
Senior Member
Join Date: May 2006
Old 05-18-2006 , 16:08   zombie.mdl and i get gign
Reply With Quote #1

in my plugin, i want bots to be zombies. i get to this:

Code:
public round_start() {     set_task(1.0,"SetBotToZombie") } public plugin_precache(){     precache_model("models/player/zombie/zombie.mdl") } public SetBotToZombie() {     new players[32],num,i     get_players(players,num)     for(i = 0; i <= num; i++) {         new id = players[i]         if(!get_cvar_num("amx_zombiebot")) {             return PLUGIN_HANDLED         }         if(is_user_bot(id) && is_user_alive(id)) {             set_user_health(id,get_cvar_num("amx_zombiebot_health"))             set_user_maxspeed(id,get_cvar_num("amx_zombiebot_speed"))             cs_set_user_model(id,"models/player/zombie/zombie.mdl")         }     }     return PLUGIN_CONTINUE }

i then compile the sma file, put the amxx file into plugins... shortly, everything is working as is shoud be.

then i go into the game, i wait a second, and bots reappear as normal, in gign model... after i kill one, it turnes to zombie from zombie.mdl and just stands at the place of kill. so, i have a problem... so, i beg you, if anyone could help me with this, so zombies would appear at first, not when i kill a bot.

shino is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 05-18-2006 , 16:17   Re: zombie.mdl and i get gign
Reply With Quote #2

Quote:
Originally Posted by shino
cs_set_user_model(id,"models/player/zombie/zombie.mdl")
has to be
Code:
cs_set_user_model(id,"zombie")
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 05-18-2006 , 16:17  
Reply With Quote #3

Code:
cs_set_user_model(id,"models/player/zombie/zombie.mdl")
Code:
cs_set_user_model(id,"zombie")
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
Bo0m!
Veteran Member
Join Date: Mar 2006
Location: New Jersey
Old 05-18-2006 , 16:18  
Reply With Quote #4

Gah, beat me to it by seconds P34nut.
__________________
Bo0m! is offline
Send a message via AIM to Bo0m! Send a message via MSN to Bo0m! Send a message via Yahoo to Bo0m!
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 05-18-2006 , 16:19  
Reply With Quote #5

hehehe
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
shino
Senior Member
Join Date: May 2006
Old 05-24-2006 , 15:47  
Reply With Quote #6

what if i use models from DoD?

Code:
public plugin_precache() {     precache_model("models/IIWW/axis-inf.mdl") } public round_start(players[]) {     new players[32],num,i     get_players(players,num)     for(i = 0; i <= num; i++) {         new id = players[i]         if (is_user_alive(id)) {             cs_set_user_model(id,"axis-inf")         }     } }

it turns to damn gign again
shino is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-24-2006 , 15:49  
Reply With Quote #7

It has to be in models/players in order to work properly.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-24-2006 , 15:50  
Reply With Quote #8

Put it and precache it in this dir..

models/player/axis-inf.mdl


Then precache it the same as the other 1.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-24-2006 , 15:51  
Reply With Quote #9

Gah...beat me 2 it...


I was typing it all out
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-24-2006 , 15:57  
Reply With Quote #10

Quote:
Originally Posted by SweatyBanana
Gah...beat me 2 it...


I was typing it all out
You can always delete your post next time. If you're the last one to post, you can hit the X next to edit and quote.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 16:26.


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