Lifes is a simple plugin where players can collect lifes by killing players or winning a round.
Those lifes can be used to respawn when you died in a round.
The Plugin also has two natives to make to compatible with other plugins.
.: Requirements :.
A Steam Server
(Optional) SQL Database
.: Defines :.
PHP Code:
// Uncomment this line to use SQL instead of Vault
//#define USE_SQL
#define PREFIX "[Lifes]"
.: Commands :.
say /life - Shows a colored message in the chat with the amount of lifes you have.
say /lifes - Shows a colored message in the chat with the amount of lifes you have.
.: CVars :.
lifes_minplayer (Default : 2) - Amount of players required to open up the revive menu when dying.
lifes_condition (Default : 1) - Condition when a player gets a life.
lifes_condition 1 : When a player kills another player.
lifes_condition 2 : When the team wins, but only alive players get a life.
lifes_condition 3 : When the team wins, but here everybody in the team gets a life.
.: Natives :.
get_user_lifes(index) - Returns an integer with the amount of lifes a player has.
set_user_lifes(index, value) - Sets <value> as the new amount of lifes a player has.