Raised This Month: $ Target: $400
 0% 

Help edit code to return to human form on death.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
toben
Member
Join Date: Sep 2005
Old 05-18-2007 , 10:26   Help edit code to return to human form on death.
Reply With Quote #1

This is from the chicken mod plugin. I am trying to force a return to human form every time someone dies. In the death code I put in "unchicken_user(0)". Below is all death code:


/* DEATH EVENT CODE */
public death_event(id)
{
update_menu()
new vid = read_data(2)
if(UserFlags[vid])
{
set_rendering(vid, kRenderFxNone, 0, 0, 0, kRenderTransAdd, 0)
new orig[3]
get_user_origin(vid, orig)
create_gibs(vid, orig, 5, 30, 30)
unchicken_user(0)
}
}

Attached is the sma file
Attached Files
File Type: sma Get Plugin or Get Source (amx_chicken.sma - 116 views - 46.3 KB)
__________________

Last edited by toben; 05-18-2007 at 11:07. Reason: remove code add sma
toben is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-18-2007 , 10:49   Re: Help edit code to return to human form on death.
Reply With Quote #2

Please attach the sma instead, that code is to hard to read like that.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 05-19-2007 , 03:23   Re: Help edit code to return to human form on death.
Reply With Quote #3

try:
Code:
unchicken_user(vid)
__________________
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
toben
Member
Join Date: Sep 2005
Old 05-22-2007 , 10:34   Re: Help edit code to return to human form on death.
Reply With Quote #4

testing new code
Attached Files
File Type: sma Get Plugin or Get Source (amx_chicken.sma - 104 views - 46.3 KB)
__________________

Last edited by toben; 05-22-2007 at 10:37.
toben is offline
toben
Member
Join Date: Sep 2005
Old 05-29-2007 , 09:43   Re: Help edit code to return to human form on death.
Reply With Quote #5

It doesnt work. Any suggestions?
__________________
toben is offline
toben
Member
Join Date: Sep 2005
Old 08-05-2008 , 13:44   Re: Help edit code to return to human form on death.
Reply With Quote #6

OK Its a year later and I still can not figure out how to do this. Any help?
__________________
toben is offline
toben
Member
Join Date: Sep 2005
Old 08-05-2008 , 13:57   Re: Help edit code to return to human form on death.
Reply With Quote #7

lets try this:
Attached Files
File Type: sma Get Plugin or Get Source (amx_chicken.sma - 85 views - 46.3 KB)
__________________
toben is offline
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:39.


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