Raised This Month: $ Target: $400
 0% 

A biteing command.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Chex
Junior Member
Join Date: Jun 2006
Old 06-06-2006 , 15:50   A biteing command.
Reply With Quote #1

Code:
}     new bite[23]     set_task(1.0,"bite",id,_,_,"b")     set_user_health(id,600)     client_print(id,print_chat,"You sink you teeth in the person's neck.^n")     client_print(entid,print_chat,"You just got bit by a vampire!^n")     return PLUGIN_HANDLED } public bite(id){             new entid, entbody     get_user_aiming(id,entid,entbody,400)             set_user_health(entid,get_user_health(entid)-10)         return PLUGIN_HANDLED     }

I have a little problem with that. If I do the command /bite, any one I look at will start to lose health. How do I make it stop when the player dies? for some reason this does not work.
Code:
public bite(id){             new entid, entbody     get_user_aiming(id,entid,entbody,400)     if(get_user_health(entid) <=10){                          user_silentkill(entid)                       return PLUGIN_HANDLED }            else{        set_user_health(entid,get_user_health(entid)-10)         return PLUGIN_HANDLED     } return PLUGIN_HANDLED }
Chex is offline
 


Thread Tools
Display Modes

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:24.


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