Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum? Say hello in this topic! Also make sure to read the rules.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Need a Script
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
Need a Script
i'm searching for a Script that kills all the players from a team (like,when a certain objective is done,all the players from the loser team dies.)
is it even possible? thx!
is it even possible? thx!
1 x
Potato is Batata in BR-Portuguese
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
This is the script:
Use this function call when you need to kill an entire team:
KillTeam(PlayerTeam.Team4);
finally you have to use this range of values for choosing the team:
Code: Select all
public void KillTeam(PlayerTeam TeamtoKill){
foreach(IPlayer temp in Game.GetPlayers())
{
if(temp.GetTeam().Equals(TeamtoKill))
temp.Kill();
}
}
KillTeam(PlayerTeam.Team4);
finally you have to use this range of values for choosing the team:
2 x
Thx man! you helped me alot!
now i am in a bit of trouble... i got a Respawn Script,but it dont works! i got a lot of errors... without it,my map dont work man. do you know a "better" Respawn Script?
now i am in a bit of trouble... i got a Respawn Script,but it dont works! i got a lot of errors... without it,my map dont work man. do you know a "better" Respawn Script?
1 x
Potato is Batata in BR-Portuguese
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
Tell me what features the respawn script must have (like custom respawn locations or a countdown, you must specify everything you need).Coghner wrote:Thx man! you helped me alot!
now i am in a bit of trouble... i got a Respawn Script,but it dont works! i got a lot of errors... without it,my map dont work man. do you know a "better" Respawn Script?
1 x
its like,i am making about BOXES. there's 2 teams,the team who destroy the enemy box wins. im using Shut's Team select room,and i want them to respawn at their respective team base.
and i having some trouble to use the Team Kill Script,its giving me some errors :/ can you make a template map? i'm too idiot to use them without a "example" (sorry ;-;)
and i having some trouble to use the Team Kill Script,its giving me some errors :/ can you make a template map? i'm too idiot to use them without a "example" (sorry ;-;)
1 x
Potato is Batata in BR-Portuguese
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
Here there is the template map:
DOWNLOAD
If you have problems with your actual respawn script and if you want, you can give me the map by PM and I will adapt the scripts specially for the map.
DOWNLOAD
If you have problems with your actual respawn script and if you want, you can give me the map by PM and I will adapt the scripts specially for the map.
1 x
ok them.i thinks its very ugly atm,but you dont need to judge it xD
1 x
Potato is Batata in BR-Portuguese
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
- Guille_dlC
- Fighter
- Posts: 41
- Joined: Tue Sep 13, 2016 9:27 pm
- SFD Account: Guille_dlC
- SFD Alias: Ghost
- Started SFD: Pre-alpha 1.6.0
- Location: Madrid
- Gender:
- Age: 21
Wow Jack! You are a really cool guy, caring about other people's scripts 'n' maps! You are awesome!
0 x
Remove melee
- JakSparro98
- Superfighter
- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 25
I've changed the gamemode, disabled the death sequence and overhauled the map code,many things was useless for you, this because the used script was designed to add more gameplay mechanics, now it has only the used functions with a working respawn system, I hope it is what you wanted.
DOWNLOAD
DOWNLOAD
1 x
thx man,thats exactly what it wanted! you helped me a lot man,thx.
1 x
Potato is Batata in BR-Portuguese