Drop Weapon

Want to recruit some people for your mod ? Want to work on a mod ? Post the relevant info here. Not for mapping questions.

Moderator: Moderators

Post Reply
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Drop Weapon

Post 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
HeavenBound

I'm new at this :)
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post 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.
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.
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post 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
HeavenBound

I'm new at this :)
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post 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.
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.
HeavenBound
Colour Sergeant
Posts: 85
Joined: Thu Sep 11, 2008 12:55 am

Post 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
HeavenBound

I'm new at this :)
Post Reply