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

Noclip & Godmode


Post New Thread Reply   
 
Thread Tools Display Modes
watch
Senior Member
Join Date: Sep 2005
Old 08-14-2006 , 09:15   Re: Noclip & Godmode
Reply With Quote #21

Quote:
Originally Posted by allenwr View Post
set_user_godmode(player)
switch(get_cvar_num("amx_show_activity")) {
case 2: client_print(0,print_chat,"ADMIN %s: disabled godmode on %s",admin_name,target_name)
case 1: client_print(0,print_chat,"ADMIN: disabled godmod

to

set_user_godmode(player,0)
switch(get_cvar_num("amx_show_activity")) {
case 2: client_print(0,print_chat,"ADMIN %s: disabled godmode on %s",admin_name,target_name)
case 1: client_print(0,print_chat,"ADMIN: disabled godmod

same with no clip
Quote:
Originally Posted by allenwr View Post
the author needs to get on line and fix his plugin...
What do you mean... If you dont specify a second parameter it will be disabled

Code:
static cell AMX_NATIVE_CALL set_user_godmode(AMX *amx, cell *params) // set_user_godmode(index, godmode = 0); = 2 params
{
	/* Sets player godmode. If you want to disable godmode set only first parameter. */
	// params[1] = index
	// params[2] = godmode = 0

	// Check index.
	CHECK_PLAYER(params[1]);

	// Get player pointer.
	edict_t *pPlayer = MF_GetPlayerEdict(params[1]);

	if (params[2] == 1) {
		// Enable godmode
		pPlayer->v.takedamage = 0.0;	// 0.0, the player doesn't seem to be able to get hurt.
	}
	else {
		// Disable godmode
		pPlayer->v.takedamage = 2.0;	// 2.0 seems to be standard value?
	}

	return 1;
}
As for adding this to menu, i presume you would add something like this to addons/amxmodx/configs/clcmds.ini?
Code:
"Noclip player"	"amx_noclip #%userid%"		"b"	"u"
"Godmode player"	"amx_noclip #%userid%"		"b"	"u"
Correct me if im wrong, i dont use the menu plugins
__________________
Code:
#include <amusing_small_signiture>

Last edited by watch; 08-14-2006 at 09:18.
watch is offline
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 08-14-2006 , 13:07   Re: Noclip & Godmode
Reply With Quote #22

Quote:
Originally Posted by watch View Post
What do you mean... If you dont specify a second parameter it will be disabled


no it doesnt, or not at least for me I could not turn off noclip and or godmode, it was turned off on me and my friend after the round restarted... so i put a second parameter in there and it worked. its your plugin, but that what made it work for me.
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
watch
Senior Member
Join Date: Sep 2005
Old 08-14-2006 , 20:09   Re: Noclip & Godmode
Reply With Quote #23

:s

just tested it on both tfc and cs, it works fine
__________________
Code:
#include <amusing_small_signiture>
watch is offline
Xerxes
Member
Join Date: Jun 2005
Old 08-18-2006 , 08:22   Re: Noclip & Godmode
Reply With Quote #24

Works great. How about, amx_invisible ? :p
Xerxes is offline
You
New Member
Join Date: Sep 2006
Old 09-01-2006 , 14:35   Re: Noclip & Godmode
Reply With Quote #25

'amx_invisible' there is already one plugin with 'amx_invisible'

Anyway.I LOVE This plugin I use it everywhere
__________________
Join my server on Sven Coop.
On the server, I have ent
In the server,I have many plugins from here
Name: -= Ent By You Sweden Server =-
You is offline
Xerxes
Member
Join Date: Jun 2005
Old 09-01-2006 , 14:53   Re: Noclip & Godmode
Reply With Quote #26

Quote:
Originally Posted by You View Post
'amx_invisible' there is already one plugin with 'amx_invisible'

Anyway.I LOVE This plugin I use it everywhere
Show me please =/
Xerxes is offline
You
New Member
Join Date: Sep 2006
Old 09-02-2006 , 10:12   Re: Noclip & Godmode
Reply With Quote #27

Hmm,I dont remember from where.

Anyway I GONNA TO LEAVE THIS FUCKING SITE!

IT SUCKS ALOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
__________________
Join my server on Sven Coop.
On the server, I have ent
In the server,I have many plugins from here
Name: -= Ent By You Sweden Server =-
You is offline
St4r
Junior Member
Join Date: Sep 2006
Location: In your wife's closet
Old 09-16-2006 , 16:32   Re: Noclip & Godmode
Reply With Quote #28

lets see the results of the test...
Processing...
Processing...
Processing...
Processing...
Processing...
Processing...
Processing...




here it is
GODMODE WORKS FINE
NOCLIP DONT WORK
St4r is offline
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 09-16-2006 , 17:38   Re: Noclip & Godmode
Reply With Quote #29

as i said, it works best when you provide both parameters, both on and off and its chill
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
`666
AlliedModders Donor
Join Date: Jan 2006
Old 10-04-2006 , 22:56   Re: Noclip & Godmode
Reply With Quote #30

Thanks for the plugin Would be kool if you add amx_godmode @all & amx_noclip @all commands.
`666 is offline
Reply


Thread Tools
Display Modes

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 09:55.


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