Raised This Month: $ Target: $400
 0% 

SM Super Commands


Post New Thread Reply   
 
Thread Tools Display Modes
Navigateur
Junior Member
Join Date: Sep 2010
Old 03-29-2011 , 13:54   Re: SM Super Commands
Reply With Quote #441

Quote:
Features and Commands:

Armour - sm_armour <player> <armour>
HP - sm_hp <player> <hp>
Bury - sm_bury <player>, sm_unbury <player>
Igniting Players - sm_burn <player> <seconds>
Give item (weapons etc) - sm_weapon <player> <itemname> (eg weapon_ak47)
Teamswap - sm_teamswap
Move player team - sm_team <player> <teamid> (CSS 1-spec, 2-t, 3-ct)
Defuse Kit - sm_defuser <player> <1|0>
NightVision - sm_nv <player> <1|0>
Helmet - sm_helmet <player> <1|0>
God Mode - sm_god <player> <1|0>
Gravity - sm_gravity <player> <Float gravity multiplier> (eg 1.0 (normal), 0.5 (half))
Extend - sm_extend <minutes>
No Clip - sm_noclip <player> <1|0>
Speed - sm_speed <player> <Float speed multiplier> (eg 1.0 (normal), 2.0 (double))
Damage Done (shows damage done to other players in a hint text message)
- Cvar: sm_showdamage <1|0>
Respawn - sm_respawn <player>
Shutdown - sm_shutdown (forces players to retry as well, usefull if server auto restarts)
Connect Announce - Cvar: sm_connectannounce <1|0>
Admin See All - Cvar: sm_adminseeall <1|0>
Teleport - sm_teleport <player/@ALL/@CT/@T> <x/#saveloc> <y> <z>
Client Execute - sm_exec <player/@ALL/@CT/@T> <command string>
Get Player Location - sm_getloc <player> - leave blank for your location
Save Player Location - sm_saveloc - Saves your current location and gives you a saveloc number to use with teleport

Quote:
Then I restart the server and type !swap "Players name", and nothing happens. I even tried !give "Players name", still nothing happens?
So you must have to use this for:
- Swap : sm_teamswap or !teamswap or /teamswap
- Give weapons : sm_weapon or !weapon or /weapon (the item look like this weapon_ak47 or weapon_m4a1)

Cordialy
Navigateur is offline
HolyDuFF
Member
Join Date: Mar 2010
Old 04-16-2011 , 10:14   Re: SM Super Commands
Reply With Quote #442

The new CSS update broke the disarm function again... When you try to disarm someone the server crashes.
HolyDuFF is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-17-2011 , 00:20   Re: SM Super Commands
Reply With Quote #443

There great page where can see offsets
http://www.sourcemodplugins.org/inde...sets&appid=240

So your "disarm" is CCSPlayer::RemoveAllItems(bool)
Is now these offsets
Code:
"windows"   "334"
"linux"   "335"
edit that your gamedata file
Bacardi is offline
HolyDuFF
Member
Join Date: Mar 2010
Old 04-17-2011 , 10:09   Re: SM Super Commands
Reply With Quote #444

Ty it worked
HolyDuFF is offline
Simmy
Member
Join Date: Apr 2011
Old 05-05-2011 , 14:45   Re: SM Super Commands
Reply With Quote #445

Hi Pred

Any chance you could edit the script so that the 'admin sees it all' only shows for people with the generic admin flag of b instead of the 'custom4' tag? The way our server works is that supporters have the custom4 flag on them, which means they are able to see what everyone types instead of just proper admins, any chance u could adjust this at all so it only works for people with 'b' flag?

Many Thanks.
Simmy is offline
Jay Dogg
Senior Member
Join Date: Jan 2009
Old 05-06-2011 , 16:35   Re: SM Super Commands
Reply With Quote #446

Two really quick questions, is there an adminmenu_custom.txt file for this plug? or has some one made one and would be willing to share? And second should I be using 0.60 official or 0.61 unofficial on my linux server?

Any help would be great, Thanks Jay
Jay Dogg is offline
amohanlall32
SourceMod Donor
Join Date: Sep 2009
Location: Female
Old 05-29-2011 , 11:13   Re: SM Super Commands
Reply With Quote #447

Is there still no fix for the respawn command? Thanks to bacardi's post on how to fix disarm, respawn seems to be the only problem I have now.

Is it the signatures need updating or something?

Code:
		"Signatures"
		{
			"RoundRespawn"
			{
				"library"	"server"
				"windows"	"\x56\x8B\xF1\x8B\x06\xFF\x90*\x04\x00\x00\x8B\x86*\x0D\x00"
				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
			}
		}
__________________
amohanlall32 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 05-29-2011 , 11:33   Re: SM Super Commands
Reply With Quote #448

Quote:
Originally Posted by amohanlall32 View Post
Is there still no fix for the respawn command? Thanks to bacardi's post on how to fix disarm, respawn seems to be the only problem I have now.

Is it the signatures need updating or something?

Code:
		"Signatures"
		{
			"RoundRespawn"
			{
				"library"	"server"
				"windows"	"\x56\x8B\xF1\x8B\x06\xFF\x90*\x04\x00\x00\x8B\x86*\x0D\x00"
				"linux"		"@_ZN9CCSPlayer12RoundRespawnEv"
			}
		}
According to this Wiki page, here is the signature (use at your own risk as the contents are NOT guaranteed). Also, I don't think you need the signature to perform a respawn... Advanced Commands uses respawn w/o a need for the signature

Code:
\x56\x8B\xF1\x8B\x06\xFF\x90\xB8\x04\x00\x00\x8B\x86\xE8\x0D\x00\x00\x85\xC0\x74\x0E\x8B\x50\x18\x85\xD2\x74\x07\x8B\x48\x1C\x03\xCE\xFF\xD2
TnTSCS is offline
Teigen
Senior Member
Join Date: Jun 2011
Location: Norway
Old 06-18-2011 , 15:49   Re: SM Super Commands
Reply With Quote #449

Is there any way i can bind like "o" to a complete menu? while running away from zombies i have no time for console
EDIT: NVM I`ll do it myself
__________________
[url=steam://friends/add/76561197962940328]

Last edited by Teigen; 06-18-2011 at 16:24.
Teigen is offline
Send a message via MSN to Teigen Send a message via Skype™ to Teigen
TheVirus
Member
Join Date: Aug 2011
Old 09-29-2011 , 11:21   Re: SM Super Commands
Reply With Quote #450

Is it possible to make 'ADMINSEEALL' opt-outable for specific admins? I was going to give this a whirl by adding a custom flag to SourceBans (where we add admins) but I don't know if it's possible to add a new flag.

We have more than one server, so it'd be a pain to have a separate config file that listed out-out players. I wonder if sourcemod can read cl_* values and if a player can create a custom one.

Edit: I might have figured it out for users that don't use a specific custom flag.

Code:
#define ADMIN_OPTOUT ADMFLAG_CUSTOM3 // "q" flag
Then, I added a condition to the if() statement before the PrintToChat() for [ADMINSEEALL]:

Code:
if ((GetUserFlagBits(i) & ADMFLAG_CHAT) && (IsPlayerAlive(i) || (senderteam != team)) && !(GetUserFlagBits(i) & ADMIN_OPTOUT))
I just added:
!(GetUserFlagBits(i) & ADMIN_OPTOUT))

The issue that I have now is that any group that inherits those flags gets added to the opt-out list. I don't know how you can override a user from inheriting a flag from a group.

Edit 2: I moved away from custom flags and just went with a flat-file. Sadly, it's per-server.

LoadOptOutAdmins() is called from OnConfigsExecuted().

Code:
LoadOptOutAdmins()
{
	hOptOutArr = CreateArray(32); //Create a dynamic array of 32 blocks per member.
	
	decl String:optOutPath[256];
	decl String:adminSteamID[32];
	
	BuildPath(Path_SM, optOutPath, sizeof(optOutPath), "configs/super_command_optoutadmins.cfg");
	
	if (!FileExists(optOutPath))
	{
		LogError("Unable to locate opt-out file.");
		return;		
	}
	
	if((hOptOutFile = OpenFile (optOutPath, "r")) != INVALID_HANDLE)
	{
		while(!IsEndOfFile (hOptOutFile) && ReadFileLine (hOptOutFile, adminSteamID, sizeof (adminSteamID)))
		{
			TrimString(adminSteamID);
			if (strlen(adminSteamID) > 5)
			{
				PushArrayString(hOptOutArr, adminSteamID);
			}
		}
	}
	
	LogMessage("Opted-out %d admins from ADMINSEEALL", GetArraySize(hOptOutArr));
	CloseHandle(hOptOutFile);
}
Here's the change to the if()-statements:

Code:
if ((GetUserFlagBits(i) & ADMFLAG_CHAT) && (IsPlayerAlive(i) || (senderteam != team)) && FindStringInArray(hOptOutArr, clientsteamid) == -1)
I left out the various variable definitions, but they're just Strings and Handles.

Last edited by TheVirus; 09-29-2011 at 14:37.
TheVirus is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:45.


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