Raised This Month: $1950 Target: $400
 487% 

Showing results 1 to 25 of 315
Search took 0.01 seconds.
Search: Posts Made By: MAGNAT2645
Forum: Scripting Yesterday, 15:26
Replies: 5
Views: 117
Posted By MAGNAT2645
Re: Hook one entity button

You can create some tools to help yourself:

public void OnPluginStart() {
RegConsoleCmd( "sm_info", CMD_Info );
}

public Action CMD_Info(int client, int args) {
int iTarget =...
Forum: Scripting Yesterday, 14:25
Replies: 5
Views: 117
Posted By MAGNAT2645
Re: Hook one entity button

There's a lot of methods to determine entity index.
You can use FindEntityByClassname (https://www.sourcemod.net/new-api/sdktools_functions/FindEntityByClassname) but this can find ANY entity with...
Forum: Scripting Yesterday, 11:44
Replies: 5
Views: 117
Posted By MAGNAT2645
Re: Hook one entity button

You can HookEntityOutput (https://www.sourcemod.net/new-api/sdktools_entoutput/HookEntityOutput) (for every entity of the same class):

HookEntityOutput( "func_button", "OnPressed", MyCallback );...
Forum: Plugins Yesterday, 08:51
Replies: 163
Views: 47,919
Posted By MAGNAT2645
Re: [TF2] Bumper Cars 0x0D (Last updated 11/1/2015 | 3:30AM CDT)

I'm a little late but you can put cv_bumpercar_blockplayerdmg 0 into cfg/sourcemod/sourcemod.cfg
Forum: Scripting 07-11-2020, 12:53
Replies: 2
Views: 378
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: 336
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: 787
Views: 335,870
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: 787
Views: 335,870
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: 39,053
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: 334
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: 32,769
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: 83,161
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: 83,161
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: 26,263
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: 26,263
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: 26,263
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: 26,263
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: 400
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,210
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: 142
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: 406
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: 39,053
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: 406
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: 275
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: 275
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.
...
Showing results 1 to 25 of 315

 
Forum Jump

All times are GMT -4. The time now is 01:27.


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