Raised This Month: $51 Target: $400
 12% 

[ANY] Dev Cmds (1.50) [05-Mar-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-26-2022 , 08:06   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #101

Suggest new command:

PHP Code:
RegAdminCmd("sm_incap",            CmdIncap,        ADMFLAG_ROOT"Incapacitate the player.");

public 
Action CmdIncap(int clientint argc)
{
    
SetEntityHealth(client1);
    
SDKHooks_TakeDamage(clientclientclient100.0DMG_GENERIC);
    return 
Plugin_Handled;

__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-26-2022 at 08:06.
Dragokas is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-26-2022 , 08:09   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #102

The New custom commands plugin already does this for L4D/2.
__________________
Silvers is offline
maclarens
Senior Member
Join Date: Jul 2020
Location: Kz
Old 02-02-2022 , 13:04   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #103

SourcePawn Compiler 1.10.0.6528

sm_dev_cmds.sp(2049) : warning 213: tag mismatch
sm_dev_cmds.sp(2600) : warning 213: tag mismatch
sm_dev_cmds.sp(2601) : warning 213: tag mismatch
sm_dev_cmds.sp(2602) : warning 213: tag mismatch
sm_dev_cmds.sp(2603) : warning 213: tag mismatch
sm_dev_cmds.sp(2604) : warning 213: tag mismatch
sm_dev_cmds.sp(2605) : warning 213: tag mismatch
sm_dev_cmds.sp(2606) : warning 213: tag mismatch
sm_dev_cmds.sp(2607) : warning 213: tag mismatch
sm_dev_cmds.sp(2608) : warning 213: tag mismatch
sm_dev_cmds.sp(2609) : warning 213: tag mismatch
sm_dev_cmds.sp(4440) : warning 213: tag mismatch
sm_dev_cmds.sp(4441) : warning 213: tag mismatch
sm_dev_cmds.sp(4448) : warning 213: tag mismatch
sm_dev_cmds.sp(4448) : warning 213: tag mismatch
sm_dev_cmds.sp(4449) : warning 213: tag mismatch



Last edited by maclarens; 02-02-2022 at 13:04.
maclarens is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-02-2022 , 14:51   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #104

Quote:
Originally Posted by maclarens View Post
SourcePawn Compiler 1.10.0.6528

sm_dev_cmds.sp(2049) : warning 213: tag mismatch
sm_dev_cmds.sp(2600) : warning 213: tag mismatch
sm_dev_cmds.sp(2601) : warning 213: tag mismatch
sm_dev_cmds.sp(2602) : warning 213: tag mismatch
sm_dev_cmds.sp(2603) : warning 213: tag mismatch
sm_dev_cmds.sp(2604) : warning 213: tag mismatch
sm_dev_cmds.sp(2605) : warning 213: tag mismatch
sm_dev_cmds.sp(2606) : warning 213: tag mismatch
sm_dev_cmds.sp(2607) : warning 213: tag mismatch
sm_dev_cmds.sp(260 : warning 213: tag mismatch
sm_dev_cmds.sp(2609) : warning 213: tag mismatch
sm_dev_cmds.sp(4440) : warning 213: tag mismatch
sm_dev_cmds.sp(4441) : warning 213: tag mismatch
sm_dev_cmds.sp(444 : warning 213: tag mismatch
sm_dev_cmds.sp(444 : warning 213: tag mismatch
sm_dev_cmds.sp(4449) : warning 213: tag mismatch
Just tried that version and didn't get any warnings. Don't know if you changed something. Make sure you update all the include files when updating SourceMod.
__________________
Silvers is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-02-2022 , 15:18   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #105

Quote:
Originally Posted by maclarens
.
Update your SM1.10 version, I have an old version as well and is outputting this warning too, but with the new releases (even 1.10) there are no warnings.
__________________
Marttt is offline
Electr000999
Senior Member
Join Date: Aug 2011
Old 02-14-2022 , 15:10   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #106

Quote:
Originally Posted by Silvers View Post
Just tried that version and didn't get any warnings. Don't know if you changed something. Make sure you update all the include files when updating SourceMod.
under last SM 1.11.0.6856:

Code:
SourcePawn Compiler 1.11.0.6856
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2021 AlliedModders LLC

..\scripting\sm_dev_cmds.sp(2049) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2574) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2575) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2576) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2577) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2578) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2579) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2580) : warning 213: tag mismatch (expected "int", got "SolidType_t")
..\scripting\sm_dev_cmds.sp(2600) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2601) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2602) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2603) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2604) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2605) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2606) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2607) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2608) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(2609) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(4440) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(4441) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(4448) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
..\scripting\sm_dev_cmds.sp(4449) : warning 213: tag mismatch (expected "int", got "SolidFlags_t")
Code size:         139644 bytes
Data size:         38256 bytes
Stack/heap size:      17412 bytes
Total requirements:  195312 bytes
i am think key of the warning is return type of GetEntProp is INT, but compared to SolidType_t enum

