Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $52
Target: $400
13%
Page 1 of 20
1
2
3
11
>
Last
»
Showing results 1 to 25 of 500
Search took
0.06
seconds.
Search:
Posts Made By:
DJ Tsunami
Forum:
Scripting
04-04-2021, 07:46
Replies:
8
Checking for flag in script
Views:
557
Posted By
DJ Tsunami
Re: Checking for flag in script
This is wrong:
public Action TimerHit_CallBack(Handle timer, int userid, int client)
The Timer callback only has two parameters: https://sourcemod.dev/#/timers/typeset.Timer
You need to use a...
Forum:
Scripting
02-24-2021, 07:07
Replies:
12
Solved
KeyValues not working
Views:
561
Posted By
DJ Tsunami
Re: KeyValues not working
I don't know, works fine for me:
char filePath[PLATFORM_MAX_PATH + 1];
char scoreTag[MAXPLAYERS + 1][64];
char chatColor[MAXPLAYERS + 1][64];
char nameColor[MAXPLAYERS + 1][64];
public void...
Forum:
Scripting
02-24-2021, 05:54
Replies:
12
Solved
KeyValues not working
Views:
561
Posted By
DJ Tsunami
Re: KeyValues not working
See the last example on the wiki: https://wiki.alliedmods.net/KeyValues_(SourceMod_Scripting)#KeyValue_Creation
You need to use SetString to store values under the steamID key. An empty section...
Forum:
Scripting
02-24-2021, 04:17
Replies:
12
Solved
KeyValues not working
Views:
561
Posted By
DJ Tsunami
Re: KeyValues not working
Yes, although I don't see any reason why JumpToKey would ever return false here, so I think the if statement is unnecessary.
return; at the end of a function is also unnecessary.
Forum:
Scripting
02-24-2021, 04:03
Replies:
12
Solved
KeyValues not working
Views:
561
Posted By
DJ Tsunami
Re: KeyValues not working
You're passing true to JumpToKey to create the key if it doesn't exist, so naturally it will always return true. Then you need to use ExportToFile to make the key show up in the file.
Forum:
Extensions
02-20-2021, 06:24
Replies:
99
REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
Views:
54,672
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
If a LogMessage at the top of FrameHook doesn't spam your log file or the server console, then your game frame hook isn't firing, which explains why requests aren't processed.
If it's a public...
Forum:
Extensions
02-18-2021, 10:42
Replies:
99
REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
Views:
54,672
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
Which game is your server running, and what Linux distribution and version are you using?
I can send a debug version for Linux that prints everything that happens during the HTTP request, but if...
Forum:
Extensions
02-15-2021, 10:04
Replies:
99
REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
Views:
54,672
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
I did the same with version 1.2.3 and it works fine:
Maybe try another HTTP extension like SteamWorks to see if it really is an issue with REST in Pawn, or if there is an issue with your server....
Forum:
Extensions
02-15-2021, 08:35
Replies:
99
REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
Views:
54,672
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
You are missing http:// in your URL. I would also check your sourcemod/logs folder for errors.
Forum:
Plugin/Gameplay Ideas and Requests
02-14-2021, 01:34
Replies:
5
[L4D2] - Problem in the .sp code
Views:
398
Posted By
DJ Tsunami
Re: [L4D2] - Problem in the .sp code
You don't need the path to SourceMod to load a translations file, just call LoadTranslations(sTranslationFile);
Forum:
General
02-11-2021, 06:26
Replies:
5
SourcePawn compiler suggestion
Views:
287
Posted By
DJ Tsunami
Re: SourcePawn compiler suggestion
You are storing strings in an integer array. So those warnings are not so useless after all.
To use different variable types in an array probably want to use enum structs...
Forum:
Scripting
01-23-2021, 09:43
Replies:
3
Solved
Stripping everything but knife [CS:GO]
Views:
229
Posted By
DJ Tsunami
Re: Stripping everything but knife [CS:GO]
Because you used || instead of &&, so even if the string doesn't contain "knife", it will still continue if the string also doesn't contain "bayonet".
Forum:
General
01-17-2021, 07:00
Replies:
8
Why doesn't my SourceMod work on Linux?
Views:
737
Posted By
DJ Tsunami
Re: Why doesn't my SourceMod work on Linux?
You cannot copy your SourceMod installation from Windows to Linux, you need to download Metamod:Source and SourceMod for Linux:
https://metamodsource.net/downloads.php?branch=stable...
Forum:
Extensions
01-10-2021, 07:49
Replies:
570
[EXTENSION] Socket (3.0.1)
Views:
544,744
Posted By
DJ Tsunami
Re: [EXTENSION] Socket (3.0.1)
Use an HTTP extension like SteamWorks or REST in Pawn.
Forum:
Scripting
01-07-2021, 04:16
Replies:
4
[ANY] Check if player is a different one
Views:
471
Posted By
DJ Tsunami
Re: [ANY] Check if player is a different one
See the second example on https://wiki.alliedmods.net/Timers_(SourceMod_Scripting)#Simple_Values.
You want to pass the userid or client serial to the callback, which is unique for each client.
Forum:
Scripting
01-04-2021, 09:30
Replies:
3
What did the FindAdminByIdentity?
Views:
515
Posted By
DJ Tsunami
Re: What did the FindAdminByIdentity?
No, admins are read from the files or the database and stored in an in-memory cache. Functions like FindAdminByIdentity and RemoveAdmin then use that cache to find and remove admins.
There are no...
Forum:
Plugin/Gameplay Ideas and Requests
12-27-2020, 12:10
Replies:
1
Array must be indexed
Views:
205
Posted By
DJ Tsunami
Re: Array must be indexed
StringToInt(argument2)
Forum:
Plugins
12-27-2020, 07:23
Replies:
2,177
Advertisements 2.1 (Updated 2021/02/06)
Views:
1,386,299
Posted By
DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)
Your includes don't match your compiler version. Compile with the latest stable SourceMod release (https://www.sourcemod.net/downloads.php?branch=stable).
Forum:
Plugins
12-24-2020, 14:48
Replies:
2,177
Advertisements 2.1 (Updated 2021/02/06)
Views:
1,386,299
Posted By
DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)
That means your advertisements.smx was compiled for SourceMod 1.11, and will not load on 1.10. Just overwrite your advertisements.smx with the one from the latest release.
Forum:
General
12-20-2020, 15:37
Replies:
1
Any GetPlayerImmunity function?
Views:
377
Posted By
DJ Tsunami
Re: Any GetPlayerImmunity function?
public void OnClientPostAdminCheck(int client)
{
AdminId admin = GetUserAdmin(client);
if (admin != INVALID_ADMIN_ID)
{
int immunity = admin.ImmunityLevel;
}
}
Forum:
Scripting
12-20-2020, 13:00
Replies:
1
[CS:GO] For loop declaration is invalid :)
Views:
477
Posted By
DJ Tsunami
Re: [CS:GO] For loop declaration is invalid :)
You can't put logic in the global scope. You need to put it inside a function, like OnPluginStart.
https://wiki.alliedmods.net/Introduction_to_SourceMod_Plugins#Getting_code_to_run
Forum:
Plugins
12-15-2020, 05:32
Replies:
2,177
Advertisements 2.1 (Updated 2021/02/06)
Views:
1,386,299
Posted By
DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)
No, you would have to edit the plugin for that. I believe it's currently around 7 seconds to match a hint message. You can change the number 5 on line 242...
Forum:
Extensions
12-09-2020, 08:50
Replies:
99
REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
Views:
54,672
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
I can't reproduce this, are you sure you are using http://? You should only need a valid SSL certificate when using https://.
Forum:
Scripting
12-06-2020, 04:37
Replies:
5
[Help!] Showing Expiration Time of client from Sourcebans Donation Control
Views:
982
Posted By
DJ Tsunami
Re: [Help!] Showing Expiration Time of client from Sourcebans Donation Control
WHERE steam_id '%s';
You are missing an = here. You should add error handling in SQLCheckPerkQuery so you can catch mistakes in your query.
You are also passing GetClientUserId(client) to...
Forum:
Plugins
12-03-2020, 14:46
Replies:
2,177
Advertisements 2.1 (Updated 2021/02/06)
Views:
1,386,299
Posted By
DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)
The chat colors have to be lowercase now. I've only had one other person complain about it, so I haven't bothered to fix it.
Showing results 1 to 25 of 500
Page 1 of 20
1
2
3
11
>
Last
»
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
00:25
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode