Official Soldat Forums
Server Talk => Scripting Discussions and Help => Topic started 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?
-
1. No.
2. /setteamx y, where x is the team number you'd like to assign to the player with the id of y.
-
1. http://enesce.com/help/index.html?Functions/SetWeaponActive.html
2. Command('/setteam# #'); (as above)
-
Thanks :)
-
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..
-
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
-
Player 4 will still have ID 4. And use Command('/setteam1 1').
-
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.
-
http://devs.soldat.pl/wiki/index.php/Player_ID