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

Showing results 1 to 25 of 311
Search took 0.01 seconds.
Search: Posts Made By: MAGNAT2645
Forum: Scripting 07-11-2020, 12:53
Replies: 2
Views: 370
Posted By MAGNAT2645
Re: Executing an include file on server start - Does not work?

1) You shouldn't use public keyword for functions that are not callbacks.
2) Your code prints message on plugin start (actually not on server start) so if you reload plugin, late plugin load happens...
Forum: Scripting 07-11-2020, 10:51
Replies: 3
Views: 330
Posted By MAGNAT2645
Re: error 117: enum structs cannot be indexed as arrays

First of all, SourcePawn is closer to Pawn language, syntax (at least new 1.7 syntax) is closer to C/C++ but without actual OOP.
And as nosoop said, you shouldn't try to access enum struct fields by...
Forum: Extensions 07-10-2020, 04:34
Replies: 785
Views: 333,574
Posted By MAGNAT2645
Re: [ANY] SteamWorks

As i said, the ConVar just doesn't work (i use MapConfigs to change Game Description on different gamemodes and maps) so this little fix won't help.
Forum: Extensions 07-09-2020, 10:51
Replies: 785
Views: 333,574
Posted By MAGNAT2645
Re: [ANY] SteamWorks

It seems that SteamWorks_SetGameDescription is broken (?) on the latest release from GitHub.
I have SW Game Description Override (https://forums.alliedmods.net/showthread.php?t=252712) and it worked...
Forum: Plugins 07-06-2020, 04:58
Replies: 253
Views: 38,226
Posted By MAGNAT2645
Re: [Any] Source Chat Relay [Discord <=> Ingame]

So, is there any fix for that bug?
Forum: Scripting 07-01-2020, 11:38
Replies: 3
Views: 326
Posted By MAGNAT2645
Re: Changing from client name to SteamID args

Shouldn't this be in Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107) forum?
Forum: Scripting 06-27-2020, 03:33
Replies: 41
Views: 31,974
Posted By MAGNAT2645
Re: Enum Structs Available This Holiday Season

this.a (which means this STest.a), not a.this
Forum: Plugins 06-23-2020, 09:25
Replies: 394
Views: 82,770
Posted By MAGNAT2645
Re: VPP Gaming Network Motd Adverts [HTML5]

Ok, so i should just wait then?
Forum: Plugins 06-23-2020, 07:31
Replies: 394
Views: 82,770
Posted By MAGNAT2645
Re: VPP Gaming Network Motd Adverts [HTML5]

What i must do next? I've posted an application on your site yesterday.
Application list says "Pending".
Do i need to just wait or do something?
Forum: Snippets and Tutorials 06-21-2020, 13:09
Replies: 68
Views: 25,829
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

Nah, that didn't help. I think better option is to reinstall OS but i need to somehow get backup archive from the server to avoid losing important information.

EDIT: The problem seems to have been...
Forum: Snippets and Tutorials 06-17-2020, 13:16
Replies: 68
Views: 25,829
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

I did some research and found out that now Ubuntu can't even ping google.com
Just throws

Temporary failure in name resolution


Same thing for commands like apt-get update (upgrade etc....
Forum: Snippets and Tutorials 06-17-2020, 04:10
Replies: 68
Views: 25,829
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

The problem in my case is that i can't even log in via SSH (even FTP/SFTP is not working now, actually most of services are "running" but not working, i can't even upgrade/update packages).
It...
Forum: Snippets and Tutorials 06-16-2020, 17:22
Replies: 68
Views: 25,829
Posted By MAGNAT2645
Re: [Linux] Source Query Proxy: DDoS Protection - Kernel redirection!

It might be stupid question but is there any autolaunch feature or you need to type "sqproxy run" every time when you reboot Linux? Also, is there any way to stop sqproxy process? I've noticed that...
Forum: Scripting 06-16-2020, 05:45
Replies: 7
Views: 390
Posted By MAGNAT2645
Re: Menu just fade out after chosing an option.

You can also use Menu.DisplayAt (https://www.sourcemod.net/new-api/menus/Menu/DisplayAt) inside MenuAction_Select (https://www.sourcemod.net/new-api/menus/MenuAction) action so your menu will display...
Forum: Plugins 06-10-2020, 15:35
Replies: 3
Views: 1,187
Posted By MAGNAT2645
Re: [TF2] Anti-Arena Latespawn

L 06/10/2020 - 14:49:33: [SM] Exception reported: Client index 0 is invalid
L 06/10/2020 - 14:49:33: [SM] Blaming: disabled/anti-latespawn.smx
L 06/10/2020 - 14:49:33: [SM] Call stack trace:
L...
Forum: Scripting 05-26-2020, 08:04
Replies: 2
Views: 139
Posted By MAGNAT2645
Re: Get Time

You can use FormatTime (https://www.sourcemod.net/new-api/sourcemod/FormatTime) and convert it to integer (https://www.sourcemod.net/new-api/string/StringToInt).
Here's example...
Forum: Scripting 05-21-2020, 03:48
Replies: 5
Views: 392
Posted By MAGNAT2645
Re: view_as dosent work?

String is an array of chars, you can't store array into one single integer variable.
You can convert int to string using IntToString (https://www.sourcemod.net/new-api/string/IntToString) and string...
Forum: Plugins 05-19-2020, 09:16
Replies: 253
Views: 38,226
Posted By MAGNAT2645
Re: [Any] Source Chat Relay [Discord <=> Ingame]

I dont know why but messages from gagged players still appear in Discord channel but not in-game.
I use MaterialAdmin (fork from older SB++) and it blocks messages using OnClientSayCommand...
Forum: Scripting 05-18-2020, 09:38
Replies: 6
Views: 398
Posted By MAGNAT2645
Re: How to play custom sound?

You could say sound is built into game. :D

Also actually you always need to use AddFileToDownloadsTable to send files from server to clients (only if sound is not built into game). As PC Gamer...
Forum: Scripting 05-17-2020, 12:51
Replies: 4
Views: 266
Posted By MAGNAT2645
Re: SteamWorks_GetUserGroupStatus

forward void SteamWorks_OnClientGroupStatus(int authid, int groupid, bool isMember, bool isOfficer)


and in your code

public void SteamWorks_OnClientGroupStatus(int authid, int groupid, bool...
Forum: Scripting 05-17-2020, 11:21
Replies: 4
Views: 266
Posted By MAGNAT2645
Re: SteamWorks_GetUserGroupStatus

You need to use SteamWorks_OnClientGroupStatus (https://github.com/KyleSanderson/SteamWorks/blob/master/Pawn/includes/SteamWorks.inc#L337) to receive answers from SteamWorks about group data.
...
Forum: Scripting 05-17-2020, 11:06
Replies: 6
Views: 398
Posted By MAGNAT2645
Re: How to play custom sound?

You need to put your sounds to tf/sound/ (tf/sound/custom in your case) directory of your server.
tf/download/sound/ is used only by client as i know.
Forum: Scripting 05-16-2020, 06:45
Replies: 4
Views: 313
Posted By MAGNAT2645
Re: How to kill an entity without "KillHierarchy"

If you need to pickup mines that are close to player you can just get two vectors (Player's origin and mine's origin) and check GetVectorDistance...
Forum: Scripting 05-09-2020, 02:06
Replies: 6
Views: 325
Posted By MAGNAT2645
Re: Local variable initialisation

That can be done with old syntax, example:

decl MyVar; // contains garbage


But SM 1.7+ always initializes variables with zeros. This might be a bug.
Forum: Scripting 05-08-2020, 15:16
Replies: 4
Views: 409
Posted By MAGNAT2645
Re: Help with HUD

You can also replace ShowHudText with ShowSyncHudText (https://www.sourcemod.net/new-api/halflife/ShowSyncHudText) but you need to CreateHudSynchronizer...
Showing results 1 to 25 of 311

 
Forum Jump

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


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