Detects match results Need help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Detects match results Need help (
/showthread.php?tid=363941)
Detects match results Need help -
[GF]Logic - 29.07.2012
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
Re: Detects match results Need help -
djcabo - 29.07.2012
dude checkout my works on the filterscript thread!
Re: Detects match results Need help -
Kindred - 29.07.2012
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.
Re: Detects match results Need help -
[GF]Logic - 29.07.2012
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
Re: Detects match results Need help -
Devilxz97 - 29.07.2012
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;
Quote:
Originally Posted by djcabo
|
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