Raised This Month: $128 Target: $400
 32% 

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: ThatKidWhoGames
Forum: Scripting 02-15-2021, 09:36
Replies: 3
Views: 241
Posted By ThatKidWhoGames
Re: Does OnPlayerRunCmd Ever Spew Invalid Client Indexes?

Hello,

Thank you for the fast reply guys! I appreciate it! :)

Thanks,
Grant
Forum: Scripting 02-15-2021, 09:02
Replies: 3
Views: 241
Posted By ThatKidWhoGames
Does OnPlayerRunCmd Ever Spew Invalid Client Indexes?

Hello,

Title. Throughout my testing, it seems as though it never does but I want to make sure. I am super OCD when it comes to optimizing my plugins!

Thanks,
Grant
Forum: Scripting 02-02-2021, 22:04
Replies: 6
Views: 821
Posted By ThatKidWhoGames
Re: [TF2] Prevent Bots from Moving or Attacking

You might be able to do something along the lines of hooking button presses for bots with OnPlayerRunCmd (https://sm.alliedmods.net/new-api/sdktools_hooks/OnPlayerRunCmd) and blocking them...
Forum: Plugins 01-29-2021, 14:40
Replies: 5
Views: 557
Posted By ThatKidWhoGames
Re: [ANY] SwapTeam Manager [Updated 22-01-21] Version 1.0.0

I could be wrong about this, but I noticed you put this into the code:
public Extension __ext_tf2 = {
name = "TF2 Tools", //This allows any game to load without "TF2 Tools Extension is required"...
Forum: Plugin/Gameplay Ideas and Requests 01-19-2021, 17:44
Replies: 2
Views: 281
Posted By ThatKidWhoGames
Re: Mute gunshot sounds

Gun shot sounds are client side by my understanding.
Forum: Scripting 01-17-2021, 14:49
Replies: 2
Views: 357
Posted By ThatKidWhoGames
Re: [TF2] Problem with Bot Creation Plugin

Hello,

Thank you for the reply! That did the trick, thanks! Yeah, the bots are intended to not be able to move. Out of curiosity, what made the issue occur with the GetRandomInt() function? Is it...
Forum: Scripting 01-16-2021, 14:27
Replies: 2
Views: 357
Posted By ThatKidWhoGames
[TF2] Problem with Bot Creation Plugin

Hello,

I am currently writing a plugin where admins can create bots (fake clients) using the command sm_bot. If no arguments are supplied, it creates a bot and sets their team to a random team and...
Forum: Plugins 01-05-2021, 08:26
Replies: 1
Views: 568
Posted By ThatKidWhoGames
Re: [ANY] Team Join Blocker

Very nice plug-in! I recall on TF2 players still being able to join a team although the command is blocked if they use the random team option. Might be something to look at.
Forum: Scripting 05-28-2020, 15:07
Replies: 2
Views: 341
Posted By ThatKidWhoGames
Re: KeyValues 'do' Loop Looping Twice?

That's it, thank you so much!
Forum: Scripting 05-28-2020, 14:28
Replies: 2
Views: 341
Posted By ThatKidWhoGames
KeyValues 'do' Loop Looping Twice?

Hello,

So for some very odd reason, it seems as though when I am parsing through KeyValues, the do loop loops twice when I have generated the text file that I want the KeyValues to use.

Here is...
Forum: Scripting 05-26-2019, 13:08
Replies: 11
Views: 1,519
Posted By ThatKidWhoGames
Re: MYSQL - How To Select a row and print it out

if (StrEqual(sName, "Tom")
{
PrintToChat(Client, "You sirname is Tom");
} else {
PrintToChat(Client, "Your sirname is NOT Tom");
}
Forum: Scripting 05-16-2019, 12:38
Replies: 5
Views: 1,300
Posted By ThatKidWhoGames
Re: How to get map names and add menu ?

Good catch, thanks! Updated my post to reflect Powerlord's proposed changes.
Forum: Scripting 05-15-2019, 10:14
Replies: 5
Views: 1,300
Posted By ThatKidWhoGames
Re: How to get map names and add menu ?

void CreateMapMenu(int client)
{
ArrayList array = new ArrayList(ByteCountToCells(64));
ReadMapList(array);
int length = array.Length;
if (!length)
{
delete array;
return;
}
Forum: Scripting 05-07-2019, 11:24
Replies: 5
Views: 1,187
Posted By ThatKidWhoGames
Re: How to get admin immunity?

stock void CreatePlayerMenu(int client, bool bots=false)
{
Menu menu = new Menu(Menu_Handler);
menu.SetTitle("Choose a player:");

char userid[11], buffer[256];
for (int i = 1; i <=...
Forum: Scripting 04-25-2019, 13:57
Replies: 6
Views: 1,779
Posted By ThatKidWhoGames
Re: Is ti possible to include .sp files?

I second this as well, makes organization so much easier.
Forum: Scripting 03-05-2019, 08:58
Replies: 8
Views: 1,253
Posted By ThatKidWhoGames
Re: HELP OnBanClient()

Correct. However, change the first %s to %N, and change the third %s to %i.
Forum: Plugins 02-06-2019, 11:42
Replies: 12
Views: 2,878
Posted By ThatKidWhoGames
Re: [TF2/ANY?]Projectile Camera

Cool idea, well done! :)
Forum: Plugin/Gameplay Ideas and Requests 02-06-2019, 11:39
Replies: 4
Views: 590
Posted By ThatKidWhoGames
Re: [REQ] CVar change when all players die

The IsValidClient check is unnecessary. You can simply just run IsClientInGame since the client is guaranteed to be >= 1 and <= MaxClients. Also, IsClientInGame already checks if IsClientConnected is...
Forum: Plugins 01-18-2019, 17:08
Replies: 23
Views: 10,698
Posted By ThatKidWhoGames
Re: [ANY] Voice Rooms (v0.3 - 2015-11-07)

People that use this plugin... be warned that users who are muted via BaseComm or SourceComms are able to speak to other players.
Forum: Scripting 01-11-2019, 09:54
Replies: 8
Views: 1,141
Posted By ThatKidWhoGames
Re: Sql Query Insert Problem

Database.Format automatically escapes any strings that you want to format into a query. If you want to use the standard Format function for formatting an SQL query, you would have to escape the...
Forum: Scripting 01-10-2019, 13:37
Replies: 8
Views: 1,141
Posted By ThatKidWhoGames
Re: Sql Query Insert Problem

Database.Format (https://sm.alliedmods.net/new-api/dbi/Database/Format) automatically escapes format specifiers for you.

char query[256], name[32];

GetClientName(client, name, sizeof(name));...
Forum: Scripting 12-24-2018, 22:11
Replies: 6
Views: 772
Posted By ThatKidWhoGames
Re: [TF2] Changing ammopacks and healthkit models

Check out this plugin, it might help you: https://forums.alliedmods.net/showthread.php?p=2416912
Forum: Plugins 12-19-2018, 14:14
Replies: 5
Views: 1,652
Posted By ThatKidWhoGames
Forum: Scripting 12-18-2018, 13:36
Replies: 8
Views: 1,499
Posted By ThatKidWhoGames
Re: blocking usermessage

I'm pretty sure gameME sends rcon commands through the control panel for the messages. I don't think a plugin does it. I could be wrong though.
Forum: Scripting 12-18-2018, 13:31
Replies: 4
Views: 1,390
Posted By ThatKidWhoGames
Re: First time using mysql in sourcemod

Change:
g_hDB.Format(sQuery, sizeof(sQuery), "INSERT INTO onlineplayers(name, steamid) VALUES('%s', '%s')", sSteamID, sName);
To:
g_hDB.Format(sQuery, sizeof(sQuery), "INSERT INTO...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 03:17.


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