Raised This Month: $68 Target: $400
 17% 

Showing results 1 to 25 of 500
Search took 0.08 seconds.
Search: Posts Made By: ThatKidWhoGames
Forum: Scripting 05-26-2019, 12:08
Replies: 11
Views: 1,098
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, 11:38
Replies: 5
Views: 978
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, 09:14
Replies: 5
Views: 978
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, 10:24
Replies: 5
Views: 944
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, 12:57
Replies: 6
Views: 1,106
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, 07:58
Replies: 8
Views: 963
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, 10:42
Replies: 13
Views: 1,549
Posted By ThatKidWhoGames
Re: [TF2/ANY?]Projectile Camera

Cool idea, well done! :)
Forum: Plugin/Gameplay Ideas and Requests 02-06-2019, 10:39
Replies: 4
Views: 427
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, 16:08
Replies: 22
Views: 7,781
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, 08:54
Replies: 8
Views: 858
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, 12:37
Replies: 8
Views: 858
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, 21:11
Replies: 6
Views: 560
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, 13:14
Replies: 5
Views: 823
Posted By ThatKidWhoGames
Forum: Scripting 12-18-2018, 12:36
Replies: 8
Views: 997
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, 12:31
Replies: 4
Views: 785
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, 12:15
Replies: 2
Views: 540
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, 09:20
Replies: 287
Views: 82,484
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, 07:57
Replies: 9
Views: 1,222
Posted By ThatKidWhoGames
Re: Optimized Code?

Thanks guys!!
Forum: Scripting 11-29-2018, 11:00
Replies: 9
Views: 1,222
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, 21:10
Replies: 3
Views: 590
Posted By ThatKidWhoGames
Forum: Plugins 11-27-2018, 12:31
Replies: 3
Views: 2,315
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, 10:49
Replies: 2
Views: 436
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-25-2018, 23:28
Replies: 5
Views: 518
Posted By ThatKidWhoGames
Re: [TF2] Hide name change message - in-game.

Why are you calling bf.ReadString twice?
Forum: Plugins 10-28-2018, 10:56
Replies: 3
Views: 1,577
Posted By ThatKidWhoGames
Re: [TF2/ANY?] Goomba Tracker

It needs to be noted that goomba.inc is required to compile this, hence why trying to download the plugin doesn't work. You need to upload the compiled plugin.
Forum: Plugins 10-24-2018, 10:31
Replies: 2,699
Views: 646,963
Posted By ThatKidWhoGames
Re: [TF2 Stats] With Web Ranking and Item Logger [v9.1.0]

In cfg/tf2-stats.cfg:
rank_show_on_connect "4" //Show rank on connect, 0 = Disabled, 1 = Client, 2 = All chat, 3 = Panel, 4 = Panel + All chat
Showing results 1 to 25 of 500

 
Forum Jump

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


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