Factions/Clases Color
#1

ok what im trying to do is set a color for Each Family/Faction in my Server im a beginer scriptin and ive tried alot of codes trying to make it work and i dont get it wont work this code im using

if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police Force spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerColor(playerid, 0xFF0000AA); <----- This Should Change it color?
SetPlayerInterior(playerid,6);
rand = random(sizeof(gCopPlayerSpawns));
SetPlayerPos(playerid, gCopPlayerSpawns[rand][0], gCopPlayerSpawns[rand][1], gCopPlayerSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(playerid, 270.0);
PlayerInfo[playerid][pInt] = 6;
return 1;
}

what is wrong? can someone help me out with the right code thanks <3
Reply
#2

Try removing
pawn Код:
SetPlayerToTeamColor(playerid);
Reply
#3

that didnt work man
Reply
#4

SetPlayerToTeamColor(playerid);
..Should work and should look something like this.
pawn Код:
SetPlayerToTeamColor(playerid)
{
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
        SetPlayerColor(playerid,COLOR_); // Police Force
    }
    //etc.
}
Reply
#5

none of those codes are working any ideas?
Reply
#6

Well that's weird..maybe i can help if i got a look at your script..but i gotta go to sleep now its 12:45am..if you still need help by the time i wake up ill help you out.
Reply
#7

allright thanks i think we have same time ;P and yeah pls
Reply
#8

Well im wide awake and ready to help...i added your email to my msn..but i guess your offline.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)