Page 2 of 2

Posted: Sat Apr 16, 2005 1:04 am
by no_mercy
weapons:
while (1)
{
$player take models/weapons/kar98sniper.tik // axis sniper rifle
$player take models/weapons/kar98.tik // axis rifle
$player take models/weapons/p38.tik // axis pistol
$player take models/weapons/mp40.tik // axis sub-machine gun
$player take models/weapons/mp44.tik // axis machine gun
$player take models/weapons/steilhandgranate.tik // axis nade
$player take models/weapons/panzerschreck.tik // axis rocket launcher
$player take models/weapons/springfield.tik // allied sniper rifle
$player take models/weapons/bar.tik // allied rifle
$player take models/weapons/colt45.tik // allied pistol
$player take models/weapons/thompsonsmg.tik // allied sub-machine gun
$player take models/weapons/m1_garand.tik // allied machine gun
$player take models/weapons/m2frag_grenade.tik // allied nade
$player take models/weapons/bazooka.tik // allied rocket launcher
$player take models/weapons/shotgun.tik // shotgun
$player take models/weapons/enfield.tik // british rifle
$player take models/weapons/Webley_Revolver.tik // british pistol
$player take models/weapons/sten.tik // british sub machine gun
$player take models/weapons/Mills_grenade.tik // british nade
$player take models/weapons/svt_rifle.tik // russian sniper rifle
$player take models/weapons/Mosin_Nagant_Rifle.tik // russian rifle
$player take models/weapons/Nagant_revolver.tik // russian pistol
$player take models/weapons/ppsh_smg.tik // russian sub machine gun
$player take models/weapons/Russian_F1_grenade.tik // russian nade
wait 2
}
end




This script takeall the weapons from the player, but i want to take only in the start of the map and then the player have to pick up the gun from the ground like in singleplayer but for multiplayer map. The problem with this script is that take the weapons in the start of the game and when i pick up a gun in the game. So the player is without a gun. Any ideas what else should submit in this script or i should use another script?? if yes how it could be?

Posted: Sat Apr 16, 2005 1:28 am
by Green Beret
i dont know how to start the map without having weapons without it doing it in a loop,but i do know how to make you have no weapons on respawn.

level waittill spawn
thread dead
end

dead:

while(1)
{
wait .25
for ( local.g = 1; local.g <= $player.size; local.g++ )
{
if !( IsAlive $player[local.g] && $player[local.g].died != 1)
{
$player[local.g].dead = 1
$player[local.g].died = 1
$player[local.g] thread death $player[local.g]
}
}
}
end
death local.dude:
if ( local.dude.dead == 1 && IsAlive local.dude )
{
local.dude.dead = 0
local.dude.died = 0
$player takeall
local.dude iprint "Find some weapons"
}
end

Posted: Sat Apr 16, 2005 1:31 am
by no_mercy
So you say me with this script i will not have weapons when i respawn and i can take them from down and they can not disepear?

Posted: Sat Apr 16, 2005 2:38 pm
by Green Beret
that is correct
:wink:

Posted: Sun Apr 17, 2005 11:00 pm
by no_mercy
Anyway this is not ecxatly what i'm looking for but anyway thanks i will need this too.
Thanks again.












let me put a rose tou your grave after a kill you.