Raised This Month: $ Target: $400
 0% 

[Req] Admin_Access


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
VenomMix
Member
Join Date: Nov 2018
Old 08-29-2019 , 07:54   [Req] Admin_Access
Reply With Quote #1

Can you make these binds work only for admins with immunity?
eg. ADMIN_ACCESS ADMIN_IMMUNITY

HTML Code:
#include <amxmodx>
#include <engine>
#include <fakemeta>

new bool:is_sprinting[33] = false

public plugin_init() { 
	register_plugin("Speed","1.3","Unknown")
	register_clcmd("+sprint","start_speed") 
	register_clcmd("-sprint","end_speed") 
}

public start_speed(id){ 
	is_sprinting[id] = true
	return PLUGIN_HANDLED;
}
public end_speed(id){
	is_sprinting[id] = false
	return PLUGIN_HANDLED;
}

public server_frame(){
	for(new i=0; i < get_maxplayers(); i++) {
		if(is_sprinting[i] == true){
			set_speed(i);
		}
	}
}

public set_speed(id){
	if(!is_user_alive(id)) return PLUGIN_HANDLED;
	new Float:returnV[3], Float:Original[3]

	VelocityByAim ( id,600, returnV )
	pev(id,pev_velocity,Original)
	returnV[2] = Original[2]
	
	set_pev(id,pev_velocity,returnV)
	return PLUGIN_HANDLED;
}
VenomMix is offline
 


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 10:56.


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