Raised This Month: $10 Target: $400
 2% 

[Any] Set Start Health


Post New Thread Reply   
 
Thread Tools Display Modes
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-07-2017 , 00:00   Re: [Any] Set Start Health
Reply With Quote #21

Quote:
Originally Posted by Starkiller View Post
Hello, is this possible for armor?
https://forums.alliedmods.net/showthread.php?p=960277 ?
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
3Dyy
Member
Join Date: Jun 2017
Location: Germany
Old 07-12-2017 , 15:05   Re: [Any] Set Start Health
Reply With Quote #22

i am beginner in scripting ,can you help me? Can you make this only ct vip.
3Dyy is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-12-2017 , 16:47   Re: [Any] Set Start Health
Reply With Quote #23

Quote:
Originally Posted by 3Dyy View Post
i am beginner in scripting ,can you help me? Can you make this only ct vip.
Just use https://sm.alliedmods.net/new-api/co...kCommandAccess with your vip flag/access.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
3Dyy
Member
Join Date: Jun 2017
Location: Germany
Old 07-12-2017 , 18:52   Re: [Any] Set Start Health
Reply With Quote #24

Yes man this is the problem how can I do this and where?sorry I am lvl -1 in scripting
Code:
bool CheckCommandAccess(int client, const char[] command, int flags, bool override_only)

Last edited by 3Dyy; 07-12-2017 at 18:52.
3Dyy is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-13-2017 , 02:14   Re: [Any] Set Start Health
Reply With Quote #25

Quote:
Originally Posted by 3Dyy View Post
Yes man this is the problem how can I do this and where?sorry I am lvl -1 in scripting
Code:
bool CheckCommandAccess(int client, const char[] command, int flags, bool override_only)
I recommend https://wiki.alliedmods.net/Introduc...rcemod_plugins and any coding tutorial.

Similar requests have been done in the past in various plugins, you could search for CheckCommandAccess in the forum.

As I said in the past in some of my plugins, I won't add a VIP flag publicly. The same apply for this plugin.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 07-13-2017 at 02:16.
RedSword is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 07-13-2017 , 06:33   Re: [Any] Set Start Health
Reply With Quote #26

Is it possible to use this during specific warmup rounds?
I'm using the weapon restrict plugin which allows to set custom weapon warmup rounds, and I'd like this plugin to set players health to 1 HP only during warmup, and only if the decoy round is triggered (for any other weapon, the starting health should stay at 100 HP)
Any chance I can do that with this plugin?
__________________
Obyboby is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-13-2017 , 12:02   Re: [Any] Set Start Health
Reply With Quote #27

Quote:
Originally Posted by Obyboby View Post
Is it possible to use this during specific warmup rounds?
I'm using the weapon restrict plugin which allows to set custom weapon warmup rounds, and I'd like this plugin to set players health to 1 HP only during warmup, and only if the decoy round is triggered (for any other weapon, the starting health should stay at 100 HP)
Any chance I can do that with this plugin?
Not really. You'd need to modify it.

During warmup it is possible using GameRules_GetProp("m_bWarmupPeriod") in CSGO.

The "decoy round" comes from the other plugin right ? Dr!fter's one ? Ideally one would use inter-plugin communication; but you could probably be fine with a timer after a player spawn & checking the gun the player has. How does the gun randomization works ? Is it always knife + one random gun ? Given right on spawn ?

I won't modify this plugin publicly as what you're asking is very specific, but I'll post an attempt.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 07-14-2017 , 04:02   Re: [Any] Set Start Health
Reply With Quote #28

Quote:
Originally Posted by RedSword View Post
[...] but I'll post an attempt.
There you go. You still need to set starthealth_value though. Should set health only with a decoy & warmup enabled. Please tell if it works.

Red
Attached Files
File Type: sp Get Plugin or Get Source (setstarthealth_CSGODecoyWarmup.sp - 240 views - 3.2 KB)
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 07-14-2017 , 04:50   Re: [Any] Set Start Health
Reply With Quote #29

Quote:
Originally Posted by RedSword View Post
There you go. You still need to set starthealth_value though. Should set health only with a decoy & warmup enabled. Please tell if it works.

Red
Thanks for that buddy!! ^^
I will try it asap, hopfully during the weekend.
__________________
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 07-25-2017 , 18:36   Re: [Any] Set Start Health
Reply With Quote #30

Quote:
Originally Posted by RedSword View Post
There you go. You still need to set starthealth_value though. Should set health only with a decoy & warmup enabled. Please tell if it works.

Red
Still had no chance to try this :C
But I realized that the warmup weapons are chosen randomly and I don't think I have the chance to check whether or not the decoy weapon is a decoy.
SO I would either have to set HP to 1 for every round (even non-decoy warmups) or give up and not use this :C
__________________
Obyboby is offline
Reply


Thread Tools
Display Modes

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 11:42.


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