Raised This Month: $238 Target: $400
 59% 

Showing results 1 to 25 of 500
Search took 0.12 seconds.
Search: Posts Made By: HLM
Forum: Scripting Help 05-21-2019, 22:33
Replies: 6
Views: 527
Posted By HLM
Re: Monthly log file instead of writing to log_to_file

make a global variable that will save the string name for the logfile, in plugin_init you can either create a function or just do the code to get the date for the logfile string, then you can...
Forum: Scripting Help 05-12-2019, 23:31
Replies: 3
Views: 449
Posted By HLM
Re: External MOTD

I tried this once, you need to do the following.

1. block original MOTD call https://forums.alliedmods.net/showpost.php?p=599526&postcount=3
2. load custom content via sockets...
Forum: Module Coding 05-11-2019, 02:10
Replies: 66
Views: 16,844
Posted By HLM
Re: Module: Threaded Sockets

Hello, I was looking at this module for its threaded sockets function as I am making a webchat/realtime chat app, I was having issues as even AMXX 1.9 sockets caused me +30ms ping in order to read...
Forum: Scripting Help 05-10-2019, 19:47
Replies: 4
Views: 420
Posted By HLM
Re: Amxx equavalent of OnMapStart?

What exactly do you need to check on map start? plugin_init() is ran when the plugin is loaded for the first time on a map, however if there is something you need to modify or add to a map, you may...
Forum: Scripting Help 05-07-2019, 22:21
Replies: 2
Views: 459
Posted By HLM
Re: More efficient way to read socket data forever?

I forgot to mention, im currently on AMXX 1.9 and using the new socket natives (including nonblocking flag on socket_open)

Unfortunately the server communication native will not work for me as I...
Forum: Scripting Help 05-05-2019, 16:43
Replies: 23
Views: 1,042
Posted By HLM
Re: Check if file exists in a webserver

