Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: daz on July 09, 2008, 02:39:50 am

Title: A few noobish questions woot. [Resolved]
Post by: daz on July 09, 2008, 02:39:50 am
1. How can I enable/disable weapons per player/team from the menu? Is that even possible?
2. How can I change a player's team?
Title: Re: A few noobish questions woot.
Post by: Mistercharles on July 09, 2008, 02:53:23 am
1. No.
2. /setteamx y, where x is the team number you'd like to assign to the player with the id of y.
Title: Re: A few noobish questions woot.
Post by: EnEsCe on July 09, 2008, 03:28:45 am
1. http://enesce.com/help/index.html?Functions/SetWeaponActive.html
2. Command('/setteam# #'); (as above)
Title: Re: A few noobish questions woot.
Post by: daz on July 09, 2008, 01:51:22 pm
Thanks  :)
Title: Re: A few noobish questions woot. [Resolved]
Post by: DorkeyDear on July 09, 2008, 03:20:20 pm
I did make a thing that can set weapons per team; i havn't used it in a long time so I dont know how stable it is or buggy it is, hopefully not at all :P
http://curt.soldatrs.com/scripts/Map%20Specifications.zip
search on the releasesfor Map Specifications for more info

its used for more than just that though..
Title: Re: A few noobish questions woot. [Resolved]
Post by: daz on July 09, 2008, 06:51:03 pm
Oh another question.. how are player IDs treated when a player leaves?
Let's say I have 4 players. If player 3 leaves, will player 4's ID become 3?

- also about changing the team; there's no way to do it other than a text command? Would that work if I make a bot say it then? :S
Title: Re: A few noobish questions woot. [Resolved]
Post by: Boblekonvolutt on July 09, 2008, 07:06:46 pm
Player 4 will still have ID 4. And use Command('/setteam1 1').
Title: Re: A few noobish questions woot. [Resolved]
Post by: sly 3 4 me on July 09, 2008, 07:12:20 pm
Player 4 would keep that ID, and the next player to join will be assigned the lowest number (Which in that case would be 3). It works the same in other situations.
Title: Re: A few noobish questions woot. [Resolved]
Post by: mar77a on July 09, 2008, 07:36:07 pm
http://devs.soldat.pl/wiki/index.php/Player_ID