Raised This Month: $7 Target: $400
 1% 

Switch Option Menu HElp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
polimpo4
Member
Join Date: Jan 2017
Old 02-14-2018 , 03:37   Switch Option Menu HElp
Reply With Quote #1

I Want Speed And Get It Back to Normal But I Am Not Able To Come Back I Already Tried Many Ways.


Code:
case 6: { // 7

			if(is_user_alive(id))
			{	
				new get_user_maxspeed;
				if( get_user_maxspeed == 0) {
					client_print(id, print_chat, "%s %L",Nome_Clan, LANG_PLAYER,"SPEED_ON_MSG");
					set_user_maxspeed( id , get_user_maxspeed( id ) + 50.0 );
				}else {
					client_print(id, print_chat, "%s %L",Nome_Clan, LANG_PLAYER,"SPEED_OFF_MSG")
					set_user_maxspeed(id, 0);
				}
								
				if(get_cvar_num("write_log_file") == 1)
					log_amx("%s use a Admin Cheats: SpeedUP", User)
			}
			else
			{
				client_print(id, print_chat, "%s %L",Nome_Clan, LANG_PLAYER,"DIED_MSG")
				return PLUGIN_HANDLED;
			}
			
			client_cmd(id, "adminmenu")
		}
Anyone Can Help Me?
polimpo4 is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 02-14-2018 , 18:10   Re: Switch Option Menu HElp
Reply With Quote #2

Simple way: set_user_maxspeed(id, 250.0); // default knife speed
__________________
My English is A0
E1_531G 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 03:49.


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