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

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: KiLLeR.
Forum: Scripting Help 04-08-2020, 11:27
Replies: 4
Views: 822
Posted By KiLLeR.
Re: percent symbol in chat

You mean this? https://github.com/ValveSoftware/halflife

Update #1: I just found that. https://github.com/ValveSoftware/halflife/issues/2611

Update #2: And i found solution:
client_print(0,...
Forum: Scripting Help 04-08-2020, 11:26
Replies: 4
Views: 822
Posted By KiLLeR.
Re: percent symbol in chat

None of both works.. :(
Forum: Scripting Help 04-07-2020, 11:08
Replies: 4
Views: 822
Posted By KiLLeR.
percent symbol in chat

Yeah I know to show percent symbol I should double write it like that.
client_print(0, print_chat, "test: 10%%");
client_print(0, print_console, "test: 10%%");
but it still doesn't work either for...
Forum: Scripting Help 04-07-2020, 06:19
Replies: 10
Views: 2,509
Posted By KiLLeR.
Re: How to trigger TeamInfo

Yes, I knew that, but i'm still using 1.8.2, anyway thanks for the info. :)
Forum: Scripting Help 04-05-2020, 09:37
Replies: 10
Views: 2,509
Posted By KiLLeR.
Re: How to trigger TeamInfo

Thanks, thats quite useful. I have tested the stock within the link you gave me, but found a little bug.
static const szTeams[] = { "UNASSIGNED" , "TERRORIST" , "CT" , "SPECTATOR" };
// >>>
static...
Forum: Scripting Help 04-03-2020, 19:46
Replies: 10
Views: 2,509
Posted By KiLLeR.
Re: How to trigger TeamInfo

Thanks bro, I'm going to test that. :)
Forum: Scripting Help 04-02-2020, 13:06
Replies: 10
Views: 2,509
Posted By KiLLeR.
Re: How to trigger TeamInfo

Bro I don't ask how to register the event or how to use it? My question is why when using cs_set_user_team, the TeamInfo event is never called...
Forum: Scripting Help 04-02-2020, 09:28
Replies: 10
Views: 2,509
Posted By KiLLeR.
How to trigger TeamInfo

At first i didn't found anything at the forum about this case.
Why cs_set_user_team doesn't trigger TeamInfo event and how to do it?
Yeah, I know jointeam cmd will trigger the TeamInfo, but that...
Forum: Scripting Help 06-11-2018, 07:59
Replies: 6
Views: 1,680
Posted By KiLLeR.
Re: Multidimensional dynamic arrays

Yes! https://www.amxmodx.org/api/cellarray/ArrayPushArray
Forum: Scripting Help 02-28-2018, 06:51
Replies: 5
Views: 1,174
Posted By KiLLeR.
Re: How to empty a variable

2nd can't be compiled.

Use this
public client_disconnect(id)
{
g_n_Coins[id] = 0;
g_s_Text[id][0] = EOS
}
Forum: General 01-11-2018, 13:24
Replies: 7
Views: 2,086
Posted By KiLLeR.
Re: Dust2 Bomb Bug

Hint: I don't ask to help me for 'revoice' or any other not supported here library. If this calms down you, even when 'revoice' is paused/removed, the problem still persist. Also I asked instead of...
Forum: General 01-10-2018, 18:19
Replies: 7
Views: 2,086
Posted By KiLLeR.
Dust2 Bomb Bug

I uploaded video on youtube for easy understanding of the problem.
Here is it: https://www.youtube.com/watch?v=h-3NL1pX3UU
Briefly the bomb disappear when it's planted in this way.
Do someone know...
Forum: Scripting Help 01-08-2018, 14:19
Replies: 4
Views: 797
Posted By KiLLeR.
Re: Loose indentation (compiling error)

Check like that
if(!cvar[0])
Forum: Scripting Help 01-01-2018, 10:24
Replies: 8
Views: 1,922
Posted By KiLLeR.
Re: Weapon and HE grenade damage

public HamTakeDamagePre(victim, inflictor, attacker, Float:damage, damagebits)
{
if(!is_user_connected(attacker) || victim == attacker)
return HAM_IGNORED;

if((get_class(victim) != 11)) ...
Forum: Scripting Help 12-29-2017, 11:47
Replies: 8
Views: 1,922
Posted By KiLLeR.
Re: Weapon and HE grenade damage

You must do in Pre. Also in the given code both switch cases are useless.
Forum: Scripting Help 12-29-2017, 11:33
Replies: 7
Views: 1,267
Posted By KiLLeR.
Re: get_players + offline players

get_players() can't include players from your database, you have to export them manually. Where do you keep em?
Forum: Scripting Help 12-24-2017, 15:47
Replies: 11
Views: 1,847
Posted By KiLLeR.
Re: [ H3LP ] Entity members

You can store for one entity up to 8 integers (or 24, but it's a bit tricky) and up to 16 floats.
Forum: Scripting Help 12-24-2017, 14:14
Replies: 11
Views: 1,847
Posted By KiLLeR.
Re: [ H3LP ] Entity members

Basically this is what you have to use and there is no better solution. Using array of 2056 cells is painful. (Thats 8 kB of memory :D)

Bit-fields can only be used to store several boolean values...
Forum: Scripting Help 12-24-2017, 10:02
Replies: 11
Views: 1,847
Posted By KiLLeR.
Re: [ H3LP ] Entity members

#define g_flLifeTime EV_FL_fuser1

entity_set_float(entity, g_flLifeTime, 100.0);

- or -

#define g_flLifeTime EV_FL_fuser1
#define SetEntFloatVal(%0, %1, %2), entity_set_float(%0, %1, %2)
...
Forum: Scripting Help 12-07-2017, 09:48
Replies: 5
Views: 1,071
Posted By KiLLeR.
Forum: Scripting Help 12-05-2017, 16:49
Replies: 5
Views: 1,071
Posted By KiLLeR.
Re: Keep a menu open after selection

What if you re-open the menu on selection?
Forum: Scripting Help 12-04-2017, 10:52
Replies: 31
Solved Buttons
Views: 4,174
Posted By KiLLeR.
Re: Buttons

https://www.amxmodx.org/api/file/write_file
Also It gonna add those text string to the end of line instead of replacing according to the wiki.

P.S. I never have used the old file commands.
Forum: Scripting Help 12-03-2017, 16:41
Replies: 31
Solved Buttons
Views: 4,174
Posted By KiLLeR.
Re: Buttons

This is a bad part of working with files... You have to loop over all lines and write them to new temporary file while checking if the current line matched line you want to edit, if yes then write...
Forum: Scripting Help 12-03-2017, 07:22
Replies: 12
Views: 2,204
Posted By KiLLeR.
Re: Catching custom menus

I'm not sure if you can hook custom menus, but probably not. Anyway you have another variant, make custom forwards.
Forum: Scripting Help 12-03-2017, 07:13
Replies: 31
Solved Buttons
Views: 4,174
Posted By KiLLeR.
Re: Buttons

Here (https://forums.alliedmods.net/showthread.php?t=46218) is a tutorial about writing/reading from files.
Also, here there are many tutorials: https://forums.alliedmods.net/showthread.php?t=172936
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 22:10.


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