Raised This Month: $ Target: $400
 0% 

Lifes (1.2.5 - 29.07.2013)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-27-2013 , 06:30   Lifes (1.2.5 - 29.07.2013)
Reply With Quote #1





.: Description :.

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.

.: Changelog :.
Quote:
Version 1.2.5
  • Added Multi-Language
Version 1.2.0
  • Changed name from "Deathrun Lifes" to "Lifes".
  • Updated Description.
  • Added CVar lifes_condition
  • Renamed Natives
  • Optimized Plugin.
Version 1.1.0
  • Added SQL Support
Attached Files
File Type: inc kia_lifes.inc (260 Bytes, 397 views)
File Type: sma Get Plugin or Get Source (lifes.sma - 1241 views - 10.1 KB)
File Type: txt kialifes.txt (738 Bytes, 410 views)
__________________

Last edited by Kia; 07-29-2013 at 03:54.
Kia 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 00:08.


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