Raised This Month: $119 Target: $400
 29% 

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: ThatKidWhoGames
Forum: Scripting 05-28-2020, 15:07
Replies: 2
Views: 282
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: 282
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,406
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,199
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,199
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,126
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,631
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,167
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: 13
Views: 2,619
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: 544
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,179
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,079
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,079
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: 717
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,446
Posted By ThatKidWhoGames
Forum: Scripting 12-18-2018, 13:36
Replies: 8
Views: 1,409
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,223
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...
Forum: Scripting 12-18-2018, 13:15
Replies: 2
Views: 641
Posted By ThatKidWhoGames
Re: TF2 Popup round end hud

https://wiki.alliedmods.net/Events_(SourceMod_Scripting)#Sending_Events
https://wiki.alliedmods.net/Team_Fortress_2_Events#teamplay_win_panel
Forum: Plugins 12-13-2018, 10:20
Replies: 302
Views: 101,746
Posted By ThatKidWhoGames
Re: Custom Votes Redux (v1.7 - 4/13/14)

For the commands, simply add a semicolon separating them:
sv_gravity 500;sv_accelerate 1
Forum: Scripting 11-30-2018, 08:57
Replies: 9
Views: 1,484
Posted By ThatKidWhoGames
Re: Optimized Code?

Thanks guys!!
Forum: Scripting 11-29-2018, 12:00
Replies: 9
Views: 1,484
Posted By ThatKidWhoGames
Optimized Code?

Hey all,

I just wanted to know if what I coded is the most efficient way of stat tracking with MySQL.

#include <sourcemod>
#include <tf2_stocks>

Database g_hDatabase;

public void...
Forum: Plugin/Gameplay Ideas and Requests 11-28-2018, 22:10
Replies: 3
Views: 726
Posted By ThatKidWhoGames
Forum: Plugins 11-27-2018, 13:31
Replies: 3
Views: 3,075
Posted By ThatKidWhoGames
Re: [TF2/ANY?] End of Round Friendly Fire (v2.0.0, 11/27/18)

Update: Version 2.0.0
COMPLETELY rewrote the plugin to make it simpler and compatible with multiple games.
If the plugin doesn't work with a game that your server is running, leave a post here!
Forum: Plugin/Gameplay Ideas and Requests 11-26-2018, 11:49
Replies: 2
Views: 538
Posted By ThatKidWhoGames
Re: Help: I need a plugin of choose player in team

Untested. Generates a config file called steamidteams.cfg in addons/sourcemod/configs. Valid values for teams in the config file are t (terrorists) and ct (counter-terrorists).
#include <sourcemod>...
Forum: Plugin/Gameplay Ideas and Requests 11-26-2018, 00:28
Replies: 5
Views: 740
Posted By ThatKidWhoGames
Re: [TF2] Hide name change message - in-game.

Why are you calling bf.ReadString twice?
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 09:05.


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