SA-MP Forums Archive
Create faction(s) - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Create faction(s) (/showthread.php?tid=156917)



Create faction(s) - Alex_Capone - 24.06.2010

Hello all, I am Joseph a scripter beginer!

I was wounderig, how can I make factions in pawno ?

Код:
new Faction[MAX_PLAYER]
I know that one but how can I create a faction with color.
Ex: Cops is color = Blue
NG is color = Green
Medic is color = Lightred

But how can I creat it ?


Alex.


Re: Create faction(s) - Alex_Capone - 24.06.2010

bump


Please help me!

I need it!



Re: Create faction(s) - Kidel - 24.06.2010

Quote:
Originally Posted by Alex_Capone
bump


Please help me!

I need it!
Search for gang scripts.


Re: Create faction(s) - Alex_Capone - 24.06.2010

gang scripts?

What should that help for ?

Help me!


Re: Create faction(s) - ReVo_ - 24.06.2010

OnPlayerSpawn:
pawn Код:
if(Faction[playerid]==POLICE)
{
SetPlayerColor(playerid, COLORECC);
}
else if(Faction[playerid]==ECC)
{
ecc
}
in top of you script define all factions
exemple
pawn Код:
#define POLICE 1
Sorry for my english :S.


Re: Create faction(s) - Kidel - 24.06.2010

Quote:
Originally Posted by Alex_Capone
gang scripts?

What should that help for ?

Help me!
IT SHOULD HELP BECAUSE FACTIONS ARE ALMOST EXACTLY THE SAME AS GANGS!


Re: Create faction(s) - Alex_Capone - 24.06.2010

And can you show me a good "Gang Script" ?


Re: Create faction(s) - Kidel - 24.06.2010

Quote:
Originally Posted by Alex_Capone
And can you show me a good "Gang Script" ?
Found some, but some faction, because you must search for like godfather stuff for gang. Search "[FS]faction".


Re: Create faction(s) - Alex_Capone - 24.06.2010

Quote:
Originally Posted by [TLV
ReVo_ ]
OnPlayerSpawn:
pawn Код:
if(Faction[playerid]==POLICE)
{
SetPlayerColor(playerid, COLORECC);
}
else if(Faction[playerid]==ECC)
{
ecc
}
in top of you script define all factions
exemple
pawn Код:
#define POLICE 1
Sorry for my english :S.
Get Errors
Код:
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : error 036: empty statement
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : error 029: invalid expression, assumed zero
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(97) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
OnPlayerSpawn:
Код:
public OnPlayerSpawn(playerid)
{
if(Faction[playerid];==POLICE)
{
SetPlayerColor(playerid, COLORECC);
}
else if(Faction[playerid]==ECC)
{
ecc
}
	return 1;
}
And:
Код:
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(101) : error 017: undefined symbol "ECC"
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(103) : error 017: undefined symbol "ecc"
C:\Documents and Settings\br08\Skrivebord\SCRIPT\gamemodes\lo.pwn(105) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Create faction(s) - ReVo_ - 24.06.2010

it's a exemple change ecc to define the faction and "ecc" the event call if player have valute of faction to 2 or other.
My english is bad!!