22.12.2009, 06:36
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
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