Raised This Month: $ Target: $400
 0% 

Chicken fight pluigin or mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-07-2022 , 00:14   Re: Chicken fight pluigin or mod
Reply With Quote #10

You must always check if the user is alive in a Ham_Spawn (post) hook (Ravi81, you did this part correctly, lexzor did not). However, you need to send a value to the command that the command can actually use. In this case, since the c_chicken command uses cm_target(), you can use the most convenient method by using their userid. To use a userid, you need to precede the userid value with the # symbol when passing it to functions that utilize cmd_target().

Simply place the following in your is_user_alive() check:

PHP Code:
server_cmd("c_chicken #%d"get_user_userid(iPlayer)) 
__________________

Last edited by fysiks; 06-07-2022 at 00:15.
fysiks 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 21:20.


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