Jump to content
主视角中国

关于这个文件

网上找的,刚看了一下,这个PK3内文件weapon_give_take.crp可改成

任选武器的PK3

这是原稿

while(1)

{

for(local.i=1;local.i<=$player.size;local.i++)

{

if($player[local.i].done == NIL)

{

$player takeall //加入这一代码所有的人会没武器,然后再给....

if($player[local.i].dmteam == axis)//假如人物是德军

{

$player[local.i] give models/weapons/kar98sniper.tik//给这个人kar98sniper武器....

$player[local.i] give models/weapons/kar98.tik		//以下是德军的武器名称

$player[local.i] give models/weapons/mp44.tik		 //假如不想给德军mp44.将这整条代码删掉或前面加 "//"

$player[local.i] give models/weapons/panzerschreck.tik

$player[local.i] give models/weapons/shotgun.tik

$player[local.i] give models/weapons/steilhandgranate.tik

$player[local.i] give models/weapons/p38.tik

$player[local.i] give models/weapons/mp40.tik

$player[local.i] thread death

}

else if($player[local.i].dmteam == allies)//假如人物是盟军

{

$player[local.i] give models/weapons/springfield.tik//以下是盟军的武器名称

$player[local.i] give models/weapons/bar.tik

$player[local.i] give models/weapons/bazooka.tik

$player[local.i] give models/weapons/m1_garand.tik

$player[local.i] give models/weapons/shotgun.tik

$player[local.i] give models/weapons/m2frag_grenade.tik

$player[local.i] give models/weapons/colt45.tik

$player[local.i] give models/weapons/thompsonsmg.tik

$player[local.i] thread death

}

}

}

wait 1

}

end

death:



local.spec = 1

while(local.spec)

{

if(self == NULL)

local.spec = 0

else

{

if!(isalive self || self.dmteam == spectator)

{

self.done = NIL

local.spec = 0

}

}

wait 1

}



end


×
×
  • 创建新的...