for(new i=0;i<count;i++)
{
parse(lines[i], line_variable, SIZE, line_value, SIZE)
if (equal(line_variable, "some_value"))
{
server_print("Value is %s",...
Forum: Scripting Help 05-05-2019, 16:20
Replies: 23
Views: 1,042
Posted By HLM
Re: Check if file exists in a webserver

Yes, use HEAD instead of GET if you just need to confirm the file exists (or doesn't)

You should also use socket_is_readable as socket_change is deprecated
Forum: Scripting Help 05-05-2019, 15:20
Replies: 23
Views: 1,042
Posted By HLM
Re: Check if file exists in a webserver

Use this: https://forums.alliedmods.net/showthread.php?t=41913

Perform a GET request for your file, read the response stream to find out if it exists (200), wasnt found (404), or some issue exists...
Forum: Scripting Help 05-05-2019, 15:16
Replies: 2
Views: 459
Posted By HLM
More efficient way to read socket data forever?

Hello. I am developing a chat application loosely based on the ideas from Kost's cross server admin chat.
https://forums.alliedmods.net/showthread.php?t=29073

It appears that there is no way to...
Forum: Scripting Help 04-24-2019, 20:14
Replies: 5
Views: 677
Posted By HLM
Re: get_clcmd

As far as im aware most cheats don't register their 'cvars' with the client and instead let players change their settings via cfg file or a custom menu (completely bypassing the client and making...
Forum: Scripting Help 03-03-2016, 17:30
Replies: 0
Views: 216
Posted By HLM
get_user_info() in if/elseif

Hello, I have been working on a small plugin that will automatically set up the setinfo line for my server admins who want to use the entmod metamod plugin (http://www.adminop.net/) since it is...
Forum: Scripting Help 04-22-2014, 22:47
Replies: 1
Views: 539
Posted By HLM
hook MOTD game event, final message not 'hooked'

Hello, I am hooking the event "MOTD" and that is working well as it fires whenever the MOTD is displayed, I have it set to display in my console, all is fine and dandy, except when the message that...
Forum: Scripting Help 12-04-2013, 14:53
Replies: 0
Views: 233
Posted By HLM
detecting collision when a player jumps?

Hello, I have been working on a plugin that adds/expands trimp/auto-bhop to my game. the problem is, the physics sometimes get weird when a user is unable to have the onground flag removed from them...
Forum: Scripting Help 11-21-2013, 15:58
Replies: 3
Views: 529
Posted By HLM
Re: Mysql Save data

Queries = SQL_PrepareQuery(g_SqlConnection,"CREATE TABLE IF NOT EXISTS %s (name varchar(64), points INT(11))", TABLE);

I have always had problems getting SQL_PrepareQuery to use formatting...
Forum: Scripting Help 11-11-2013, 14:18
Replies: 5
Views: 719
Posted By HLM
Re: changing player 'pain' sounds

Ham_Touch does not register my custom entities.. or any entities at all for that matter.

//public Hook_Touch(ent, id)//Ham Hook.. idthis, idother??
public Hook_Touch(id, ent)
{
//...
Forum: Scripting Help 11-10-2013, 20:05
Replies: 5
Views: 719
Posted By HLM
Re: changing player 'pain' sounds

im trying to do this (https://github.com/ValveSoftware/halflife/blob/master/dmc/dlls/player.cpp#L296)

the 1st hook didnt even work as it is actually a func_water that does the damage. I will be...
Forum: Scripting Help 11-10-2013, 18:54
Replies: 5
Views: 719
Posted By HLM
changing player 'pain' sounds

I am trying to insert my own painsounds into my function, but the engines painsounds are played instead, how would I stop them from playing so the ones in my function play?

...
Forum: Scripting Help 11-09-2013, 21:31
Replies: 0
Views: 271
Posted By HLM
entity 'idle' animation not playing.

Hello, I am adding new entities into my game, and have seen that dmc models have rotation built into their models! This is absolutely amazing!! Unfortunately.. I havent been able to get the model to...
Forum: Scripting Help 11-05-2013, 18:11
Replies: 3
Views: 492
Posted By HLM
Re: give user multiple weapons (dynamically)

Yes, thank you. Just what I needed.
Forum: Scripting Help 11-05-2013, 16:58
Replies: 3
Views: 492
Posted By HLM
give user multiple weapons (dynamically)

the function get_user_weapons(id, weapons[32], &num) (http://mxr.alliedmods.net/amxmodx-central/source/plugins/include/amxmodx.inc#309) will return(?) the bitsum of all weaponbits a player has, I...
Forum: Scripting Help 11-04-2013, 16:12
Replies: 3
Views: 702
Posted By HLM
"Speak from Location"

I am trying to simulate the !HEV_DEAD[0|1] from sentences.txt

// medical
HEV_DEAD0 fvox/beep beep, beep beep, beep, beep, flatline
HEV_DEAD1 fvox/beep beep, beep beep, beep, flatline

In HLDM,...
Forum: Scripting Help 11-04-2013, 08:11
Replies: 0
Views: 408
Posted By HLM
[SOLVED]remove (weapon) entity from player

Hello! I am trying to remove an entity from a player so that they can pick up another of the same type.

The entity is weapon_handgrenade, and it is an aiment assigned to PlayerENT after they touch...
Forum: Scripting Help 11-02-2013, 23:36
Replies: 5
Views: 836
Posted By HLM
Re: [HL1] Hooking Keyvalue on entities not in gametype

Yes, I am using hldm maps on my server, but my game doesnt have those weapons, I want to grab the info from the keyvalues and spawn the closest equivalent.. for example, weapon_shotgun ->...
Forum: Scripting Help 11-02-2013, 21:32
Replies: 5
Views: 836
Posted By HLM
Re: [HL1] Hooking Keyvalue on entities not in gametype

Got it, thanks.

Solution:
public pfn_keyvalue(entid)
{
new class[32], key[32], value[32]
copy_keyvalue(class, 31, key, 31, value, 31)

log_to_file("ents.log","ClassName : %s KeyName :...
Forum: Scripting Help 11-02-2013, 15:04
Replies: 5
Views: 836
Posted By HLM
[HL1] Hooking Keyvalue on entities not in gametype

Hello, I am working on a plugin to add more support to my game for maps that were not originally meant for my game, HLDM maps are very popular in TFC as they are open world deathmatches, I am trying...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 23:53.


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