Raised This Month: $4 Target: $400
 1% 

Showing results 1 to 25 of 408
Search took 0.01 seconds.
Search: Posts Made By: MAGNAT2645
Forum: Scripting Yesterday, 10:32
Replies: 3
Views: 224
Posted By MAGNAT2645
Re: Make weapon_ entity untouchable

I am pretty sure you can use SetEntityMoveType right after DispatchSpawn. Or with RequestFrame instead of a timer.
Forum: Plugins 11-16-2021, 18:42
Replies: 22
Views: 9,279
Posted By MAGNAT2645
Re: [TF2] Slender Fortress Modified (v1.7.0, 11/10/21)

You should compile it on SM 1.10+, not the 1.11.
Forum: Extensions 11-09-2021, 06:09
Replies: 96
Views: 92,914
Posted By MAGNAT2645
Re: [EXTENSION] Sound Info Library v1.0.1

Thanks, but i meant native functions in the methodmap.
For example:

property float LengthFloat
{
public native get();
}

property int Year
{
Forum: Extensions 11-05-2021, 14:49
Replies: 96
Views: 92,914
Posted By MAGNAT2645
Re: [EXTENSION] Sound Info Library v1.0.1

Hi. Can you please also implement methodmap natives (in the extension) from this?

methodmap SoundFile < Handle {
/**
* Opens a sound file.
*
* @note Sound files are closed with...
Forum: Scripting 10-05-2021, 10:58
Replies: 3
Views: 645
Posted By MAGNAT2645
Re: FrontLine plugin

Just add a check before GetEntityClassname (line 437)
Like this:

new iWeaponEnt = GetEntPropEnt(attacker, Prop_Send, "m_hActiveWeapon");
if (iWeaponEnt != -1 &&...
Forum: Scripting 08-26-2021, 17:42
Replies: 1
Views: 472
Posted By MAGNAT2645
Re: map music mod

In the AmbientSHook you can check if the sample is the beacon sound and such, and then return Plugin_Continue;


public Action:AmbientSHook(String:sample[PLATFORM_MAX_PATH], &entity,...
Forum: Snippets and Tutorials 08-20-2021, 20:00
Replies: 54
Views: 57,878
Posted By MAGNAT2645
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced

As i said, it's not that useful. You can use it in a macro to join text (and put it without quotes).

#define ERROR(%0) PrintToServer( "ERROR: " ... #%0 )

int a = 5;
int b = 0;
int c;
if ( b...
Forum: Snippets and Tutorials 08-19-2021, 15:17
Replies: 54
Views: 57,878
Posted By MAGNAT2645
Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced

You can also mention the "stringize" operator (inherited from Pawn) which converts arguments to packed strings in a macro.
I don't find it that useful but still here's an example:

// Note that...
Forum: Scripting 07-16-2021, 06:13
Replies: 3
Views: 1,052
Posted By MAGNAT2645
Re: How do I prevent rockets from exploding when they collide with each other?

AFAIK in this case projectile will also go through VPhysics entities (not only other projectiles).
Forum: Scripting 07-16-2021, 06:04
Replies: 2
Views: 509
Posted By MAGNAT2645
Re: what happens if we forget closehandle

SourceMod can also detect possible memory leaks and will unload plugins with too many handles.
Memory leaks will be logged to sourcemod_fatal.log (in root folder of your game) and to...
Forum: Scripting 07-15-2021, 10:29
Replies: 3
Views: 1,052
Posted By MAGNAT2645
Re: How do I prevent rockets from exploding when they collide with each other?

Have you tried CollisionHook (https://forums.alliedmods.net/showthread.php?t=197815)'s CH_ShouldCollide?
Forum: Plugins 07-11-2021, 19:41
Replies: 18
Views: 2,130
Posted By MAGNAT2645
Re: [ANY] Plugin Updates Checker (1.0) [11-Jul-2021]

You can use Discord/Slack API (https://forums.alliedmods.net/showthread.php?t=292663) as optional plugin (there are some examples like modules) and create a key for discord.cfg:

"sm_updates" //...
Forum: Scripting 07-08-2021, 15:01
Replies: 3
Views: 1,404
Posted By MAGNAT2645
Re: Can an author help me ?

Try to replace

if (GetUserFlagBits(client) == ADMFLAG_CUSTOM3) {

with

if ((GetUserFlagBits(client) & ADMFLAG_CUSTOM3) == ADMFLAG_CUSTOM3) {
Forum: Scripting 07-08-2021, 14:56
Replies: 3
Views: 414
Posted By MAGNAT2645
Re: Is there any way to add an entire folder to the downloads table?

There's already a Voice Changer (https://forums.alliedmods.net/showthread.php?t=281143) plugin. But as I understood your plugin also collects sounds into packs and allows you to change your current...
Forum: Scripting 06-28-2021, 08:20
Replies: 3
Views: 518
Posted By MAGNAT2645
Re: I think my source code got corrupted... Any help, please?

I had kinda similar problem but in my case i just lost every source file due to dying HDD.
Thanks to Lysis Decompiler (https://headlinedev.xyz/lysis/) and SourcePawn Disassembler...
Forum: Plugins 06-26-2021, 13:28
Replies: 102
Views: 44,159
Posted By MAGNAT2645
Re: [ANY] Hit Registration Fix Plugin (bullet displacement by 1 tick)

Fixed crashes in TF2 by increasing tf offsets by 1. This might help with other games.
Forum: Extensions 06-26-2021, 10:11
Replies: 872
Views: 530,885
Posted By MAGNAT2645
Re: DHooks (Dynamic Hooks - Dev Preview)

Yeah, i didn't say that DHooks caused these crashes. Tried to update gamedata manually but idk which is outdated (used VTable Dumper (https://asherkin.github.io/vtable/) to check but it seems that...
Forum: Extensions 06-26-2021, 03:39
Replies: 872
Views: 530,885
Posted By MAGNAT2645
Re: DHooks (Dynamic Hooks - Dev Preview)

Something like that (https://crash.limetech.org/2paw5ounm45o)?
After last tf2 update my server keeps crashing when player gets a weapon after spawn.
Forum: Scripting 06-25-2021, 09:08
Replies: 2
Views: 507
Posted By MAGNAT2645
Re: PrecacheSound not working?

Path to sound (1st argument) in PrecacheSound (https://www.sourcemod.net/new-api/halflife/PrecacheSound) is already relative to "sound" directory so you should remove "sound/" part.
...
Forum: Scripting 06-24-2021, 18:33
Replies: 1
Views: 582
Posted By MAGNAT2645
Re: i can't understand cvar

If you're dealing with ConVars, you can directly change their values without using ServerCommand().

ConVar sv_autobunnyhopping = FindConVar( "sv_autobunnyhopping" );
if ( sv_autobunnyhopping !=...
Forum: Scripting 06-24-2021, 12:56
Replies: 4
Views: 494
Posted By MAGNAT2645
Re: can players exploit sourcemod with their name?

It is safe to use SM's Print* functions. I know only two cases where you shouldn't use player name:
1) FakeClientCommand(Ex), ServerCommand() and ClientCommand() - use UserId instead (as said in #2...
Forum: Snippets and Tutorials 06-23-2021, 09:59
Replies: 124
Views: 46,217
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

Nevermind, it happened again today. I have this line in my root crontab.

@reboot /usr/bin/nohup /usr/local/bin/sqproxy run & >> /home/tf2server/log/script/crontab.log 2>&1


sqproxy just didn't...
Forum: Snippets and Tutorials 06-22-2021, 08:22
Replies: 124
Views: 46,217
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

It seems to work fine again with nohup & (has disconnected and then logged in again, sqproxy didn't disappear). Thanks.
Forum: Scripting 06-20-2021, 16:05
Replies: 3
Views: 418
Posted By MAGNAT2645
Re: Setting default cookie value

You can just check if cookie value is empty and then set your default.

public void OnClientCookiesCached(int client) {
char szValue[4];
g_hCookie.Get( client, szValue, sizeof szValue );
if (...
Forum: Snippets and Tutorials 06-18-2021, 19:57
Replies: 124
Views: 46,217
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

So i managed to hold sqproxy in the background.
1) sqproxy run
2) Ctrl-Z
3) bg
4) disown

But now i don't know how to properly set this sequence in the crontab :/
Showing results 1 to 25 of 408

 
Forum Jump

All times are GMT -4. The time now is 13:08.


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