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

[L4D2]Weapon push infected


Post New Thread Reply   
 
Thread Tools Display Modes
AK978
Senior Member
Join Date: Jun 2018
Old 06-20-2019 , 08:52   Re: [L4D2]Weapon push infected
Reply With Quote #11

v1.1 (error update).
v1.2 (fixed).

Code:
stock GetWeaponId(const String:weapon[]){
	for(new i = 0; i < MAXWEAPON; i++){
		if(StrEqual(weapon, WeaponNames[i],false)
		|| StrEqual(weapon, WeaponNames2[i],false)){
			return i;
		}
	}
	return -1;	
}
I don't know how to use your vip.

Last edited by AK978; 06-20-2019 at 08:59.
AK978 is offline
phoenix0001
Senior Member
Join Date: Apr 2010
Location: China
Old 06-20-2019 , 13:27   Re: [L4D2]Weapon push infected
Reply With Quote #12

Quote:
Originally Posted by AK978 View Post
v1.1 (error update).
v1.2 (fixed).

Code:
stock GetWeaponId(const String:weapon[]){
	for(new i = 0; i < MAXWEAPON; i++){
		if(StrEqual(weapon, WeaponNames[i],false)
		|| StrEqual(weapon, WeaponNames2[i],false)){
			return i;
		}
	}
	return -1;	
}
I don't know how to use your vip.
拥有ADMFLAG_KICK权限的玩家,无需使用命令!kickback_add,直接拿起武 器就有击退效果.
Players with ADMFLAG_KICK permission do not need to use the command! kickback_add, directly pick up the weapon to have a knockback effect.

没有DMFLAG_KICK权限的玩家,无法使用击退效果.
Players without DMFLAG_KICK permission cannot use the knockback effect.

1.2版本是拥有ADMFLAG_KICK权限的玩家开启以后,所有玩家包括BOT都可以使用. 这个功能太强大了,我只想给拥有ADMFLAG_KICK权限的玩家使用.
Version 1.2. After the player with ADMFLAG_KICK permission is turned on, all players including BOT can be used. This function is too powerful,I just want to use it for players who have ADMFLAG_KICK permission.
__________________
I like this BBS sharing of spirit

I come from China, my English is poor
phoenix0001 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 23:33.


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