How I can count the deaths in a zone and if its a gang
#1

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.
Reply
#2

Nobody can help me?
Reply
#3

Thanks for all this forum its the best!!!!
Reply
#4

//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!");
}
}
}
Reply
#5

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
Reply
#6

Quote:
Originally Posted by CTCCoco
Thanks for all this forum its the best!!!!
I know it is isnt it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)