SA-MP Forums Archive
hey - 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)
+--- Thread: hey (/showthread.php?tid=298838)



hey - Butch - 22.11.2011

im Searching someone that can help me
make my team/faction colors.
Cuz all the factions in my server are white it need to have a color to peoples name
when they join a faction when they use /o[Name]: hello need to be a color
Can someone plz help me? how i give the faction a color ty.


Re: hey - Eduard93 - 22.11.2011

Try to download SAMP color pro


Re: hey - Butch - 22.11.2011

nonono xD thats not what im searching
im searching if someone can make my faction have colors like Yamaguchi = RED so all my members have red name


Re: hey - Luis- - 22.11.2011

On your /o command to something like this;
pawn Код:
if(PlayerInfo[playerid][pFaction] == 1) // Example, edit this so it fits with your script.
{
new string[128], text[128];
if(sscanf(params, "s[128]", text)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /o [text]");

format(string, sizeof string, "%s: %s", name, text);
SendClientMessageToAll(GetPlayerColor(playerid), text);
}



Re: hey - Eduard93 - 22.11.2011

Код:
#define COLOR_YAMAGUCHI 0xEFC6FFFF
Код:
#define TEAM_YAMAGUACHI 1
it's an example..
then
Код:
public SetPlayerToTeamColor(playerid)
{
	if(IsPlayerConnected(playerid))
	{
	    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
        SetPlayerColor(playerid,COLOR_YAMAGUCHI);



Re: hey - Butch - 22.11.2011

wrong srry


Re: hey - Butch - 22.11.2011

Quote:

f (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerToTeamColor(playerid);
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);

its now like this how do i change it to a any color?


Re: hey - Eduard93 - 22.11.2011

Код:
if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Yamaguchi spawn
{
if(PlayerInfo[playerid][pSpawn] == 3)
{
SetPlayerColor(playerid,COLOR_YAMAGUCHI);
SafeSetPlayerInterior(playerid, 3);
SafeSetPlayerPos(playerid, 962.8333,-60.0172,1001.1246);