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

Showing results 1 to 25 of 500
Search took 0.23 seconds.
Search: Posts Made By: Powerlord
Forum: Scripting Yesterday, 20:19
Replies: 9
Views: 93
Posted By Powerlord
Re: Changed name persistent over Mapchange

What's the use case for this? I ask because Steam IDs are usually unique and kinda make usernames and passwords redundant.
Forum: Scripting Yesterday, 18:46
Replies: 5
Views: 73
Posted By Powerlord
Re: Issue with conditionals during a SQL query

LIKE doesn't do partial matches unless you use wildcards to tell it to. In SQL, _ matches a single character, and % matches any number of characters.

Bear in mind that to pass a % through a...
Forum: Source Servers (SRCDS) Yesterday, 18:44
Replies: 4
Views: 95
Posted By Powerlord
Re: TF2 server unable to start on archlinux

Just to make sure, have you used steamcmd to validate the server install?
Forum: Scripting 09-18-2018, 15:18
Replies: 4
Views: 77
Posted By Powerlord
Re: Play headshot sound to player

Try using EmitGameSoundToClient (https://sm.alliedmods.net/new-api/sdktools_sound/EmitGameSoundToClient) instead, assuming Valve didn't break it on CS:GO.

Edit: The various EmitGameSound functions...
Forum: Scripting 09-17-2018, 20:03
Replies: 8
Views: 179
Posted By Powerlord
Re: Hook moment of onpluginstart done for all plugins

What's the use case for this?

If you mean when your own plugin is late loading, OnAllPluginsLoaded is still called for that.

If you're designing a plugin that other plugins can use as an...
Forum: Scripting 09-09-2018, 00:31
Replies: 22
Views: 638
Posted By Powerlord
Re: Make weapons not dropable

Exactly. Because, as I recall, the way to prevent it is different for each of CS:GO, CS:S, TF2, and L4D/L4D2.
Forum: General 09-08-2018, 03:28
Replies: 2
Views: 123
Posted By Powerlord
Re: [Csgo] using sourcemod voting with a dynamic workshop map group

I'm not sure if anyone has ever figured out where CS:GO stores its mapcycle in memory.

I was really hoping they'd use a stringtable for this. TF2 does this... and it does such in such a way that...
Forum: Scripting 09-05-2018, 18:41
Replies: 4
Views: 262
Posted By Powerlord
Re: [TF2] Cannot mute minigun sounds...

As a side note, I think that the MvM Giant Heavy's weapon sounds are actually tied to the weapon he has equipped. That is, the Deflector (item index 850, item class "tf_weapon_minigun").

I'm not...
Forum: Scripting 09-05-2018, 18:30
Replies: 22
Views: 638
Posted By Powerlord
Re: Make weapons not dropable

Please don't make us search your post history to figure out which game you're talking about, because it actually does make a difference in this case.
Forum: Scripting 08-26-2018, 19:09
Replies: 12
Views: 348
Posted By Powerlord
Re: [SM] Exception reported: Client index 0 is invalid

It's not just about making it usable on all games, although I can see why you'd think that from the way I phrased it. It's also about making a dependency on a module that may not be loaded just to...
Forum: Scripting 08-26-2018, 10:24
Replies: 10
Views: 329
Posted By Powerlord
Re: Getting Current time?

UNIX timestamps (which is what GetTime returns) are the number of seconds since 1970-01-01 00:00:00 UTC, it should be the same regardless of what time zone the server is in.

FormatTime, on the...
Forum: Scripting 08-26-2018, 09:57
Replies: 12
Views: 348
Posted By Powerlord
Re: [SM] Exception reported: Client index 0 is invalid

That adds a dependency on the cstrike module, though.

Right now it works on any game, although it'd be weird to refer to the Survivors (L4D/L4D2), RED team (TF2), Combine (HL2:DM), or Allies...
Forum: Scripting 08-20-2018, 07:55
Replies: 7
Views: 169
Posted By Powerlord
Re: calling stock "ByteCountToCells" that has no generated code

I can't tell if you're being sarcastic or not. ByteCountToCells takes an int and returns another int. You may see it used on a sizeof instead of a bare int, but sizeof is a compiler directive that...
Forum: General 08-13-2018, 01:02
Replies: 5
Views: 357
Posted By Powerlord
Re: TF2 CreateDialog Not working anymore?

I can't say I'm surprised that this got restricted seeing as how dialogs can bypass the usual restrictions on servers changing client cvars.
Forum: Source Servers (SRCDS) 08-06-2018, 19:26
Replies: 353
Views: 28,267
Posted By Powerlord
Re: No MOTD in Panorama

Not sure if TF2 would be a good example to cite here since TF2 killed qplay completely roughly 2 years later.
Forum: Scripting 08-04-2018, 17:03
Replies: 2
Views: 103
Posted By Powerlord
Re: Problem with prop_ragdoll

Makes me wonder if tf_ragdoll has the same problem.
Forum: Scripting 08-03-2018, 21:22
Replies: 10
Views: 275
Posted By Powerlord
Re: SQL create column if not exists

You can use ALTER TABLE (https://www.sqlite.org/lang_altertable.html) to add new columns.

ALTER TABLE tablename ADD columname columntype

The more rows your table has, the longer ALTER TABLE...
Forum: Source Servers (SRCDS) 08-03-2018, 18:28
Replies: 10
Views: 511
Posted By Powerlord
Re: TF2 idle server

TF2 gives you item drops when you die.

However, there's a catch: Until you dismiss the current new item notification, you're not eligible for the next drop.

There's a lot of information about...
Forum: Scripting 07-31-2018, 18:04
Replies: 2
Views: 155
Posted By Powerlord
Re: Create leaderboard with clientprefs

You're probably better off using a database, even if it's SQLite.
Forum: Scripting 07-31-2018, 14:57
Replies: 4
Views: 156
Posted By Powerlord
Re: Players indexes after map change

Players essentially do a soft disconnect/reconnect between maps. On the SourceMod side, you see all forwards fired that you'd normally see when a player disconnects and reconnects.

Having said...
Forum: General 07-27-2018, 19:28
Replies: 27
Views: 681
Posted By Powerlord
Re: CSGO How can I mix workshop and regular maps?

Bear in mind that I haven't tested this in several years now, so it's possible that this has changed (or I could be wrong). You could always test it by changing the workshop list, then changing maps...
Forum: General 07-26-2018, 14:24
Replies: 27
Views: 681
Posted By Powerlord
Re: CSGO How can I mix workshop and regular maps?

In my experience, it happens at server restart.
Forum: General 07-26-2018, 12:23
Replies: 163
Views: 7,457
Posted By Powerlord
Re: [DISCUSSION] Why do you break the rules?

I'm pretty sure he's talking about the players who insist on things like !ws
Forum: Scripting 07-23-2018, 19:14
Replies: 4
Views: 148
Posted By Powerlord
Re: SQL_TQuery Function Prototypes do not match

What's the method signature for SQL_GenericQuery ? Because that's what it's complaining about.
Forum: General 07-23-2018, 17:54
Replies: 18
Views: 659
Posted By Powerlord
Re: Shouldn't the stocks inside .inc files always use "static"?

Does AMXModX support file-level static variables? I know SourceMod does.

Those have their uses too; specifically they're a global variable that prevents name collision in the plugins that use...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 04:29.


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