Raised This Month: $66 Target: $400
 16% 

Showing results 1 to 25 of 500
Search took 0.12 seconds.
Search: Posts Made By: KliPPy
Forum: Scripting Help 09-05-2019, 06:24
Replies: 12
Views: 802
Posted By KliPPy
Re: Message color

Doing random(256) is a bad solution, because if it results in {0, 0, 0}, it will be completely transparent, not black. Most colors will appear faded and unsaturated because of how RGB works. A good...
Forum: Scripting Help 09-04-2019, 05:17
Replies: 12
Views: 629
Posted By KliPPy
Re: [AMXX] Run time error 3: stack error

Those don't live on the stack and won't cause a stack error.
Forum: General 08-31-2019, 06:01
Replies: 7
Views: 1,483
Posted By KliPPy
Re: help with downloarurl

You can for example get a VPS at Hetzner for 2.5 euros; or anywhere where there is a cheap VPS. You don't need anything powerful to run a download server, but you'll need to do some setup as it's not...
Forum: Scripting Help 08-13-2019, 10:16
Replies: 8
Views: 693
Posted By KliPPy
Re: callfunc_* alternative

PLUGIN_HANDLED is just a magic number. You can check for it and act accordingly, i.e. don't continue with whatever action is taking place.




How are these different? The number of parameters...
Forum: Scripting Help 07-23-2019, 20:04
Replies: 2
Views: 395
Posted By KliPPy
Re: Calculator

Look into Shunting-yard algorithm and Postfix/Reverse Polish notation, that should help you.
Forum: Scripting Help 07-09-2019, 10:03
Replies: 15
Views: 1,052
Posted By KliPPy
Re: What is the unit of sv_gravity?

https://github.com/alliedmodders/hlsdk/blob/a0edb7792a96998d349325bebab8ea41ec5cb239/pm_shared/pm_shared.c#L739-L741
The gravity cvar is cut in half in this equation, so you could consider default...
Forum: Scripting Help 07-01-2019, 07:05
Replies: 15
Views: 1,356
Posted By KliPPy
Re: How can I check that?

What should the actual output of your code be? Then I may be able to tell you how to exactly use this thing.
Forum: Scripting Help 06-24-2019, 07:41
Replies: 15
Views: 1,356
Posted By KliPPy
Re: How can I check that?

182 / 15 is 12, it's integer division.
What you are currently doing is quite ugly.
Forum: General 06-21-2019, 16:18
Replies: 9
Views: 1,987
Posted By KliPPy
Re: There's no reason why client_disconnected forward should exist

That's actually a good point. Not sure what to do here, better wait for Arkshine to clear things up.
Forum: General 06-21-2019, 08:33
Replies: 9
Views: 1,987
Posted By KliPPy
Re: There's no reason why client_disconnected forward should exist

Yes, the naming was a mistake, but it has to exist as a separate forward.
Forum: Scripting Help 06-21-2019, 04:14
Replies: 15
Views: 1,356
Posted By KliPPy
Re: How can I check that?

In that case you just should align your current angle to an increment of 15.

new const alignedAngle = (floatround(currentAngle + 7.5) / 15) * 15;

Then you can just add or sub 15 a couple of...
Forum: General 06-19-2019, 18:45
Replies: 9
Views: 1,987
Posted By KliPPy
Re: There's no reason why client_disconnected forward should exist

I believe they are not called at exactly the same time. If the old forward was just replaced with the new one there could be some behavior changes in plugins. I.e, as Gabe said, it would break...
Forum: Off-Topic 06-17-2019, 06:44
Replies: 60
Views: 9,520
Posted By KliPPy
Re: Your favorite programming language?

You can use JavaScript anywhere today - site front-end, back-end, PC applications, mobile applications...
Forum: Off-Topic 06-06-2019, 14:48
Replies: 32
Views: 5,581
Posted By KliPPy
Re: AlliedModders logo ???

It was a matter of changing one link, the logo already existed.
We already went through this, please not this thread again https://forums.alliedmods.net/showthread.php?t=265369.
Forum: Off-Topic 06-06-2019, 05:58
Replies: 4
Views: 4,588
Posted By KliPPy
Re: Crowbar (Compile physics and reference.. numbers are wrong)

And everybody's still looking for a better description of the issue.
Forum: Off-Topic 06-05-2019, 06:24
Replies: 9
Views: 2,675
Posted By KliPPy
Re: Best Linux distribution?

Tinkering with the system? Always backup first!
Forum: Scripting Help 05-31-2019, 06:37
Replies: 7
Views: 864
Posted By KliPPy
Forum: Scripting Help 05-29-2019, 08:55
Replies: 2
Views: 722
Posted By KliPPy
Re: Hook at Damage Indicator

Damage indicators are displayed by the "Damage" message: https://wiki.alliedmods.net/Half-life_1_game_events#Damage. As you can see you can get the damage source origin from it.

Now what exactly...
Forum: Scripting 05-27-2019, 19:33
Replies: 6
Views: 769
Posted By KliPPy
Re: Call an Action function from another function

Just don't, do what Neuro Toxin said.
Forum: Off-Topic 05-24-2019, 12:23
Replies: 60
Views: 9,520
Posted By KliPPy
Re: Your favorite programming language?

Rust at the moment, but I mainly do TypeScript and JavaScript.
Forum: General 05-24-2019, 08:07
Replies: 18
Views: 2,195
Posted By KliPPy
Re: Avoid forwards (thinks, cmd)

I'm not sure if the AMXX Profiler works on 1.9.0, but if it does, try profiling all plugins and see if any function takes significant time.
IIRC there was a post that updated the profiler to at...
Forum: Scripting Help 05-21-2019, 11:59
Replies: 3
Views: 503
Posted By KliPPy
Re: Convert movedir to angles

The opposite of angle_vector() is vector_to_angle(), try that.
Forum: Scripting Help 05-21-2019, 10:16
Replies: 3
Views: 503
Posted By KliPPy
Re: Rotate movedir with another object

I'm not sure I really understand what you need, but you should be able to convert from angles to movedir (which seems to be a unit vector) with the angle_vector() function.
Forum: Scripting Help 05-21-2019, 06:06
Replies: 25
Views: 1,399
Posted By KliPPy
Re: client_disconnected() <-> plugin_end()

When does this error get thrown? At mapchange? Map start? First query? At any random point in time?
Forum: General 05-15-2019, 10:49
Replies: 2
Views: 611
Posted By KliPPy
Re: Load plugins from external source

No, you have to put a plugin into addons/amxmodx/plugins to run it. If you can somehow automatically download a plugin and put it into the said folder then I guess it could be considered as "loading...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 05:17.


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