Raised This Month: $209 Target: $400
 52% 

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: CrazY.
Forum: Scripting Help Yesterday, 09:29
Replies: 1
Views: 116
Posted By CrazY.
multiple vs single array handler

Hello, suppose I've an item which will contain an unknown number of sub-items. Since the amount of sub-items that the array will have to store is unknown, it's size has to be dynamic. For that I will...
Forum: Scripting Help 07-22-2021, 19:54
Replies: 19
Views: 409
Posted By CrazY.
Re: Invalid array handler

Invalid_Array is 0 not -1
Forum: Scripting Help 06-29-2021, 22:24
Replies: 14
Views: 640
Posted By CrazY.
Re: gather data from game server

After a few more tries, could get it working with the sockets_hz module. To remove the lag, I had to set the timeout parameter to 0. Thank you for the help bugsy, will do some more tests to check if...
Forum: Scripting Help 06-29-2021, 17:34
Replies: 14
Views: 640
Posted By CrazY.
Re: gather data from game server

I could get it working with your module, that's great. I would need the linux as well, could you share? I found this one...
Forum: Scripting Help 06-25-2021, 16:33
Replies: 14
Views: 640
Posted By CrazY.
Re: gather data from game server

Looks the same, still lagging when calling socket_change


#include <amxmodx>
#include <sockets_hz>

public plugin_init()
{
register_plugin("UDP Server", "1.0", "Crazy")
Forum: Scripting Help 06-24-2021, 12:26
Replies: 14
Views: 640
Posted By CrazY.
Re: gather data from game server

I'm currently testing on windows, I could only find the linux compiled binary.
Forum: Scripting Help 06-24-2021, 12:17
Replies: 14
Views: 640
Posted By CrazY.
Re: gather data from game server

Thank you, but I would like to do this without the need for a third-party module.



I did some tests following your suggestion.
I created a socket and connected it to localhost on a random...
Forum: Scripting Help 06-22-2021, 10:41
Replies: 3
Views: 244
Posted By CrazY.
Re: Translation phrase not found only in player loop

You should be asking in source mod section. This one is for amx mod x.
https://forums.alliedmods.net/forumdisplay.php?f=52
Forum: Scripting Help 06-22-2021, 10:39
Replies: 14
Views: 640
Posted By CrazY.
Re: gather data from game server

Thank you for the input
Forum: Scripting Help 06-21-2021, 17:52
Replies: 14
Views: 640
Posted By CrazY.
gather data from game server

So, I would like to show the server admins on a web page. To do that, I will need to access the users.ini file. I can think of some ways to solve the problem, but I'm not sure which one would be...
Forum: Scripting Help 06-21-2021, 09:42
Replies: 4
Views: 332
Posted By CrazY.
Re: Nonsense Divide

The result of -1 divided by 7 is -0.14285714285. In your example, the value is probably being rounded.
If what you are trying to do is calculate the total number of pages, this is the correct...
Forum: Scripting Help 06-18-2021, 09:07
Replies: 8
Views: 491
Posted By CrazY.
Re: Array VS Multiple Array

You could also do something similar to engine entity_get_* and fakemeta pev, it does not really matter, choose what you are comfortable with.


enum
{
zombie_health,
zombie_name,...
Forum: Scripting Help 06-16-2021, 16:37
Replies: 2
Views: 229
Posted By CrazY.
Re: Restrict use function

You should hook Ham_Use for every usable entity and return HAM_SUPERCEDE.
Forum: Scripting Help 06-16-2021, 16:30
Replies: 4
Views: 298
Posted By CrazY.
Re: add text

Use old style menu.

#include <amxmodx>

#if !defined MAX_MENU_LENGTH
const MAX_MENU_LENGTH = 512
#endif

/*
* @note Keys is a bitflag value that represents which keys the user can press
Forum: Scripting Help 06-16-2021, 16:08
Replies: 9
Views: 412
Posted By CrazY.
Re: get_pdata_int Problem

public fw_CmdStart(id)
{
static Ent; Ent = fm_get_user_weapon_entity(id, CSW_BASE)

if (pev_valid(Ent) != 2)
return

static iClip; iClip = get_pdata_int(Ent, 51, 4)
new ammo, clip,...
Forum: Scripting Help 06-09-2021, 12:30
Replies: 10
Views: 564
Posted By CrazY.
Re: Prevent Crashing

You'll need to hook DefaultDeploy.
https://github.com/s1lentq/ReGameDLL_CS/blob/8d1f4fb673012fbfa912f4f22ec726684cfa7908/regamedll/dlls/weapons.cpp#L1337
Forum: Scripting Help 06-08-2021, 14:04
Replies: 9
Views: 507
Posted By CrazY.
Re: natives usage (not sure about title)

I've tested your code, it worked without the problem you described.



L 06/08/2021 - 14:55:42: [testplugin.amxx] An item "item 1" successfully registered with ID: 0
item cost -> -1
L...
Forum: Suggestions / Requests 06-07-2021, 19:18
Replies: 3
Views: 239
Posted By CrazY.
Re: Read from file

Use the file functions to open the file and "parse" to get the strings that are in between the quotes.

https://www.amxmodx.org/api/file/fopen
https://www.amxmodx.org/api/string/parse
Forum: Scripting Help 06-07-2021, 19:13
Replies: 10
Views: 627
Posted By CrazY.
Re: ZP Kill bomb for humans

That's probably happening because zombie mod is also replacing the smoke grenade. Try to enable the kill bomb plugin before the zombie one.
Forum: Scripting Help 06-07-2021, 19:08
Replies: 9
Views: 507
Posted By CrazY.
Re: natives usage (not sure about title)

What you did is completely valid, there should be some other problem in your code. If you're not willing to post the source, debug the code.
Forum: Scripting Help 06-07-2021, 19:02
Replies: 2
Views: 331
Posted By CrazY.
Re: Fix for AMXX custom menus (from ZP)

This is to make sure you are not viewing another menu from the game itself, which would cause a problem.
You don't need that in the latest versions of amx mod x.

menu_display:...
Forum: General 06-02-2021, 11:49
Replies: 1
Views: 617
Posted By CrazY.
amxx giving strange output on sum of float and any

So, I was testing something and noticed that if you add a variable of type float to one of type any, it will give you a strange result. I guess this is a bug with the compiler.


#include...
Forum: Scripting Help 06-01-2021, 18:56
Replies: 7
Views: 778
Posted By CrazY.
Re: Using model skins

That would be easily done with this https://github.com/ValveSoftware/halflife/issues/199
It wasn't added yet, the thread is ~8 years, rip
Forum: Scripting Help 05-28-2021, 15:31
Replies: 5
Views: 337
Posted By CrazY.
Re: AddToFullPack hide entity from specific player

set_es(es_handle, ES_Effects, get_es(es_handle, ES_Effects) | EF_NODRAW)
Forum: Scripting Help 05-28-2021, 09:32
Replies: 6
Views: 464
Posted By CrazY.
Re: [Nvault] Save Data for particular Time Than Remove

You could use nvault_lookup to also get the timestamp and compare with get_systime().
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 15:24.


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