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
Drop Weapon
Moderator: Moderators
-
HeavenBound
- Colour Sergeant
- Posts: 85
- Joined: Thu Sep 11, 2008 12:55 am
Drop Weapon
HeavenBound
I'm new at this
I'm new at this
-
$oldier Of Ra
- Lieutenant Colonel
- Posts: 404
- Joined: Sun Oct 16, 2005 7:16 pm
- Location: Belgium
- Contact:
There's no cvar or anything in cfg's that can help you. Use scripting:
The dropitems command should make the player dump his entire inventory.
Code: Select all
hehe:
wait 480 //60 seconds * 8 = 480
for (local.i = 1; local.i <= $player.size; local.i++)
{
$player[local.i] dropitems
}
endOur official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
-
HeavenBound
- Colour Sergeant
- Posts: 85
- Joined: Thu Sep 11, 2008 12:55 am
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
}
endHeavenBound
I'm new at this
I'm new at this
-
$oldier Of Ra
- Lieutenant Colonel
- Posts: 404
- Joined: Sun Oct 16, 2005 7:16 pm
- Location: Belgium
- Contact:
Then you shouldn't have said to drop players weapons but to take them away so they cannot use it.Hey, I need to write in to a Config file that All players drop their weap after 8 min.
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.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)
For all your bot needs!!!!
$oldier Of Ra.
-
HeavenBound
- Colour Sergeant
- Posts: 85
- Joined: Thu Sep 11, 2008 12:55 am
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
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
HeavenBound
I'm new at this
I'm new at this