Raised This Month: $52 Target: $400
 13% 

Invicible in seconds with server bind


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HowToRuski
Junior Member
Join Date: Feb 2019
Old 02-11-2019 , 16:36   Invicible in seconds with server bind
Reply With Quote #1

Hi, is there any script where you get invincible(god mode) by pressing button F aka flashlights button with admin flag h?

Last edited by HowToRuski; 02-11-2019 at 16:52.
HowToRuski is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 02-11-2019 , 20:27   Re: Invicible in seconds with server bind
Reply With Quote #2

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

public plugin_init()
{
	register_plugin("GOD Mode","0.1","SmileY");

	register_impulse(100,"FlashLight");
}

public FlashLight(id,impulse)
{
	if(access(id,ADMIN_LEVEL_H))
	{
		new Status = get_user_godmode(id);
		
		set_user_godmode(id,Status ? 0 : 1);
		
		client_print(id,print_chat,"[AMXX] God Mode %s. Press 'F' again to change...",Status ? "OFF" : "ON"); 
	}
	
	return PLUGIN_CONTINUE;
}
NOT Tested
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar,get_pcvar_num(pCvar) ? 1); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
HowToRuski
Junior Member
Join Date: Feb 2019
Old 02-12-2019 , 10:49   Re: Invicible in seconds with server bind
Reply With Quote #3

but if i want it active for like 3 seconds and it will deactivate and will be available again after a minute or so?
HowToRuski is offline
HowToRuski
Junior Member
Join Date: Feb 2019
Old 02-12-2019 , 15:20   Re: Invicible in seconds with server bind
Reply With Quote #4

Quote:
Originally Posted by ^SmileY View Post
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>

public plugin_init()
{
	register_plugin("GOD Mode","0.1","SmileY");

	register_impulse(100,"FlashLight");
}

public FlashLight(id,impulse)
{
	if(access(id,ADMIN_LEVEL_H))
	{
		new Status = get_user_godmode(id);
		
		set_user_godmode(id,Status ? 0 : 1);
		
		client_print(id,print_chat,"[AMXX] God Mode %s. Press 'F' again to change...",Status ? "OFF" : "ON"); 
	}
	
	return PLUGIN_CONTINUE;
}
NOT Tested
so can u pls help? i want it to be an available command in like every 60 seconds and the power lasts 3 seconds
HowToRuski is offline
Old 02-13-2019, 10:50
HowToRuski
This message has been deleted by asherkin.
Old 02-13-2019, 11:16
Mordekay
This message has been deleted by asherkin.
Old 02-13-2019, 11:24
HowToRuski
This message has been deleted by asherkin.
Old 02-13-2019, 12:23
Natsheh
This message has been deleted by asherkin.
Old 02-13-2019, 13:03
HowToRuski
This message has been deleted by asherkin.
Old 02-13-2019, 13:17
Mordekay
This message has been deleted by asherkin.
Old 02-13-2019, 14:25
HowToRuski
This message has been deleted by asherkin.
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 14:03.


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