Author Topic: Anti-Bravo Join and Votekick  (Read 976 times)

0 Members and 1 Guest are viewing this topic.

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Anti-Bravo Join and Votekick
« on: October 12, 2008, 05:36:22 am »
As the title says I need help making a script (im thinken with ARSSE) to move any human that joins bravo back to alpha, here is what i have so far:
In the ondata event
Code: [Select]
if $DATA = * has joined the bravo team.
/setteam1 <don't know what goes here>
endif
is that anywhare near correct? Also woulden't this put new zombies that I may add later on the alpha team?

And also how would I stop the votkick, changeteam, and votemap buttons from appearing/being selectable from the escape window? I don't have a clue whare to put this one. OnPlayerJoin?
Thank you.


Offline Toumaz

  • Veteran
  • *****
  • Posts: 1904
Re: Anti-Bravo Join and Votekick
« Reply #1 on: October 12, 2008, 05:44:44 am »
And also how would I stop the votkick, changeteam, and votemap buttons from appearing/being selectable from the escape window? I don't have a clue whare to put this one. OnPlayerJoin?
Thank you.
Can't really help you come ARSSE scripting, but to disable the voting, set Voting_Percentage to something above 100% in soldat.ini - it won't disable it, but no vote will ever pass.

If you'd want to use the built-in scripting core, however, the script would be:

Code: [Select]
procedure OnJoinTeam(ID, Team: byte);
begin
    if Team = 2 then
        Command('/setteam1 '+inttostr(ID));
end;
« Last Edit: October 12, 2008, 06:14:55 am by Toumaz »

Offline Hacktank

  • Camper
  • ***
  • Posts: 462
  • Soldat Scripter
    • HTZRPG
Re: Anti-Bravo Join and Votekick
« Reply #2 on: October 12, 2008, 01:02:54 pm »
Thanks. :)