#1

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

Try to download SAMP color pro
Reply
#3

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

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

Код:
#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);
Reply
#6

wrong srry
Reply
#7

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

Код:
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);
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)