24.06.2011, 20:14
Quote:
Hmm.. Modify this code according to yours.
add this in /stats cmd: pawn Код:
|
pawn Код:
format(string,sizeof(string),"Faction: %s",GetFactionName(playerid));
pawn Код:
new factionname[2][] = {//On top of your script
{"Civilian"},{"RCSD"}
};
format(string,sizeof(string),"Faction: %s",GetFactionName(playerid));//On your /stats
GetFactionName(playerid)//On bottom of your Script
{
new GFN[20];
format(GFN,sizeof(GFN),factionname[P_Data[playerid][Faction]]);
return GFN;
}