AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [xp mod] How to add Hp and Armor after a player up a level? (https://forums.alliedmods.net/showthread.php?t=20545)

kelvintse 11-11-2005 08:59

[xp mod] How to add Hp and Armor after a player up a level?
 
I'm making a XP mod
How to add max health and armor after the player up a level :?:

Charr 11-11-2005 09:15

Index is the player slot of the person, and amount is the amount to add(replace it with a number)
Code:
new health = get_user_health(index),armor = get_user_armor(index)  set_user_health(index,health + amount)  set_user_armor(index,armor + amount)

DarlD 11-12-2005 13:06

you need the fun module


All times are GMT -4. The time now is 23:44.

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