Raised This Month: $108 Target: $400
 27% 

Showing results 1 to 25 of 500
Search took 0.13 seconds.
Search: Posts Made By: Powerlord
Forum: Scripting Yesterday, 10:23
Replies: 8
Views: 190
Posted By Powerlord
Re: Checking if a player hits "Next" and "Previous" in a menu

What problem? The menu isn't disposed until after the MenuAction_Cancel finishes. menu.Selection or GetMenuSelectionPosition should work until then.

You use these along with menu.DisplayAt or...
Forum: Scripting 01-17-2018, 08:13
Replies: 18
Views: 356
Posted By Powerlord
Re: [ANY] Native "ChangeClientTeam" reported: Client 32 is not in game

MAXPLAYERS + 1

The reason being that CS:S (and CS:GO?) can have 64 players plus SourceTV. Meaning that client indexes are 1-65 and you need an array of size 66.

Edit: Take into consideration...
Forum: Scripting 01-17-2018, 03:56
Replies: 18
Views: 356
Posted By Powerlord
Re: [ANY] Native "ChangeClientTeam" reported: Client 32 is not in game

Client indexes are entity indexes, and as you already pointed out, entity 0 is the console/world entity.

For a 32-player server, clients would be 1 through 32... but if you declare an array of...
Forum: Scripting 01-13-2018, 04:16
Replies: 4
Views: 123
Posted By Powerlord
Re: [L4D2] Detect difference between spectator and idle team?

Have you checked the netprop list for the player object in L4D2? I want to say it has a boolean netprop for whether they're currently replaced with a bot.
Forum: Scripting 01-12-2018, 23:56
Replies: 8
Views: 119
Posted By Powerlord
Re: [CSS] Menu with map elimination

SetNextMap and ReadMapList aren't part of mapchooser, they're part of SourceMod itself.

Having said that, I've spent a lot of time working on Mapchooser and its variants, so I have a pretty good...
Forum: Scripting 01-12-2018, 22:53
Replies: 8
Views: 119
Posted By Powerlord
Re: [CSS] Menu with map elimination

