Raised This Month: $48 Target: $400
 12% 

Showing results 1 to 25 of 500
Search took 0.19 seconds.
Search: Posts Made By: Powerlord
Forum: Scripting 02-14-2019, 05:23
Replies: 2
Views: 310
Posted By Powerlord
Re: AddNormalSoundHook. Client X is not connected

Yeah, don't do this

for (i = 0; i < numClients; i++)

at the same time you're doing this

numClients--;

The middle part of an if statement is evaluated on every loop, meaning that you're no...
Forum: Scripting 02-14-2019, 05:12
Replies: 4
Views: 383
Posted By Powerlord
Re: Managing the downloads table

Clients don't download files they already have, so I'm not sure what the point of this is.
Forum: Scripting 02-11-2019, 03:28
Replies: 9
Views: 622
Posted By Powerlord
Re: When are handles closed?

Are these ArrayLists and StringMaps created by your plugin or a different plugin?
Forum: Scripting 02-11-2019, 03:23
Replies: 12
Views: 761
Posted By Powerlord
Re: [H3LP] FindEntityInSphere

Worldspawn counts as one of the 2048 entities, specifically entity 0.
Forum: Scripting 02-09-2019, 19:37
Replies: 6
Views: 774
Posted By Powerlord
Re: [TF2] How to get HUD meters to display for other classes

My understanding is that some meters are tied to specific weapons while some are tied to specific weapon attributes.
Forum: General 02-09-2019, 18:05
Replies: 3
Views: 447
Posted By Powerlord
Re: Failed to get engine ptr

It would help to know what plugin sbp.smx is since it's manually calling SetFailState on line 65 to trigger this error.

At a guess, it needs a gamedata update.
Forum: Scripting 02-07-2019, 01:48
Replies: 21
Views: 2,351
Posted By Powerlord
Re: Enum Structs Available This Holiday Season

I can't help but notice when I try to include an enum struct in a native definition that the compiler tells me that I can't do this:

error 135: cannot use enum struct type "MapChoices_GetMapData"...
Forum: Scripting 02-06-2019, 13:30
Replies: 5
Views: 608
Posted By Powerlord
Re: Passing DataPack to a native?

Not sure if this is causing the issue, but I would change this:

DataPack pack = view_as<DataPack>(GetNativeCell(5));
to this
DataPack pack = null;
if (numParams >= 5) {
pack =...
Forum: Scripting 02-04-2019, 15:04
Replies: 5
Views: 633
Posted By Powerlord
Re: How to make menu with categories

You can get the value of the menu.Selection (https://sm.alliedmods.net/new-api/menus/Menu/Selection) property / GetMenuSelectionPosition...
Forum: Scripting 02-04-2019, 10:32
Replies: 2
Views: 569
Posted By Powerlord
Re: Function callbacks with enum structs?

It's because methods on methodmaps and enum structs have a hidden fourth argument representing the methodmap/struct itself.

So, your EnableChange method's signature is actually this:

void...
Forum: Scripting 02-04-2019, 00:10
Replies: 5
Views: 633
Posted By Powerlord
Re: How to make menu with categories

@CliptonHeist Why would you manually add a Back button when the Menu API has the option to do it for you?

For reference, it's the menu's ExitBackButton...
Forum: Snippets and Tutorials 02-03-2019, 15:22
Replies: 0
Views: 530
Posted By Powerlord
Print Valve Translations to clients

I thought I posted this a long time ago, but it turns out I didn't.

This is used to print Valve translations to chat, hint text, center text, or client console. Basically, this is a wrapper for...
Forum: General 02-03-2019, 12:43
Replies: 2
Views: 311
Posted By Powerlord
Re: [CSS] sourcemod not reading maplist.cfg

"default"
{
"target" "maplist.txt"
}

This needs to be a "file" like the others, or specify one of the other sections as the target.
Forum: Scripting 02-03-2019, 11:01
Replies: 6
Views: 629
Posted By Powerlord
Re: StartMessageAll Shake Error

In CS:GO, Shake should look something like this:

Handle message = StartMessageAll("Shake");
PbSetInt(message, "command", 0);
PbSetFloat(message, "local_amplitude", 30.0);
PbSetFloat(message,...
Forum: Scripting 02-03-2019, 10:53
Replies: 6
Views: 629
Posted By Powerlord
Re: StartMessageAll Shake Error

Which game is this for? I ask because CS:GO uses Protocol Buffer usermessages instead of Bitbuffer usermessages.
Forum: Scripting 02-02-2019, 08:18
Replies: 1
Views: 555
Posted By Powerlord
Re: How to redirect sound from music channel to general?

To my knowledge, music doesn't have its own dedicated channel. Instead, Source uses the music volume slider if the sound files are in the music directory.

You could always move it to a different...
Forum: General 01-22-2019, 20:24
Replies: 3
Views: 405
Posted By Powerlord
Re: Problem with server

Exception reported: Could not find a config file for any languages.

This makes me think that addons/sourcemod/configs/languages.cfg is missing or damaged, but that's just a guess.
Forum: General 01-22-2019, 20:20
Replies: 5
Views: 418
Posted By Powerlord
Re: A registry for plugins?

I'll be honest, something that would be far more useful than a plugin registry would be a compiler tool that can download a plugin's dependencies.

Yes, I realize that I'm literally describing what...
Forum: Source Servers (SRCDS) 01-21-2019, 12:53
Replies: 15
Views: 760
Posted By Powerlord
Re: Users can't connect to server after DDoS

Have you checked outgoing traffic? My understanding is that the game server uses port 26900 for outgoing traffic to Steam unless you override it using -sport on the command line.

Edit: For people...
Forum: Scripting 01-20-2019, 00:53
Replies: 3
Views: 812
Posted By Powerlord
Re: [L4D] HELP: IsClientConnected and IsClientInGame return FALSE always

When is this code running? If it's OnMapStart, that's why it's failing; the game disconnects all players between map changes even between maps in the same campaign.
Forum: Scripting 01-17-2019, 01:16
Replies: 3
Views: 782
Posted By Powerlord
Re: [L4D1] HELP: How to get an helicopter's entity?

Isn't it the m_ModelName datamap (with no i in it)?
Forum: Snippets and Tutorials 01-16-2019, 21:31
Replies: 24
Views: 3,180
Posted By Powerlord
Re: [ANY] Sourcemod-Resources (Last Updated 1/10/2019)

Last time I looked into VSCode syntax highlighting, it was based on a Mac editor's syntax highlighting that I wasn't familiar with.

Unfortunately, it seems like they've since buried the...
Forum: Source Servers (SRCDS) 01-12-2019, 19:12
Replies: 1
Views: 229
Posted By Powerlord
Re: PrintVotes not working

Mapchooser itself doesn't have a printvotes setting. Sourcemod itself has some print vote options in its sourcemod.cfg though:

// Specifies whether or not to display vote progress to clients in...
Forum: Scripting 01-11-2019, 18:14
Replies: 5
Views: 593
Posted By Powerlord
Re: Help with removing items

Weapon loadouts are applied after players respawn. Try hooking post_inventory_application instead.
Forum: General 01-08-2019, 15:24
Replies: 14
Views: 448
Posted By Powerlord
Re: SCRDS Not switching to workshop map on server start

Make sure you don't have a map or changelevel command in your autoexec.cfg
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 21:33.


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