If that's Zeph's store, then Zeph's store is coded really shittily.
PHP Code:
new GAME_CSS = false; new GAME_CSGO = false; new GAME_DOD = false; new GAME_TF2 = false; new GAME_L4D = false; new GAME_L4D2 = false;
Like, the fuck? First off, use new syntax. Jesus. Secondly, why use these ints set to false? Shit don't make sense. Just use EngineVersion and grab the game type that way.
sneaK
05-18-2017 17:56
Re: Random Code Archive
Quote:
Originally Posted by 404UserNotFound
(Post 2521432)
If that's Zeph's store, then Zeph's store is coded really shittily.
PHP Code:
new GAME_CSS = false;
new GAME_CSGO = false;
new GAME_DOD = false;
new GAME_TF2 = false;
new GAME_L4D = false;
new GAME_L4D2 = false;
Like, the fuck? First off, use new syntax. Jesus. Secondly, why use these ints set to false? Shit don't make sense. Just use EngineVersion and grab the game type that way.
Pretty sure it was made quite a long time ago and sold privately, and he ultimately released it quite some time down the road because the source was leaked.
headline
05-18-2017 18:01
Re: Random Code Archive
This is an old Zephyrus store? Lmao I didn't realize
404UserNotFound
05-18-2017 21:39
Re: Random Code Archive
Quote:
Originally Posted by sneaK
(Post 2521435)
Pretty sure it was made quite a long time ago and sold privately, and he ultimately released it quite some time down the road because the source was leaked.
Ohhhhh. That explains it then :oops:
nguyenbaodanh
09-28-2017 23:54
Re: Random Code Archive
would like to have the teabag plugin by zephy too :)) might be alot of fun
have found a download files here
tested on my csgo server, plugin loaded but not working. may be need to update it ... can some one help pls :)
headline
12-14-2017 05:43
Re: Random Code Archive
1 Attachment(s)
I'm no longer involved with my old gaming community, and none of this code is currently running on our servers, so I'll post lots of my old code here hoping that it because useful to someone. Have fun
Yes. Some of it is bad. I'm aware
shavit
12-15-2017 04:17
Re: Random Code Archive
I'll post some too because it might end up being useful, but I don't want to create threads and provide support if needed.
Admins List
!admins - open the admins list.
(admin command) !admins <0/1> - make yourself invisible or visible in the list. Admins can see other invisible admins.
Admins with an immunity level of 100 or above are completely invisible and don't show up to other admins either.
The plugin also has my SteamID hardcoded so it doesn't display me whatsoever, even to other admins. Comment the #define HIDESHAVIT line if you want to disable the functionality.
Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
#define PLUGIN_VERSION "1.0"
// comment if you care about micro-optimizations
#define HIDESHAVIT
bool gB_Visible[MAXPLAYERS+1] = {true, ...};
public Plugin myinfo =
{
name = "Admins List",
author = "shavit",
description = "swag",
version = PLUGIN_VERSION,
url = "http://forums.alliedmods.net/member.php?u=163134"
}
if(GetMenuItemCount(menu) == 0)
{
menu.AddItem(":(", "There are no admins online right now.\nBut hey - there might be a stealth one, so don't cause any issues, they may be watching you!");
}
menu.Display(client, 20);
return Plugin_Handled;
}
public int MenuHandler_Admins(Menu menu, MenuAction action, int param1, int param2)
{
if(action == MenuAction_End)
{
delete menu;
}
}
I don't know why, but someone asked me to write this before.
All it does is restart the round 10 seconds after the very first player connects, when a map changes.
Displays a player join/leave message message, but makes sure that the player isn't banned right now.
This was written because players could reconnect to a server endlessly before getting kicked via the SourceBans plugin and they would spam the server's chat.
public Plugin myinfo =
{
name = "[SB] Connect Message",
author = "shavit",
description = "Prints a dis/connection message for every player individually. Respects SourceBans(++) 1.5.x.",
version = "1.0",
url = "http://forums.alliedmods.net/member.php?u=163134"
}
// auth2 is being used for bans that are placed using the STEAM_0 format
// that's good for communities that run both CS:GO and other source engine game servers
char[] sQuery = new char[256];
FormatEx(sQuery, 256, "SELECT * FROM `sb_bans` WHERE (authid = '%s' OR authid = '%s') AND RemoveType IS NULL", auth, auth2);
PrintToChatAll("%s%N\x01 [\x04%s\x01] has \x02disconnected\x01.", gS_NameColor, client, sAuth);
}
}
CS:GO prestrafe
Enables prestrafing in CS:GO - extracted from KZTimer so it's very dated. I don't recommend running this if your server allows players to obtain weapons other than a pistol.
Use sv_friction 4 and sv_accelerate 5 with CS:GO Movement Unlocker instead if you're fine with the ground-sliding it adds, instead of this mess.
Code written by ofir753. I've seen people ask for it before but forgot I even have it.
It enables ground-strafing. I don't know if this code even works, but I remember ofir letting me test a working version in his server once; so it can possibly work.
Code:
#include <sourcemod>
#include <sdktools>
public Plugin:myinfo =
{
name = "Enable Gstrafe at Cs GO",
author = "Ofir",
description = "",
version = "1.0",
url = ""
};
#define DUCKHEIGHT 54.0
new bool:gb_isDucking[MAXPLAYERS+1];
new bool:gb_waitForGround[MAXPLAYERS+1];
new Float:gf_Velocity[MAXPLAYERS+1][3];
public OnClientPutInServer(client)
{
gb_isDucking[client] = false;
gb_waitForGround[client] = false;
}