Raised This Month: $51 Target: $400
 12% 

[request] Jailbreak CT Heal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tonkata245
Member
Join Date: Aug 2020
Location: Mars
Old 01-23-2022 , 12:09   [request] Jailbreak CT Heal
Reply With Quote #1

Hi, can anyone make the following plugin
Let's add blood to the guards : To go from 100hp to 150hp


used mod
https://www.amxx-bg.info/forum/viewt...hp?f=96&t=2420

Last edited by tonkata245; 01-23-2022 at 12:10.
tonkata245 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 01-23-2022 , 14:31   Re: [request] Jailbreak CT Heal
Reply With Quote #2

Blood

Code:
#include <amxmodx> #include <cstrike> #include <fun> #include <hamsandwich> const EXTRA_BLOOD = 50 public plugin_init() {     register_plugin("Bloody guards", "1.0", "OciXCrom")     RegisterHam(Ham_Spawn, "player", "OnPlayerSpawn", 1) } public OnPlayerSpawn(id) {     if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)     {         set_user_health(id, get_user_health(id) + EXTRA_BLOOD)     } }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
tonkata245
Member
Join Date: Aug 2020
Location: Mars
Old 01-23-2022 , 16:01   Re: [request] Jailbreak CT Heal
Reply With Quote #3

Thanks you I will check it tomorrow
tonkata245 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-23-2022 , 23:27   Re: [request] Jailbreak CT Heal
Reply With Quote #4

Also you can set player max health using fakemeta, this way the player can heal himself back to his Maximum health.

PHP Code:
set_pev(idpev_max_health150.0); 
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 01-23-2022 at 23:28.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
tonkata245
Member
Join Date: Aug 2020
Location: Mars
Old 01-24-2022 , 01:18   Re: [request] Jailbreak CT Heal
Reply With Quote #5

This plugin works perfectly

You can lock
tonkata245 is offline
Reply



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 06:28.


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