Need a Little help from a good scripter
#1

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

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?
Reply
#3

You're on about gang terrortories. Yes?
Reply
#4

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

look im not getting into it with you,life is to short.


Look at the last 10 pages in this topic "scripting help"

look at how many nice people helped other people with sometimes very involved scripting and never charged a dime for it.


So please leave my topic alone now,im not paying for someone to tell me how to go:

If attacker is %s and owner is %s the message displays in middle of screem saying "cops is attacking pimps turf" im just mnot sure how the whole %s thing works
Reply
#7

Quote:
Originally Posted by Mr_FinnigaN
look im not getting into it with you,life is to short.


Look at the last 10 pages in this topic "scripting help"

look at how many nice people helped other people with sometimes very involved scripting and never charged a dime for it.


So please leave my topic alone now,im not paying for someone to tell me how to go:

If attacker is %s and owner is %s the message displays in middle of screem saying "cops is attacking pimps turf" im just mnot sure how the whole %s thing works
Fine Whatever I know how To Do it because I did it on my server.

But I will Leave
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)