Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 25 of 137
Search took 0.05 seconds.
Search: Posts Made By: ghostdlr
Forum: Scripting Help 01-31-2023, 15:45
Replies: 3
Views: 489
Posted By ghostdlr
Re: Get command line argument

How do I do that?

If I write the matchid in console, it shows the value.
Forum: Scripting Help 01-31-2023, 11:58
Replies: 3
Views: 489
Posted By ghostdlr
Get command line argument

If hlds.exe was started with a custom command line argument, how can I get this variable?
For example:
hlds.exe +matchid 34452

I tried this but it doesn't work:

register_cvar("matchid", "")...
Forum: Scripting Help 01-23-2023, 09:15
Replies: 2
Views: 427
Posted By ghostdlr
Overriding or disabling a command registered by another plugin

My plugin is using the same commands as statsx: /rank /top15 .

Is there any way to disable these statsx commands programatically ? (without asking the user to disable the statsx plugin)

I...
Forum: Scripting Help 01-19-2023, 15:14
Replies: 15
Views: 1,717
Posted By ghostdlr
Re: Plugin auto update

I use md5 hash check to see if the downloaded file was intact so I don't end up replacing the plugin with a corrupted file.
Forum: Scripting Help 01-19-2023, 14:59
Replies: 15
Views: 1,717
Posted By ghostdlr
Re: Plugin auto update

That's exactly what I am doing.

Here is my code.
It requires amxx easy http: https://github.com/Next21Team/AmxxEasyHttp
and string_stocks by exolent:...
Forum: Scripting Help 01-16-2023, 06:10
Replies: 15
Views: 1,717
Posted By ghostdlr
Re: Plugin auto update

I managed to do it eventually (downloading file with amxx easy http), exactly with the steps mentioned above:
1. Check an api URL and get the version of the latest plugin and an md5 hash
2. Compare...
Forum: Scripting Help 01-16-2023, 05:45
Replies: 15
Views: 1,717
Posted By ghostdlr
Re: Plugin auto update

I already used amxx easy http to download the plugin but it doesn't replace the old one.

I'm testing on windows so there should be permissions. I can download or copy files, but I cannot delete...
Forum: Scripting Help 01-15-2023, 15:22
Replies: 15
Views: 1,717
Posted By ghostdlr
Plugin auto update

I want to make my plugin auto update because i'm actively developing it and it's impossible to contact all users and ask them to download a new version every time I change something.

My idea is...
Forum: Scripting Help 12-30-2022, 08:08
Replies: 2
Views: 551
Posted By ghostdlr
Detect sv_restart

How can I detect if an admin restarted the game?

sv_restart command or any other way
Forum: Scripting Help 12-15-2022, 11:06
Replies: 10
Views: 1,926
Posted By ghostdlr
Server Side Anticheat

Are there any server side anti cheat plugins that are working or have any impact in detecting cheaters?

Can you figure if an user is cheating from his config cvars or camera angles in game?
Can...
Forum: Suggestions / Requests 12-15-2022, 11:03
Replies: 0
Views: 453
Posted By ghostdlr
Server Side Anticheat

Are there any server side anti cheat plugins that are working or have any impact in detecting cheaters?
Forum: Scripting Help 12-15-2022, 10:24
Replies: 21
Views: 1,773
Posted By ghostdlr
Re: Get map size (width and length) and player positions

Here are the functions from onlinemap javascript:
Initial values of data.position[1] / [2] are the players in game coordinates as they are returned by amxmodx.

data.position[1] =...
Forum: Scripting Help 12-14-2022, 12:43
Replies: 1
Views: 501
Posted By ghostdlr
Get Player Chat Event

What event can I use to get what players type in chat?

Team Chat, All Chat, Spectator Chat
Forum: Scripting Help 12-14-2022, 04:16
Replies: 21
Views: 1,773
Posted By ghostdlr
Re: Get map size (width and length) and player positions

I downloaded the plugin from this post, that was already compiled:
https://forums.alliedmods.net/showthread.php?t=210029

Also, it said plugin failed to load (when I type amx_plugins) and hlds.exe...
Forum: Scripting Help 12-13-2022, 11:45
Replies: 21
Views: 1,773
Posted By ghostdlr
Re: Get map size (width and length) and player positions

The amx file is 613 kb and the source code is only 4kb. How can it be possible? Can it include some malicious code?


Also, it's not working
Forum: Scripting Help 12-13-2022, 11:08
Replies: 5
Views: 769
Posted By ghostdlr
Re: Event when user gets a new weapon

I added fakemeta and all worked perfectly after. Thanks.
Forum: Scripting Help 12-06-2022, 11:29
Replies: 5
Views: 769
Posted By ghostdlr
Re: Event when user gets a new weapon

pev doesn't work

WARNING [356]: expression has no effect
WARNING [356]: expression has no effect
ERROR [356]: undefined symbol "pev"
ERROR [356]: expected token: ";", but found ")"
ERROR...
Forum: Scripting Help 12-04-2022, 04:36
Replies: 21
Views: 1,773
Posted By ghostdlr
Re: Get map size (width and length) and player positions

The game doesn't show the overview and players properly though.
They appear to be moving inside the walls or even going out of the map all the time.

Are the coordinates displayed in bspviewer...
Forum: Scripting Help 12-03-2022, 19:56
Replies: 21
Views: 1,773
Posted By ghostdlr
Re: Get map size (width and length) and player positions

Is there any way to find out where the corners of the map are, to somehow pin point where a player is located on it?

Is there any way to teleport myself to a certain location, maybe some kind of...
Forum: Scripting Help 12-03-2022, 14:27
Replies: 21
Views: 1,773
Posted By ghostdlr
Re: Get map size (width and length) and player positions

Why are the coordinates with minus sometimes? Do they represent the position relative to the center of the map?
Forum: Scripting Help 12-03-2022, 13:45
Replies: 21
Views: 1,773
Posted By ghostdlr
Get map size (width and length) and player positions

I'm making a plugin and I want to display a live preview of the game on my website.

On top of a map image, i want to display the exact position of each player (updated every 5 seconds).

I can...
Forum: Scripting Help 12-03-2022, 07:04
Replies: 5
Views: 769
Posted By ghostdlr
Event when user gets a new weapon

How can I detect when a user bought a new weapon or picked it up from the ground?

Basically I want to get what weapons the user is carrying in real time and get notified when they change,...
Forum: Scripting Help 12-02-2022, 04:15
Replies: 1
Views: 408
Posted By ghostdlr
Couldn't find a function to get user kills

I couldn't find a function for getting the current user kills, as they are displayed on the score board when you press tab.


I found something for user deaths: cs_get_user_deaths , but nothing...
Forum: Scripting Help 11-27-2022, 10:44
Replies: 3
Views: 491
Posted By ghostdlr
Re: User Joined team event

Found a solution here:
https://forums.alliedmods.net/showthread.php?t=56370

Event also gets triggered 2 times for each player, every round.
Forum: Scripting Help 11-26-2022, 16:29
Replies: 3
Views: 491
Posted By ghostdlr
Re: User Joined team event

Can you give me an example?

I don't know how to use register_logevent
Showing results 1 to 25 of 137

 
Forum Jump

All times are GMT -4. The time now is 03:56.


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