Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 21 of 21
Search took 0.01 seconds.
Search: Posts Made By: chickez
Forum: Scripting Help 03-01-2021, 07:20
Replies: 2
Views: 443
Posted By chickez
Re: Round

https://forums.alliedmods.net/showthread.php?t=156574
Forum: Scripting Help 02-11-2021, 03:50
Replies: 3
Views: 449
Posted By chickez
Re: Compiling error

condition ? YES : NO //good
condition ? YES ? YES2 : NO : NO2 //bad

//------
//better for you to use
if ( condition )
YES
else
NO
You have lot of to learn.
Forum: Scripting Help 02-08-2021, 09:52
Replies: 7
Views: 1,146
Posted By chickez
Re: +strafe (strafe modifier)

Thank you. Yes, i know the reason ;).
I think, all what i wanted to know is here written.

Thanks for support. Solved.
Forum: Scripting Help 02-06-2021, 10:56
Replies: 7
Views: 1,146
Posted By chickez
Re: +strafe (strafe modifier)

Good idea. I will try it.
Forum: Scripting Help 02-05-2021, 18:41
Replies: 7
Views: 1,146
Posted By chickez
Re: +strafe (strafe modifier)

It's what I wrote.

If sidemove or forwardmove != maxspeed - should be obvious strafehelper. Lot of strafehelpers have more sidemove / forwardmove than maxspeed. But strafe modifier change the...
Forum: Scripting Help 02-05-2021, 11:29
Replies: 7
Views: 1,146
Posted By chickez
Re: +strafe (strafe modifier)

Yes, it change forwardmove and sidemove. It's if i'm holding A ( IN_MOVELEFT ), sidemove is value of maxspeed. In example, maxspeed is 250.0 , so IN_MOVELEFT is 250.0 ( but first frame is 200.0 , i'm...
Forum: Scripting Help 02-05-2021, 04:16
Replies: 7
Views: 1,146
Posted By chickez
+strafe (strafe modifier)

Hi, I want to check, if user is using strafe modifier.

I tried to hook +strafe / -strafe command, to detect if the player is using strafe modifier.
#include <amxmodx>
#include <amxmisc>

new...
Forum: Scripting Help 07-13-2020, 08:27
Replies: 5
Views: 706
Posted By chickez
Re: Disable Huds From Plugins

Oh, I see.
Thank you for explanation.
Forum: Scripting Help 07-13-2020, 03:49
Replies: 5
Views: 706
Posted By chickez
Re: Disable Huds From Plugins

// Toggle Showing Hud Message On / Off
public cmdToggleHud( id ) {
g_bToggleHud[ id ] = !g_bToggleHud[ id ];
return PLUGIN_HANDLED;
}

It will set bool to false one time. When player...
Forum: Scripting Help 07-05-2020, 10:55
Replies: 6
Views: 812
Posted By chickez
Re: Math and get integer from clcmd "say"

Okey, I was coding all day long.

I did it, i think.

#include <amxmodx>

#define PLUGIN "math"
#define VERSION "0.1"
#define AUTHOR "chick"
Forum: Scripting Help 07-05-2020, 06:32
Replies: 6
Views: 812
Posted By chickez
Re: Math and get integer from clcmd "say"

Okey, i think, i know how to use read_argv(). So str_to_num doesn't know, if i'm right.

What about equali? It is for compare two strings. So I must use num_to_str for equali?

I tried this:...
Forum: Scripting Help 07-05-2020, 03:58
Replies: 6
Views: 812
Posted By chickez
Re: Math and get integer from clcmd "say"

I changed code a little.

#include <amxmodx>

#define PLUGIN "Math Examples"
#define VERSION "0.1"
#define AUTHOR "chick"


public plugin_init ( )
Forum: Scripting Help 07-03-2020, 12:07
Replies: 6
Views: 812
Posted By chickez
Math and and hook "say"

Hey.

I was looking for plugin, which is - math examples, and who first write right sum *do something*.
But I didn't find.

Code:
#include <amxmodx>

#define PLUGIN "Math Examples"
#define...
Forum: Scripting Help 07-02-2020, 08:15
Replies: 22
Views: 1,753
Posted By chickez
Re: set_lights in cvar

Thank you.

Thanks all to help and explanation. I have all what I want to know.
Forum: Scripting Help 07-02-2020, 06:09
Replies: 22
Views: 1,753
Posted By chickez
Re: set_lights in cvar

Sorry, my fault. I skipped that, don't know how :cry: .



The best way is, when cvar is changed, then call the func. As you see, I did it with set_task, but I don't know, if set_task will slow...
Forum: Scripting Help 06-30-2020, 17:04
Replies: 0
Views: 555
Posted By chickez
Create entity func_button on aim end

Hey.

I read about create entity. So I didn't figure it out, how to create func_button where I'm aiming.
I'm mapper, so I know, how entities in maps work. But I want to create via a client command...
Forum: Scripting Help 06-30-2020, 10:23
Replies: 22
Views: 1,753
Posted By chickez
Re: set_lights in cvar

I did this:

#include <amxmodx>
#include <engine>

#define PLUGIN "Server Lights"
#define VERSION "0.1"
#define AUTHOR "chick"

new g_cvarLight
Forum: Scripting Help 06-30-2020, 06:38
Replies: 22
Views: 1,753
Posted By chickez
Re: set_lights in cvar

I understood. So in this situation, I can set size of string, because It will be one char always.

Other question to this situation. When I change the value of cvar (amxx_lights) in example, to "m"...
Forum: Scripting Help 06-30-2020, 06:20
Replies: 22
Views: 1,753
Posted By chickez
Re: set_lights in cvar

Ye, it's 1.8.2, the latest.



Charsmax inside the get_pcvar_string()?

public setServerLights()
{
new lights[];
get_pcvar_string(g_lights, lights, charsmax(2));
Forum: Scripting Help 06-28-2020, 23:48
Replies: 22
Views: 1,753
Posted By chickez
Re: set_lights in cvar

Yes, that is, what i want.

new lights[2];
get_pcvar_string(g_lights, lights, 2);
So, get_pcvar_string works like this ye? I understood this command otherwise.


Thank you for help! :)
Forum: Scripting Help 06-28-2020, 17:36
Replies: 22
Views: 1,753
Posted By chickez
set_lights in cvar

Hey.

I'm beginner in scripting.
I want to create cvar, which will change the light.

Example: server_light "b"
Then set_lights is set to "b".

But doesn't work.
Showing results 1 to 21 of 21

 
Forum Jump

All times are GMT -4. The time now is 00:33.


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