Raised This Month: $252 Target: $400
 63% 

Showing results 1 to 25 of 500
Search took 0.04 seconds.
Search: Posts Made By: DJ Tsunami
Forum: Scripting Today, 07:27
Replies: 1
Views: 29
Posted By DJ Tsunami
Re: [CSGO] Finding alive players on a team

bool IsPlayerAliveOnTeam(int team)
{
for (int i = 1; i <= MaxClients; i++) {
if (IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == team) {
return true;
...
Forum: Scripting 09-21-2020, 15:45
Replies: 5
Views: 141
Posted By DJ Tsunami
Re: [HELP] EmitSoundToClient issue

Care to share the solution for other people?
Forum: Unapproved Plugins 09-15-2020, 10:11
Replies: 139
Views: 11,921
Posted By DJ Tsunami
Re: [CS:GO] Weapon Stickers (!stickers)

That's weird, I'll take a look.

Edit: can't reproduce it, quasemago's eItems version shouldn't even get to line 27.
Forum: Extensions 09-13-2020, 06:05
Replies: 79
Views: 38,619
Posted By DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/07/16)

Minor update:

Added x64 and Mac builds
Added JSON decoding flags
Added ability to limit send and receive speed (thanks Kxnrl)
Set default user agent
Updated HTTPStatus enum
Updated...
Forum: Plugins 09-09-2020, 11:39
Replies: 2,151
Views: 1,321,662
Posted By DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)

Left 4 Dead 1 and 2 only support five chat colors: {default}, {teamcolor}, {green}, {lightgreen} and {yellow}.
Forum: General 09-04-2020, 16:10
Replies: 4
Views: 301
Posted By DJ Tsunami
Re: TF2 Unboxing Plugin?

Can you stop please asking questions in this forum? Use General.
Forum: General 09-02-2020, 07:06
Replies: 5
Views: 714
Posted By DJ Tsunami
Re: [CS:GO] Blocking auto mute offensive players on my server

As mentioned in another thread and on Discord:
sm_cvar sv_mute_players_with_social_penalties 0
Forum: Snippets and Tutorials 09-01-2020, 02:00
Replies: 1
Views: 456
Posted By DJ Tsunami
GraphQL API requests with REST in Pawn

If anyone is interested in making requests to a GraphQL API from a plugin, here is an example using REST in Pawn:


#include <sourcemod>
#include <ripext>

#pragma newdecls required
#pragma...
Forum: Scripting 08-26-2020, 05:31
Replies: 4
Views: 510
Posted By DJ Tsunami
Re: Stringify array?

The description is pretty clear.

So given "," as the join string, the result will be "Hello,there". You can then explode the string on "," to get the original array.

You have to pick a join...
Forum: Scripting 08-26-2020, 01:44
Replies: 2
Views: 362
Posted By DJ Tsunami
Re: How to fire an input on an entity that has a parameter?

Use one of the SetVariant functions before AcceptEntityInput.
Forum: Plugin/Gameplay Ideas and Requests 08-25-2020, 08:28
Replies: 3
Views: 246
Posted By DJ Tsunami
Re: How to detect damage or a bullet missed

if (damage == 0.0)
Although I'm not sure how OnTakeDamage would fire if the damage is 0.
Forum: Plugin/Gameplay Ideas and Requests 08-25-2020, 01:45
Replies: 2
Views: 283
Posted By DJ Tsunami
Re: Help needed with SQLMatches

What issues are you having?
Forum: Scripting 08-24-2020, 06:51
Replies: 2
Views: 339
Posted By DJ Tsunami
Re: [HELP]Exception reported: Entity 1 (1) is invalid

m_iDeflected is a plain integer, not an entity index, so use SetEntProp instead of SetEntPropEnt.
Forum: Scripting 08-24-2020, 04:32
Replies: 4
Views: 510
Posted By DJ Tsunami
Re: Stringify array?

If it's an array of strings: https://sourcemod.dev/#/string/function.ImplodeStrings
Forum: Scripting 08-22-2020, 09:32
Replies: 2
Views: 437
Posted By DJ Tsunami
Re: Redirect chat message to yourself

You need to pass the client index for %N:

PrintToChat(client, "%N: TEST %s", client, sArgs);

Also GetClientAuthString has been deprecated, use GetClientAuthId.
Forum: Plugins 08-18-2020, 09:58
Replies: 2,151
Views: 1,321,662
Posted By DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)

Yes, I don't know what those ***** are doing there. You also have a closing curly brace on line 3, which breaks everything after it anyway.
Forum: Plugins 08-16-2020, 14:05
Replies: 2,151
Views: 1,321,662
Posted By DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)

The issue is probably in an earlier part of the config, which causes later parts to break. For example a missing curly brace or quote, or an unescaped quote inside a key or value.

I would need to...
Forum: Plugins 08-16-2020, 07:57
Replies: 5
Views: 1,871
Posted By DJ Tsunami
Re: [CS:GO] Exploding grenades (dropped ones)

Update to the latest SourceMod build (https://sourcemod.net/downloads.php?branch=stable).
Forum: General 08-09-2020, 03:35
Replies: 4
Views: 512
Posted By DJ Tsunami
Re: [CSGO] Error Log

Replace FormatEx with g_hDB.Format on this line:
FormatEx(sQuery, sizeof(sQuery), "INSERT INTO `%s` (`Auth`, `Ip`, `Time`, `Type`, `Name`, `Timestamp`, `Reason`, `AdminAuth`, `AdminName`) VALUES...
Forum: Scripting 07-30-2020, 11:20
Replies: 2
Views: 467
Posted By DJ Tsunami
Re: [CS:GO] Problem with War3Source Mod (WC3)

If sm version still says 6490, the update failed. Make sure the server is completely stopped and that you update all the .so/.dll files, as explained on...
Forum: Plugins 07-26-2020, 08:28
Replies: 2,151
Views: 1,321,662
Posted By DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)

I can't reproduce it, but can you try the attached plugin? I think it should fix the issue regardless.

Edit: attachment removed, see latest release...
Forum: Scripting 07-26-2020, 07:10
Replies: 2
Views: 397
Posted By DJ Tsunami
Re: Lasermine kill event not working anymore

Make sure you update to SourceMod 1.10.0.6492 or 1.11.0.6603, which fixes OnTakeDamage after the last CS:GO update.
Forum: Plugins 07-24-2020, 05:12
Replies: 2,151
Views: 1,321,662
Posted By DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)

[/QUOTE]
What game? Does it happen when the server starts, when the map changes, or when you manually change sm_advertisements_interval?
Forum: Extensions 07-23-2020, 01:52
Replies: 79
Views: 38,619
Posted By DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/07/16)

You can pass a DataPack as value with any data you want.
Forum: Extensions 07-22-2020, 12:36
Replies: 79
Views: 38,619
Posted By DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/07/16)

No, if your HTTP client is defined globally, there's no reason to delete it. You can just reuse it for future requests.
Showing results 1 to 25 of 500

 
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