|
楼主 |
发表于 2002-11-30 19:49:48
|
显示全部楼层
来自 中国–湖北–武汉
谢谢斑竹 帮忙,可不知道怎么搞!好象很复杂
// Limit AWP
sm_mode3 set i
localinfo mawp 1 // set max. number of awp in one team
localinfo mact weapon_knife // you can set "drop" instead "weapon_knife"
sm_menu "Limit AWP (needs changelevel)\y\R{sm_mode3&i?ON:OFF}" "sm_mode3 {sm_mode3&i?remove:set{%.awpC=0}{%.awpT=0}} i"
// Reset some values
sm_reg "SM_MapStart i 3" "{%.awpC=0}{%.awpT=0}" ade
// We have lost our AWP
sm_reg "DeathMsg i 3" "{%.awp{v.id}?:#}{%.awp{v.team=CT?C:T}-1}{%.awp{v.id}=0}" ade
sm_reg "SM_Disconnect i 3" "{%.awp{p.id}?:#}{%.awp{p.team=CT?C:T}-1}{%.awp{p.id}=0}" bde
// Give warning if player can't buy more awp
sm_reg "ShowMenu i 3" "{%.awp{p.team=CT?C:T}<{I.mawp}?#}sm_tell2 #{p.uid} \'[SM] WARNING: Don't buy AWP! Your team can't use more AWPs!\' 3" bde "4&BuyRifle"
// We have bought or picked up the AWP
sm_reg "WeapPickup i 3" "{%.awp{p.id}?#}{%.awp{p.team=CT?C:T}+1}{%.awp{p.id}=1}" bde "1=18"
// AWP in hands
sm_reg "CurWeapon i 3" "{%.awph{p.id}=1}{%.awp{p.team=CT?C:T}>{I.mawp}?:#}sm_clexec2 #{p.uid} {I.mact};sm_tell2 #{p.uid} \'[SM] Your team can't use more AWPs!\' 3" bcde "1=1" "2=18"
// Check if we have lost our awp or just switched to another weapon
sm_reg "CurWeapon i 3" "{%.awph{p.id}=0}" bcde "1=0" "2=18"
sm_alias "drop" "{%.awph{p.id}?:#}{%.awp{p.id}=0}{%.awp{p.team=CT?C:T}-1}" ac
// Report about AWPs in teams
sm_alias "/awp" "sm_tell2 #{p.uid} \'[SM] {p.team}s have {%.awp{p.team=CT?C:T}?{W.{%.awpC}}awp:no awp}{%.awp{p.team=CT?C:T}!1?s}\' 3" b
这个就是awplimit.cfg的内容了,该怎么改??谢谢斑竹了:) |
|