02.08.2009, 20:32
Quote:
Originally Posted by clean180ollie-NightLife RP
Quote:
|
Im just trying to shorten this and make it neater:
Код:
Script_OnGangWarStart( zoneid, attackers, owner) { if (attackers == gGroupCHICKENS) SendAllFormattedText1(attackers,"CHICKENS HAVE STARTED A TURFWAR AGAINST", 0); else if (attackers == gGroupSKATERS) SendAllFormattedText1(attackers,"SKATERS HAVE STARTED A TURFWAR AGAINST", 0); else if (attackers == gGroupPIMPS) SendAllFormattedText1(attackers,"PIMPS HAVE STARTED A TURFWAR AGAINST", 0); else if (attackers == gGroupRICH) SendAllFormattedText1(attackers,"RICH HAVE STARTED A TURFWAR AGAINST", 0); else if (attackers == gGroupCOPS) SendAllFormattedText1(attackers,"COPS HAVE STARTED A TURFWAR AGAINST", 0); else if (attackers == gGroupPUNKER) SendAllFormattedText1(attackers,"PUNKER HAVE STARTED A TURFWAR AGAINST", 0); else if (attackers == gGroupMAFIASO) SendAllFormattedText1(attackers,"MAFIASO HAVE STARTED A TURFWAR AGAINST", 0); else if (attackers == gGroupMECHANICS) SendAllFormattedText1(attackers,"MECHANICS HAVE STARTED A TURFWAR AGAINST", 0); if (owner == gGroupCHICKENS) SendAllFormattedText2(owner,"CHICKENS ", 0); else if (owner == gGroupSKATERS) SendAllFormattedText2(owner,"SKATERS ", 0); else if (owner == gGroupPIMPS) SendAllFormattedText2(owner,"PIMPS ", 0); else if (owner == gGroupRICH) SendAllFormattedText2(owner,"RICH ", 0); else if (owner == gGroupCOPS) SendAllFormattedText2(owner,"COPS ", 0); else if (owner == gGroupPUNKER) SendAllFormattedText2(owner,"PUNKER ", 0); else if (owner == gGroupMAFIASO) SendAllFormattedText2(owner,"MAFIASO ", 0); else if (owner == gGroupMECHANICS) SendAllFormattedText2(owner,"MECHANICS ", 0); return 1; }