Raised This Month: $ Target: $400
 0% 

Help edit code to return to human form on death.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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