Raised This Month: $ Target: $400
 0% 

noclip plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-09-2011 , 23:38   noclip plugin
Reply With Quote #1

What should I do?

Code:
#include <amxmodx>
#include <fun>

new user_noclip

new user_noclip_enable = false

public plugin_init()
{
	register_plugin("PLUGIN", "VERSION", "AUTHOR")

	user_noclip = register_cvar("user_noclip", "1")

	register_clcmd("say /noclip", "noclip")
}

public noclip(id)
{
	if(get_pcvar_num(user_noclip) == 1)
	{
		if(user_noclip_enable == false)
		{
			set_user_noclip(id, 1)

			user_noclip_enable = true
		}
		if(user_noclip_enable == true)
		{
			set_user_noclip(id, 0)

			user_noclip_enable = false
		}
	}
}
RuRuRu612754 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-10-2011 , 00:06   Re: noclip plugin
Reply With Quote #2

when client say "/noclip" we will be no clip, so?
__________________
Snaker beatter is offline
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-10-2011 , 00:23   Re: noclip plugin
Reply With Quote #3

yes
client say "/noclip" not noclip mode

The client in this state user_noclip_enable = false "/ noclip" says to noclip mode on
The client in this state user_noclip_enable = true "/ noclip" says to noclip mode on

this is my Ideally

Last edited by RuRuRu612754; 12-10-2011 at 00:25.
RuRuRu612754 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-10-2011 , 01:01   Re: noclip plugin
Reply With Quote #4

Can't understand you
__________________
Snaker beatter is offline
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-10-2011 , 02:01   Re: noclip plugin
Reply With Quote #5

sorry
I cannot speak english
I use google translation.
RuRuRu612754 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-10-2011 , 02:05   Re: noclip plugin
Reply With Quote #6

Must explain understandable
__________________
Snaker beatter is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-10-2011 , 02:38   Re: noclip plugin
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <fun>

new user_noclip

public plugin_init()
{
    
register_plugin("PLUGIN""VERSION""AUTHOR")

    
user_noclip register_cvar("user_noclip""1")

    
register_clcmd("say /noclip""noclip")
}

public 
noclip(id)
{
    if( 
get_pcvar_num(user_noclip) && is_user_alive(id) )
    {
        
set_user_noclip(id, !get_user_noclip(id))
    }


Last edited by ConnorMcLeod; 12-10-2011 at 02:41.
ConnorMcLeod is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 12-10-2011 , 05:00   Re: noclip plugin
Reply With Quote #8

@RuRuRu : Your bool must be an array in your case.

new bool:blabla[MAX_PLAYERS+1] where MAX_PLAYERS = 32, so blabla[33]
__________________
You can do anything you set your mind to, man.

Devil259 is offline
RuRuRu612754
Senior Member
Join Date: Sep 2011
Old 12-10-2011 , 07:01   Re: noclip plugin
Reply With Quote #9

all answer thanks
RuRuRu612754 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 11:46.


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