Need a Little help from a good scripter
#5

Quote:
Originally Posted by Mr_FinnigaN
Quote:
Originally Posted by clean180ollie-NightLife RP
Quote:
Originally Posted by Mr_FinnigaN
I have 8 teams and i want to script something but get stuck on switch and if and else if.
I will use Cops as my example,so if Pimps attack it says"Pimps have Attacked Cops",Triads Attack it says"Triads have attacked Cops" and so on for ,Mechanics,Punkers,Skaters,Rich,Nang or Golfers .Then the same if someone attacks Pimps and so on for all 8 teams.

Any help would be awesome?
How Much You will pay?
Pay? I dont charge for my help to people so why would i pay?

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;
}
XD nobody scripts for free unless they wanna waste there time
Reply


Messages In This Thread
Need a Little help from a good scripter - by Mr_Finnigan - 02.08.2009, 18:53
Re: Need a Little help from a good scripter - by clean180ollie - 02.08.2009, 20:16
Re: Need a Little help from a good scripter - by Burridge - 02.08.2009, 20:18
Re: Need a Little help from a good scripter - by Mr_Finnigan - 02.08.2009, 20:32
Re: Need a Little help from a good scripter - by clean180ollie - 02.08.2009, 20:34
Re: Need a Little help from a good scripter - by Mr_Finnigan - 02.08.2009, 20:39
Re: Need a Little help from a good scripter - by clean180ollie - 02.08.2009, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)