Raised This Month: $ Target: $400
 0% 

zombie Infection code help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 09-30-2012 , 05:18   zombie Infection code help
Reply With Quote #1

i want to know in zombie_plague.sma , zombie Infection human how to write..
like "user_kill, set_team_T , turn it to zombie" or "not user_kill but set_team_T and turn to zombie"?

thank you
manfailui is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 09-30-2012 , 05:50   Re: zombie Infection code help
Reply With Quote #2

PHP Code:
/**
 * Forces a player to become a zombie.
 *
 * Note: Unavailable for last human/survivor.
 *
 * @param id        Player index to be infected.
 * @param infector    Player index who infected him (optional).
 * @param silent    If set, there will be no HUD messages or infection sounds.
 * @param rewards    Whether to show DeathMsg and reward frags, hp, and ammo packs to infector.
 * @return        True on success, false otherwise.
 */
native zp_infect_user(idinfector 0silent 0rewards 0
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
manfailui
Member
Join Date: Jun 2012
Location: Hong Kong
Old 09-30-2012 , 05:59   Re: zombie Infection code help
Reply With Quote #3

Quote:
Originally Posted by Bos93 View Post
PHP Code:
/**
 * Forces a player to become a zombie.
 *
 * Note: Unavailable for last human/survivor.
 *
 * @param id        Player index to be infected.
 * @param infector    Player index who infected him (optional).
 * @param silent    If set, there will be no HUD messages or infection sounds.
 * @param rewards    Whether to show DeathMsg and reward frags, hp, and ammo packs to infector.
 * @return        True on success, false otherwise.
 */
native zp_infect_user(idinfector 0silent 0rewards 0
thank very much
manfailui is offline
Reply


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 08:13.


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