What to do with this now??? - 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: What to do with this now??? (
/showthread.php?tid=280151)
What to do with this now??? -
samtey - 30.08.2011
Hi all!
Wasn't here a longer time, I know!^^ But now I got a question:
I was asking a friend following:
I want gangwar messages, like: The Vagos are attacking our hood in [FOR EXAMPLE GANTON]...
We have provoked a gangwar against the Grove Street in [for example GANTON]....
He sent me them, but he also sent me the whooooole attacking system... I already got an attacking system and dunno what to do now....
Any help please?
Re: What to do with this now??? -
Darnell - 30.08.2011
Try combining them ?
Re : What to do with this now??? -
Naruto_Emilio - 30.08.2011
Post your code so we can give.... then i can help you
AW: What to do with this now??? -
samtey - 30.08.2011
PHP код:
forward ZoneTimer();
public ZoneTimer()
{
for(new i=0; i < sizeof(ZoneInfo); i++) // loop all zones
{
if(ZoneAttacker[i] != -1) // zone is being attacked
{
if(GetPlayersInZone(i, ZoneAttacker[i]) >= 1) // there must be at least 1 attacker left
{
ZoneAttackTime[i]++;
if(ZoneAttackTime[i] == TAKEOVER_TIME) // zone has been under attack for enough time and attackers take over the zone
{
GangZoneStopFlashForAll(ZoneID[i]);
ZoneInfo[i][zTeam] = ZoneAttacker[i];
GangZoneShowForAll(ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); // update the zone color for new team
ZoneAttacker[i] = -1;
}
}
else // attackers failed to take over the zone
{
GangZoneStopFlashForAll(ZoneID[i]);
ZoneAttacker[i] = -1;
}
}
}
}
That's a part, okay? If u want more, tell me!
@Darnell
What do you mean with "combine"??
Re : What to do with this now??? -
Naruto_Emilio - 31.08.2011
What are using gTeam or what.
AW: What to do with this now??? -
samtey - 31.08.2011
Yes, gTeam... It's an array, can u help?
Or anybody else??
Re: What to do with this now??? -
XwawawaX - 31.08.2011
You should just quit.