Raised This Month: $443 Target: $400
 110% 

Showing results 1 to 25 of 500
Search took 0.41 seconds.
Search: Posts Made By: DJ Tsunami
Forum: Scripting 03-29-2020, 05:52
Replies: 5
Views: 115
Posted By DJ Tsunami
Re: FindEntityByClassName

You're right, when you pass -1 it starts at entity 0, so it should have been int ent = MaxClients; to start at MaxClients + 1.
Forum: Scripting 03-20-2020, 05:32
Replies: 10
Views: 345
Posted By DJ Tsunami
Re: [CSGO] Entity name not pulling back

Entity properties are not yet available in OnEntityCreated, you need to wait until the entity is spawned.
Forum: Scripting 03-11-2020, 17:47
Replies: 9
Views: 428
Posted By DJ Tsunami
Re: [CS:GO] GetClientTeam() returns incosistent numbers

if(GetClientTeam(client) == 1 || GetClientTeam(client) == 2) {
Shouldn't this be 2 and 3 (T and CT)?

And maybe you want GetTeamClientCount to only count players on T and CT.
Forum: Extensions 03-06-2020, 14:28
Replies: 67
Views: 26,489
Posted By DJ Tsunami
Re: REST in Pawn 1.1 - HTTP client for JSON REST APIs (Updated 2019/12/28)

So you base64-encoded "username:password" and appended the result after "Basic ", as explained on the page I linked?

Edit: seems to work.


public void OnPluginStart()
{
HTTPClient client...
Forum: Extensions 03-06-2020, 13:27
Replies: 67
Views: 26,489
Posted By DJ Tsunami
Re: REST in Pawn 1.1 - HTTP client for JSON REST APIs (Updated 2019/12/28)

Setting the Authorization header should work.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
Forum: Plugins 03-03-2020, 01:43
Replies: 2,108
Views: 1,258,848
Posted By DJ Tsunami
Re: Advertisements 2.0 (Updated 2016/03/23)

You can set the delay in server.cfg with:

sm_advertisements_interval 60



I released a new version with colors for L4D and L4D2:...
Forum: Scripting 03-01-2020, 05:03
Replies: 3
Views: 321
Posted By DJ Tsunami
Re: UserId max value

Although the Valve Developer Wiki (https://developer.valvesoftware.com/wiki/Userid) says it's a plain integer, if you look at the Source Game Events...
Forum: Scripting 02-24-2020, 05:46
Replies: 3
Views: 390
Posted By DJ Tsunami
Re: [L4D2]Keyman.sp compiling issue

The GetEntityRenderColor function already exist in SourceMod, you need to rename your function.
Forum: Scripting 02-22-2020, 12:58
Replies: 7
Views: 496
Posted By DJ Tsunami
Re: KickClient Message translation

As explained on https://wiki.alliedmods.net/Translations_(SourceMod_Scripting)#Usage_in_a_Plugin, %t only works in functions that act directly on one or more clients, like PrintToChat. For FormatEx...
Forum: General 02-22-2020, 08:11
Replies: 5
Views: 604
Posted By DJ Tsunami
Re: Do not load my settings in server.cfg

Balancer HP has its own .cfg file in cfg/sourcemod, which is loaded after server.cfg. So you need to set your cvars there.
Forum: General 02-18-2020, 07:03
Replies: 3
Views: 259
Posted By DJ Tsunami
Re: can't run ambuild

Did you run checkout-deps.sh from the sourcemod/tools directory?
Forum: SourceBans / SourceBans++ 02-16-2020, 13:31
Replies: 1
Views: 483
Posted By DJ Tsunami
Re: SourceSleuth: Database query error: Table 'sourcebans.sb__bans' doesn't exist

Looks like you set the database prefix to "sb_" instead of "sb".
Forum: Scripting 01-11-2020, 11:28
Replies: 12
Views: 581
Posted By DJ Tsunami
Re: Return a Function

Well Call_StartFunction requires a plugin handle and a Function pointer anyway, so you would need to return both things. And I imagine the point of RegItemBehavior is to store these things, so it's...
Forum: Scripting 01-11-2020, 10:44
Replies: 12
Views: 581
Posted By DJ Tsunami
Re: Return a Function

You would have a private forward for each behavior (onUse, onEquip, etc.). Then add a native for each forward so you can call it from other plugins.

Simply don't call PrivateForward.AddFunction if...
Forum: Scripting 01-10-2020, 20:10
Replies: 12
Views: 581
Posted By DJ Tsunami
Re: Return a Function

Why though? What's the use-case for returning a function from a native?
Forum: Extensions 12-28-2019, 06:00
Replies: 67
Views: 26,489
Posted By DJ Tsunami
Re: REST in Pawn 1.1 - HTTP client for JSON REST APIs (Updated 2019/12/28)

New release:

Switched to cURL multi interface with libuv for better performance
Added HTTP/2 support
Added ability to get response headers
Added JSONObject.HasKey native (thanks Rachnus)
...
Forum: SourceBans / SourceBans++ 12-23-2019, 04:20
Replies: 27
Views: 1,997
Posted By DJ Tsunami
Re: Change ""You have been banned by this server, check {1} for more info""

It might be a bug in SourceBans++ then, because http://159.224.163.245/index.php?p=submit does show the hostname in the Server dropdown.

I would create an issue on...
Forum: SourceBans / SourceBans++ 12-22-2019, 15:57
Replies: 27
Views: 1,997
Posted By DJ Tsunami
Re: Change ""You have been banned by this server, check {1} for more info""

Open http://159.224.163.245/sb_debug_connection.php.

As it shows, the UDP port is blocked, so your web panel cannot get any server info.
You need to ask your web hosting company to unblock port...
Forum: Scripting 11-12-2019, 14:50
Replies: 2
Views: 272
Posted By DJ Tsunami
Re: sm_datamaps_dump sm_netprops_dump are not working.

It's sm_dump_datamaps, not sm_datamaps_dump.
Forum: Scripting 11-10-2019, 09:34
Replies: 2
Views: 313
Posted By DJ Tsunami
Re: How to get player I am pointing at?

GetClientAimTarget (https://sm.alliedmods.net/new-api/sdktools_functions/GetClientAimTarget)
Forum: Scripting 11-05-2019, 13:58
Replies: 15
Views: 1,161
Posted By DJ Tsunami
Re: Passing CTakeDamageInfo to an SDKCall?

It's unclear from your first post what you are actually trying to do. If you're trying to inflict damage, what are you expecting the call to return?

Either way, the custom CTakeDamageInfo object...
Forum: Scripting 11-05-2019, 03:30
Replies: 15
Views: 1,161
Posted By DJ Tsunami
Re: Passing CTakeDamageInfo to an SDKCall?

Can't you just use SDKHooks_TakeDamage (https://sm.alliedmods.net/new-api/sdkhooks/SDKHooks_TakeDamage)? It uses a custom CTakeDamageInfo object to inflict damage.
Forum: Scripting 10-29-2019, 09:16
Replies: 3
Views: 370
Posted By DJ Tsunami
Re: [TF2] Best way to detect whether player is invulnerable-ubered?

The conditions are a netprop, so you can use TF2_IsPlayerInCondition(client, TFCond_Ubercharged).
Forum: Scripting 10-21-2019, 06:58
Replies: 3
Views: 366
Posted By DJ Tsunami
Re: How to acquire a game's Linux server binary without any Linux machines/VMs?

Install a Linux VM? VirtualBox and Ubuntu are free.
Forum: Extensions 10-18-2019, 14:50
Replies: 11
Views: 2,933
Posted By DJ Tsunami
Re: Need some basic help with extensions

So you would call FireChatEvent inside that function.
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 22:26.


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