I forgot to mention, you can just call SetNextMap (https://sm.alliedmods.net/new-api/nextmap/SetNextMap) instead of using a ClientCommand to do it.

As for reading the previous map, you can't. ...
Forum: Scripting 01-12-2018, 22:08
Replies: 8
Views: 119
Posted By Powerlord
Re: [CSS] Menu with map elimination

I highly recommend reading the map list from a file instead. There's a dedicated command for this: ReadMapList (https://sm.alliedmods.net/new-api/sourcemod/ReadMapList), which will read them into an...
Forum: Source Servers (SRCDS) 01-12-2018, 20:41
Replies: 13
Views: 359
Posted By Powerlord
Re: setup a linux source server with limited threads

I don't think you can restrict the thread count, but you can restrict which CPU core(s) it uses by using the taskset (http://www.tutorialspoint.com/unix_commands/taskset.htm) command to start the...
Forum: Scripting 01-12-2018, 17:20
Replies: 1
Views: 59
Posted By Powerlord
Re: [L4D2] Voting - Opposite of StartMessageAll

There isn't one. You have to send another message to the user to get rid of the voting screen.

If things haven't changed in the past few years, those would be the VoteFail or VotePass...
Forum: Scripting 01-05-2018, 18:43
Replies: 13
Views: 437
Posted By Powerlord
Re: Detect if an NPC died with SDKHook?

While doing math, SourcePawn does implicit widening conversions from int/bool to float if one of the operands is already a float. This is actually a pretty common thing in programming.
Forum: Scripting 01-05-2018, 02:04
Replies: 13
Views: 437
Posted By Powerlord
Re: Detect if an NPC died with SDKHook?

...it never occurred to you to do this?

float health = entvictimhealth - damage;
if (health <= 0.0)
{
// He's dead, Jim
}
Forum: Scripting 01-04-2018, 18:47
Replies: 11
Views: 261
Posted By Powerlord
Re: GetClientAuthId giving STEAM_ID_STOP_IGNORI

Isn't GetClientAuthId with AuthId_Engine redundant inside OnClientAuthorized? It already returns the engine SteamID as the "auth" field.
Forum: HL1 Servers (HLDS) 12-31-2017, 18:54
Replies: 6
Views: 250
Posted By Powerlord
Re: steamcmd donwload hlds missing files

steamcmd appid 90 has been really buggy. It tends to not install all the server files on the first try.

Downloading the appmanifest files and manually putting them in the steamcmd appmanifest...
Forum: Source Servers (SRCDS) 12-31-2017, 18:41
Replies: 1
Views: 98
Posted By Powerlord
Re: S3: Client connected with ticket for the wrong game

What game are you running a server for and what steamcmd appid are you using for it?

Tip: If it's not CS:GO and you're using a 3-digit appid, you have the wrong server appid. Consult this list...
Forum: Source Servers (SRCDS) 12-27-2017, 13:42
Replies: 5
Views: 218
Posted By Powerlord
Re: Steam/Tools server -> STEAM validation rejected

Not sure why you didn't make a new topic for this, but...

Left 4 Dead 2 Dedicated Server now uses appid "222860"

Edit: This list...
Forum: Scripting 12-26-2017, 04:36
Replies: 8
Views: 229
Posted By Powerlord
Re: Printing the targetname doesn't work.

m_iName is the name of the netprop. I believe the keyvalue name is just "name"
Forum: General 12-24-2017, 22:44
Replies: 2
Views: 202
Posted By Powerlord
Forum: Scripting 12-23-2017, 22:43
Replies: 18
Views: 413
Posted By Powerlord
Re: Question: What is a ConVar.FloatValue's expected value?

SourceMod doesn't run timers every gameframe. It makes sure 0.1 seconds have passed since the last time it ran them (https://github.com/alliedmodders/sourcemod/blob/master/core/TimerSys.cpp#L230). ...
Forum: Scripting 12-20-2017, 16:32
Replies: 9
Views: 227
Posted By Powerlord
Re: Plugin late load

The OnAllPluginsLoaded hook exists for a reason. Just have your modules set to not do anything until it's called.
Forum: Scripting 12-20-2017, 06:03
Replies: 6
Views: 167
Posted By Powerlord
Re: Need Help with a Vote Menu

Don't use MenuAction_Select in a vote. You should use one of these instead:


Use MenuAction_VoteEnd. param1 will be the winning item and param2 can be passed to GetMenuVoteInfo...
Forum: Scripting 12-19-2017, 19:37
Replies: 11
Views: 340
Posted By Powerlord
Re: Help With Executing command

The Menus Step By Step page has a bunch of things you won't necessarily need in your menu. I should know seeing as how I wrote that page.
Forum: Source Servers (SRCDS) 12-19-2017, 19:30
Replies: 36
Views: 2,199
Posted By Powerlord
Re: TF2 Crash - https://crash.limetech.org/ylutzlnrzver

Dumb question, but is it only happening in plugins that are changing player models?
Forum: Scripting 12-18-2017, 02:14
Replies: 4
Views: 133
Posted By Powerlord
Re: How to get a map id from workshop?

...but you don't need to install this from the workshop as it's shipped with the game.
Forum: General 12-16-2017, 00:02
Replies: 1
Views: 109
Posted By Powerlord
Re: What do I delete from this blob of sourcepawn to get rid of the announcement in c

...you do know that the basecommands source (https://github.com/alliedmodders/sourcemod/blob/master/plugins/basecommands.sp) is shipped with SourceMod and you didn't have to decompile it to get said...
Forum: Scripting 12-14-2017, 15:53
Replies: 7
Views: 319
Posted By Powerlord
Re: [TF2] Blocking round end when players die on 1 team

The last argument appears to be whether this is the final round in a multi-round map.

Or at least I'm assuming that's what it's supposed to do. All it seems to do is use mp_bonusroundtime_final...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 16:12.


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