AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   zombie Infection code help (https://forums.alliedmods.net/showthread.php?t=197216)

manfailui 09-30-2012 05:18

zombie Infection code help
 
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

Bos93 09-30-2012 05:50

Re: zombie Infection code help
 
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


manfailui 09-30-2012 05:59

Re: zombie Infection code help
 
Quote:

Originally Posted by Bos93 (Post 1809531)
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:3:3


All times are GMT -4. The time now is 08:13.

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