Raised This Month: $319 Target: $400
 79%   Almost there!

Showing results 1 to 25 of 404
Search took 0.01 seconds.
Search: Posts Made By: MAGNAT2645
Forum: Scripting 10-05-2021, 09:58
Replies: 3
Views: 402
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, 16:42
Replies: 1
Views: 455
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, 19:00
Replies: 54
Views: 53,884
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, 14:17
Replies: 54
Views: 53,884
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, 05:13
Replies: 3
Views: 1,027
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, 05:04
Replies: 2
Views: 495
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, 09:29
Replies: 3
Views: 1,027
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, 18:41
Replies: 11
Views: 1,314
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, 14:01
Replies: 3
Views: 1,369
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, 13:56
Replies: 3
Views: 402
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, 07:20
Replies: 3
Views: 474
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, 12:28
Replies: 102
Views: 42,803
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, 09:11
Replies: 851
Views: 519,137
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, 02:39
Replies: 851
Views: 519,137
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, 08:08
Replies: 2
Views: 484
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, 17:33
Replies: 1
Views: 565
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, 11:56
Replies: 4
Views: 478
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, 08:59
Replies: 124
Views: 44,861
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, 07:22
Replies: 124
Views: 44,861
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, 15:05
Replies: 3
Views: 399
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, 18:57
Replies: 124
Views: 44,861
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 :/
Forum: Snippets and Tutorials 06-18-2021, 18:26
Replies: 124
Views: 44,861
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

Updated (by uninstalling older and installing newer version) to the last version and now i can't manage to "hold" sqproxy in the background. Used this before and it was working fine:

nohup sqproxy...
Forum: Scripting 06-16-2021, 17:51
Replies: 2
Views: 385
Posted By MAGNAT2645
Re: items per page ?

You can try to play with SetMenuPagination (https://www.sourcemod.net/new-api/menus/SetMenuPagination) or Menu.Pagination (https://www.sourcemod.net/new-api/menus/Menu/Pagination) on Transitional...
Forum: Scripting 05-06-2021, 14:17
Replies: 5
Views: 1,107
Posted By MAGNAT2645
Re: Want for urldecode method, need help with rewrite from C

I'm late but there are 2 natives provided by System2 (https://forums.alliedmods.net/showthread.php?t=146019) Extension.

/**
* Converts a plain string to an URL encoded string.
* All input...
Forum: Plugins 04-30-2021, 06:00
Replies: 7
Views: 1,535
Posted By MAGNAT2645
Re: [TF2] Covid-19 Mask

Why would it work in CS? The plugin equips TF2 cosmetic item (Particulate Protector (https://wiki.teamfortress.com/wiki/Particulate_Protector)) to player.
Showing results 1 to 25 of 404

 
Forum Jump

All times are GMT -4. The time now is 11:19.


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