Detects match results Need help
#1

well i wanted to add something unique for my TDM server so plus the map change system i want some thing that detects if for example team one killed 1 from team two a result appears saying :

Team One : Team Two
1 : 0

so when the Team One reaches 100 kills or more before the round time finishes the map changes announcing the winner and move to the next map

i am so sleepy i will check the replies tomorrow help me please +Rep

and i would really be happy with some examples
Reply
#2

dude checkout my works on the filterscript thread!
Reply
#3

Just an example:

pawn Код:
new TeamOneKills, TeamTwoKills;

public OnPlayerDeath(playerid, killerid, reason)
{
    if(gTeam[killerid] == Team_One) TeamOneKills ++;
    if(gTeam[killerid] == Team_Two) TeamTwoKills ++;
    if(TeamOneKills >= 100)
    {
        //Whatever happens if team 1 wins
    }
    if(TeamTwoKills >= 100)
    {
        //Whatever happens if team 2 wins
    }
    return 1;
}
Simply create a variable for the kills, and whenever the killerid on OnPlayerDeath kills someone, raise the kills of the killerid's team variable.
Reply
#4

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Just an example:

pawn Код:
new TeamOneKills, TeamTwoKills;

public OnPlayerDeath(playerid, killerid, reason)
{
    if(gTeam[killerid] == Team_One) TeamOneKills ++;
    if(gTeam[killerid] == Team_Two) TeamTwoKills ++;
    if(TeamOneKills >= 100)
    {
        //Whatever happens if team 1 wins
    }
    if(TeamTwoKills >= 100)
    {
        //Whatever happens if team 2 wins
    }
    return 1;
}
Simply create a variable for the kills, and whenever the killerid on OnPlayerDeath kills someone, raise the kills of the killerid's team variable.
Thanks Helped i will test it tomorrow and see it works
Reply
#5

Quote:
Originally Posted by djcabo
Посмотреть сообщение
dude checkout my works on the filterscript thread!
stop advertice your works djcabo , more then 7 fs in a day , are u kidding with me ?
let me help u djcabo , i give a explaination..
if u still remember this;

Nuke Filterscript - Copied from: https://sampforum.blast.hk/showthread.php?tid=223866
Neon System - Copied from: https://sampforum.blast.hk/showthread.php?tid=287650
AFK/BRB system - Copied from: https://sampforum.blast.hk/showthread.php?tid=332879
Glasses System - Copied from: https://sampforum.blast.hk/showthread.php?tid=251105
Anti-Spammer - Copied from: https://sampforum.blast.hk/showthread.php?tid=191915
SpeedBoost - Copied from: https://sampforum.blast.hk/showthread.php?tid=95079

https://sampforum.blast.hk/showthread.php?tid=363887 -[FS] 0.3e Simple Dialog Admin System [DCadmin]
https://sampforum.blast.hk/showthread.php?tid=363867 -[FS]Dj Cabo's Dialog Register System
https://sampforum.blast.hk/showthread.php?tid=363731 -[FS]Simple Speedometer
this 3 i dont found yet , but dont think i will not find it
you are a COPYCAT Learn how to script kid
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)