CS:S Source Plugin Request.
Hello i am requesting a Button Plugin for Counterstrike Source I can pay for it np.
What must button do? Admins can only see what people spam on Button. its for Zombie escape. what it must do? 1) [Buttonname] (STEAMID) Playersname : Whats the Buttons name With colors. that is what it must do. |
Re: CS:S Source Plugin Request.
here is the one i have but this doenst work on all ze maps wit buttons #pragma semicolon 1
#include <sourcemod> #include <sdktools> #include <cstrike> #define VERSION "1.0" public Plugin:myinfo = { name = "ZK Button Spam Preventer", author = "I3D Nightshadow", description = "Logs button presses to chat. Original author Silence, editted for ZK by i3D Nightshadow", version = VERSION, url = "forum.i3d.net" }; public OnMapStart() { CreateTimer( 1.0, Hook_Buttons ); } public Action:Hook_Buttons( Handle:Timer ) { HookEntityOutput( "func_button" , "OnPressed", ButtonPressed ); } public ButtonPressed( const String:Output[], Caller, Activator, Float:Delay ) { if( Activator > 0 && Activator < MaxClients && IsClientConnected(Activator) && IsClientInGame(Activator)) { decl String:steam[32]; decl String:entity[64]; GetClientAuthString(Activator, steam, sizeof(steam)); GetEntPropString(Caller, Prop_Data, "m_iName", entity, sizeof(entity)); for (new i = 1; i <= MaxClients; i++) { if( IsClientInGame(i) ) { if( CheckCommandAccess(i, "sm_chat", ADMFLAG_CHAT) ) { PrintToChat(i, "\x03[ZK-Button]\x01 %N(%s) pressed button: %s", Activator, steam, entity ); } } } } } public OnMapEnd() { UnhookEntityOutput( "func_button" , "OnPressed", ButtonPressed ); |
Re: CS:S Source Plugin Request.
credits thanks
Code:
|
Re: CS:S Source Plugin Request.
thx i try that see if its work
|
Re: CS:S Source Plugin Request.
this works only on the map 4way IF the plugin is loaded on 4way. (change some code to make it load everytime)
also it will print out the name of the door only if it matches the names i hardcoded, remove that and it will print out something for every button pressed. but I gave you better source before to start with. this above only shows you how i did mine (which i changed already anyway) this one will attemp to fix the buttons on every map it loads (if they don't have the right flags) but take care that some maps use weird ways of making buttons like func_doors instead of func_button or whatever else. so you may need to decompile the map to see how the "button" actually works. it could be hard to make it work for every map. if you also want to output a custom name for each button, then you have to compare the button name to find a match and output whatever you want (see last quote) Code:
#include <sourcemod> Code:
GetEntPropString(caller, Prop_Data, "m_iName", entity, sizeof(entity)); |
Re: CS:S Source Plugin Request.
i cant compile ur latest its a error
|
Re: CS:S Source Plugin Request.
what kind of error? paste it with the [quote] tag
|
Re: CS:S Source Plugin Request.
the one u sent me doenst work. i need a sm plugin coder who can fix this problem its must be showing only for Admins a button plugin that print [Buttonname] Playersname (STEAMID) Buttons name with fancy colors. i seing some zombie escape communitys use it thats why.
|
Re: CS:S Source Plugin Request.
I've decompiled ze_sorrento_escape_v5 and noticed that Gargantua used func_rot_button instead of func_button. That's why the plugin didn't work on Gargantua maps. Added func_rot_button and also added/changed a few things from Nikooo777's code, thanks!
PHP Code:
|
All times are GMT -4. The time now is 20:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.