Page 1 of 1
Drop Weapon
Posted: Mon Nov 03, 2008 12:33 am
by HeavenBound
Hey, I need to write in to a Config file that All players drop their weap after 8 min. Anyone know how to write that in a Cfg file?
Thanks,
HB
Posted: Mon Nov 03, 2008 9:30 pm
by $oldier Of Ra
There's no cvar or anything in cfg's that can help you. Use scripting:
Code: Select all
hehe:
wait 480 //60 seconds * 8 = 480
for (local.i = 1; local.i <= $player.size; local.i++)
{
$player[local.i] dropitems
}
end
The dropitems command should make the player dump his entire inventory.
Posted: Tue Nov 04, 2008 12:03 am
by HeavenBound
This is what I did instead because you can pick up the weapon with that one....
Code: Select all
hehe:
wait 480 //60 seconds * 8 = 480
for (local.i = 1; local.i <= $player.size; local.i++)
{
$player[local.i] takeall
}
end
Posted: Tue Nov 04, 2008 7:36 pm
by $oldier Of Ra
Hey, I need to write in to a Config file that All players drop their weap after 8 min.
Then you shouldn't have said to drop players weapons but to take them away so they cannot use it.
So problem solved, but note that a player can respawn or intentionally change teams just to get a weapon again. But I don't know what your plans are.
Posted: Tue Nov 04, 2008 11:33 pm
by HeavenBound
lol Yeah, sorry.
If you were wondering what my plans are....
It's gunna be something called a "Skin Scrim" Where multiple clans all go into a server. Each clan wears a different skin, and at the end of 8 min. we count up the deaths of each clan.
We play a total of 5 rounds: Pistol, Rifle, MG, Sniper, and Shotgun
Thanks for the Help,
HB