Code:
/**
 * Retrieves an integer value from an entity's property.
 *
 * This function is considered safer and more robust over GetEntData,
 * because it performs strict offset checking and typing rules.
 *
 * @param entity        Entity/edict index.
 * @param type          Property type.
 * @param prop          Property name.
 * @param size          Number of bytes to write (valid values are 1, 2, or 4).
 *                      This value is auto-detected, and the size parameter is
 *                      only used as a fallback in case detection fails.
 * @param element       Element # (starting from 0) if property is an array.
 * @return              Value at the given property offset.
 * @error               Invalid entity or property not found.
 */
native int GetEntProp(int entity, PropType type, const char[] prop, int size=4, int element=0);

Code:
enum SolidType_t
{
	SOLID_NONE			= 0,	// no solid model
	SOLID_BSP			= 1,	// a BSP tree
	SOLID_BBOX			= 2,	// an AABB
	SOLID_OBB			= 3,	// an OBB (not implemented yet)
	SOLID_OBB_YAW		= 4,	// an OBB, constrained so that it can only yaw
	SOLID_CUSTOM		= 5,	// Always call into the entity for tests
	SOLID_VPHYSICS		= 6,	// solid vphysics object, get vcollide from the model and collide with that
	SOLID_LAST,
};

if use instead:
Code:
if( GetEntProp(entity, Prop_Send, "m_nSolidType", 1) == SOLID_NONE )
this, it not warning:
Code:
if( GetEntProp(entity, Prop_Send, "m_nSolidType", 1) == view_as<int>(SOLID_NONE) )

Last edited by Electr000999; 02-14-2022 at 15:18.
Electr000999 is offline
Send a message via Skype™ to Electr000999
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-14-2022 , 16:10   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #107

1.11 issues/warnings will be fixed when 1.11 becomes stable, or closer to. I've changed things over time to fix 1.11 warnings but these are newer. These are just warnings, it doesn't affect functionality. I'll go through scripts when 1.11 is near final. Thanks for the heads up anyway.
__________________

Last edited by Silvers; 02-14-2022 at 16:11.
Silvers is offline
morzlee
Junior Member
Join Date: Jan 2022
Old 02-17-2022 , 22:27   Re: [ANY] Dev Cmds (1.31) [14-Dec-2021]
Reply With Quote #108

Hello Silvers, If i typed sm_ent but got nothing, how can I find this entity info.
I want remove c2m2 black garbage bags.
Standing on those black garbage bags will cause the screen to shake.
So I want find it info and use stripper remove it.
morzlee is offline
matkoby
Junior Member
Join Date: Feb 2021
Old 05-11-2022 , 12:14   Re: [ANY] Dev Cmds (1.34) [10-May-2022]
Reply With Quote #109

hiiiiii me new in plugins

Whats Comand Say For Look Wall Invicible O Hammer Of Wall

help pls
matkoby is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 10-24-2022 , 23:06   Re: [ANY] Dev Cmds (1.45) [10-Aug-2022]
Reply With Quote #110

Can add 2 news cmds?
similar to sm_tel arguments:
sm_setop <vector pos operator> [vector ang operator] // add or subtract values with the arguments
(or sm_setar - arithmetic)

Example:
sm_setop +10 -10 +100 -10 +180 0
Then this add or subtract to you current position and angles (angles can be optional)
(maybe can add variation of sm_setpos and sm_setang of this)

similar to sm_ent and sm_box:
sm_vertex <entity or blank to crosshair> // Displays info about the entity vmaxs and vmins.
(or sm_ver)

Example:
sm_vertex
output:
(same things of sm_ent and more)
vMaxs: 100 50 25
vMins: -25 -50 -100

Can fix sm_zspawnv when model is not precache? to prevent the game from crashing if the precache model is not detected or write a word by mistake.

Last edited by Tonblader; 10-24-2022 at 23:09.
Tonblader 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 14:16.


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