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

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: Shadows Adi
Forum: Scripting Help 08-16-2022, 16:24
Replies: 33
Views: 3,272
Posted By Shadows Adi
Re: lysis decompiler

Extracted from this:


CS Revo: Kill Knife Effect 1.0 Wilian M.
HLTV event_new_round a 1=0 2=0
DeathMsg xDeathMsg a
info_target
xHamThink knife
info_target
Forum: Scripting Help 07-27-2022, 13:37
Replies: 4
Views: 748
Posted By Shadows Adi
Re: what does that mean

That's an automaton which means "machine states" or, in this case, "plugin states".

You can learn more from here:
https://forums.alliedmods.net/showthread.php?t=85981

or from general topics...
Forum: Scripting Help 07-27-2022, 13:03
Replies: 2
Views: 594
Posted By Shadows Adi
Re: SetHamParamFloat

/**
* Description: Usually called whenever an entity takes any kind of damage.
* Inflictor is the entity that caused the damage (such as a gun).
* ...
Forum: Scripting Help 07-21-2022, 08:03
Replies: 16
Views: 1,369
Posted By Shadows Adi
Re: Replace in a String that Contains Repeated Chars

Yes, by using the logical operator "&&" ( AND )


// By defining a new variable which stores the string lenght, you avoid multiple function calls ( improving the performance )
new iLen =...
Forum: Scripting Help 06-24-2022, 10:47
Replies: 9
Views: 1,300
Posted By Shadows Adi
Re: How to detect a kill inside smoke?

you specified inside smoke



You can check if the entity is visible in the view cone and if it was inside the smoke or the other side of the smoke by getting detonation position of the smoke and...
Forum: Scripting Help 06-23-2022, 18:02
Replies: 9
Views: 1,300
Posted By Shadows Adi
Re: How to detect a kill inside smoke?

You can check this:
https://github.com/s1lentq/ReGameDLL_CS/blob/f57d28fe721ea4d57d10c010d15d45f05f2f5bad/regamedll/game_shared/bot/bot_manager.cpp#L306-L336
Forum: Scripting Help 06-21-2022, 14:54
Replies: 5
Views: 798
Posted By Shadows Adi
Re: lock button from origin

Not tested


// Should be registered as a Pre
@@RegisterHam(Ham_Use, "func_button", "ButtonUse", 0);

public ButtonUse(iEnt, id, iActivator, use_type, Float:value)
{...
Forum: Scripting Help 06-19-2022, 06:26
Replies: 8
Views: 1,162
Posted By Shadows Adi
Re: How is PVS ( Potentially view set ) calculated for an origin ?

Here are the signatures for
SV_ValidClientMulticast ( the linux signature could not work, because I found just a reference from this function, not it's offset ):
{
"name" :...
Forum: Scripting Help 06-18-2022, 17:54
Replies: 8
Views: 1,162
Posted By Shadows Adi
Forum: Scripting Help 06-18-2022, 14:27
Replies: 8
Views: 1,162
Posted By Shadows Adi
Re: How is PVS ( Potentially view set ) calculated for an origin ?

Check this out: https://github.com/dreamstalker/rehlds/blob/master/rehlds/engine/pr_cmds.cpp#L763-L804
Forum: Scripting Help 06-13-2022, 03:55
Replies: 14
Views: 1,226
Posted By Shadows Adi
Re: Emit_sound but different sound on every client

You can use rh_emit_sound2() (https://amxx-bg.info/api/reapi_engine/rh_emit_sound2) from reAPI library ( reHLDS needed ).


recipient Recipient index or use 0 to make all clients hear it
Forum: Scripting Help 05-21-2022, 10:47
Replies: 24
Views: 1,536
Posted By Shadows Adi
Re: Run time error 1

In round_terminator.sma:
m_fRoundCount
m_bFirstConnected
m_fTeamCount
this member has been deprecated so it won't return any value:...
Forum: Scripting Help 05-14-2022, 03:51
Replies: 24
Views: 1,684
Posted By Shadows Adi
Re: Precache 512 Smart Solutions (?)

You could use this to keep tracking of your precache control : https://github.com/ShadowsAdi/PrecacheList
Forum: Scripting Help 05-01-2022, 15:43
Replies: 23
Views: 1,932
Posted By Shadows Adi
Re: CURL: Downloanding an page ?

Because it gets the captcha verification. How I said, you can check if the received data contains something related to captcha and then force the plugin to send again a query with a different...
Forum: Scripting Help 05-01-2022, 12:04
Replies: 23
Views: 1,932
Posted By Shadows Adi
Re: CURL: Downloanding an page ?

Any reason for doing this? You can print an integer value using %d or %i.
Forum: Scripting Help 04-29-2022, 15:17
Replies: 23
Views: 1,932
Posted By Shadows Adi
Re: CURL: Downloanding an page ?

Yes.


Output the received data, how I said, your only problem is the gametracker's captcha. I think you can make it work by changing the User-Agent from HTTP headers if in the received data you...
Forum: Scripting Help 04-27-2022, 05:40
Replies: 23
Views: 1,932
Posted By Shadows Adi
Re: CURL: Downloanding an page ?

From cloudflare

Just made this script, I tested it, works as charm, but your only problem is the GameTracker captcha. You can bypass that by changing User-Agent I think.

Also, you'll need...
Forum: Scripting Help 04-19-2022, 16:13
Replies: 11
Views: 916
Posted By Shadows Adi
Re: Help with native

Try the new native: https://github.com/ShadowsAdi/CSGORemake/blob/master/addons/amxmodx/scripting/include/csgo_remake.inc#L365-L374


rank = SQL_ReadResult(query, SQL_FieldNameToNum(query,...
Forum: Scripting Help 04-19-2022, 13:46
Replies: 11
Views: 916
Posted By Shadows Adi
Re: Help with native

You can pass the player's ID in this native and get his rank.
Forum: Scripting Help 04-12-2022, 03:37
Replies: 11
Views: 916
Posted By Shadows Adi
Re: Help with native

Because player's rank is assigned after he is logged into his account:
https://github.com/ShadowsAdi/CSGORemake/blob/master/addons/amxmodx/scripting/csgo_remake.sma#L2625

If you run into any...
Forum: Scripting Help 04-07-2022, 07:09
Replies: 10
Views: 994
Posted By Shadows Adi
Re: orpheu

public OnSV_GetIDString(steamid[])
{
new szID[32]
OrpheuGetReturn(szID, charsmax(szID))
}
Forum: Scripting Help 04-01-2022, 08:19
Replies: 1
Views: 416
Posted By Shadows Adi
Re: Possible to bypass "CVAR is server-only" ?

Because it is a server-side cvar, not a client-side cvar.
Use get_cvar/pcvar_num.
Forum: Scripting Help 03-26-2022, 05:52
Replies: 4
Views: 819
Posted By Shadows Adi
Re: game crash (very informative)

Test it. If isn't working, decrease EV_FL_renderamt value.
Forum: Scripting Help 03-26-2022, 05:27
Replies: 4
Views: 819
Posted By Shadows Adi
Re: game crash (very informative)

entity_set_int(ent, EV_INT_rendermode, kRenderTransAdd)
->>
entity_set_int(ent, EV_INT_rendermode, kRenderNormal)

http://www.amxmodx.org/api/amxconst#rendering-modes-i-e-for-set-user-rendering
...
Forum: Scripting Help 03-26-2022, 02:22
Replies: 6
Views: 768
Posted By Shadows Adi
Re: compare

Try this. It is a custom stock for ArrayFindString func, because it has some problems.
See this: https://forums.alliedmods.net/showthread.php?t=329651

pickSiteByName(const szSelectedName[])
{
...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 07:17.


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