How I can count the deaths in a zone and if its a gang - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How I can count the deaths in a zone and if its a gang (
/showthread.php?tid=69858)
How I can count the deaths in a zone and if its a gang -
CTCCoco - 21.03.2009
I make a turfs wars system, but I don't know How I can count if 4 players of a specific team death in a specific zone start a gang war.
How I can count the deaths of a gang in a zone?
Thanks for all, and sorry for my bad English.
Re: How I can count the deaths in a zone and if its a gang -
CTCCoco - 21.03.2009
Nobody can help me?
Re: How I can count the deaths in a zone and if its a gang -
CTCCoco - 21.03.2009
Thanks for all this forum its the best!!!!
Re: How I can count the deaths in a zone and if its a gang -
hazdog - 21.03.2009
//above main
new score[amount of gangs you have + 1]
public OnPlayerDeath(playerid, killerid, reason)
{
if(Team[playerid] == TEAM_grove && !IsPlayerInArea(X, X, Y, Y)
{
Score[0] += 1;
if(Score[0] == 4)
{
GangzoneFlashForAll(grove_zone,COLOR_GREEN);
SendClientMessageToAll(COLOR_RED,"A gang war has been provoked in grove street!");
}
}
}
Re: How I can count the deaths in a zone and if its a gang -
CTCCoco - 22.03.2009
Quote:
Originally Posted by hazdog
//above main
new score[amount of gangs you have + 1]
public OnPlayerDeath(playerid, killerid, reason)
{
if(Team[playerid] == TEAM_grove && !IsPlayerInArea(X, X, Y, Y)
{
Score[0] += 1;
if(Score[0] == 4)
{
GangzoneFlashForAll(grove_zone,COLOR_GREEN);
SendClientMessageToAll(COLOR_RED,"A gang war has been provoked in grove street!");
}
}
}
|
Thanks for all
Re: How I can count the deaths in a zone and if its a gang -
Kinetic - 22.03.2009
Quote:
Originally Posted by CTCCoco
Thanks for all this forum its the best!!!! 
|
I know it is isnt it