Create faction(s)
#1

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

bump


Please help me!

I need it!
Reply
#3

Quote:
Originally Posted by Alex_Capone
bump


Please help me!

I need it!
Search for gang scripts.
Reply
#4

gang scripts?

What should that help for ?

Help me!
Reply
#5

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.
Reply
#6

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!
Reply
#7

And can you show me a good "Gang Script" ?
Reply
#8

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".
Reply
#9

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.
Reply
#10

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!!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)