Code:
/*
* Makes Peaple invul after spawn for short time
* Set inulnerability time with the cvar mp_spawninvulnerabletime
* Set inulnerability mode with the cvar mp_spawninvulnerablemode (0 = off / 1 = co only / 2 = ns only / 3 = ns + co (default ns + co))
* Defaults is 3.0 seconds
*
* by Cheesy Peteza
*
* ported to Amx Mod X by White Panther (v1.1)
* added:
* - support for MvM and AvA
* - cvar "mp_spawninvulnerablemode" (0 = off / 1 = co only / 2 = ns only / 3 = ns + co) (default ns + co)
* fixed:
* - exploit for infinite godmode
* - little error and MvM + AvA
* - some colors bugs
* changes:
* - system of getting the team
* (increased version number therefore)
*
* v1.2:
* - fixed:
* - problems with colors (again)
* - changed:
* - the way of checking if a player spawned
*
* v1.2.2:
* - changed:
* - fun module not needed anymore
*
* v1.2.3:
* - fixed:
* - runtime error
* - changed:
* - minor code tweaks
*
* v1.2.4:
* - changed:
* - code improvements
*
* v1.2.5:
* - fixed:
* - wierd runtime error
*/
#include <amxmodx>
#include <engine>
#include <ns>
NOTICE:
since v1.2 Engine Module is used instead of Fakemeta
Spawninvul (download here)