SetPlayerColor not working
#1

hello i have a problem with setplayercolor

whenever i go on duty ,according to my script my color should turn to blue but it stays white


here's the code

pawn Код:
switch(dialogid)
{
case 1:
{
if(!response)
{
SendClientMessage(playerid, COLOR_PINK2, "You Canceled");
return 1;
}
switch(listitem)
{
case 0:
{
if(gTeam[playerid] == TEAM_CIV)
{
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
OffDutySkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,280);
SendClientMessage(playerid,COLOR_LAWNGREEN,"Welcome to Duty USPD Officer");
gTeam[playerid] = TEAM_COP;
}
else if(GetPlayerTeam(playerid) !=TEAM_CIV)
SendClientMessage(playerid,COLOR_PINK2,"You Cant go on Cop Duty");
}
case 1:
{
if(gTeam[playerid] == TEAM_CIV)
{
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
OffDutySkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,281);
SendClientMessage(playerid,COLOR_LAWNGREEN,"Welcome to Duty USPD Officer");
gTeam[playerid] = TEAM_COP;
}
else if(GetPlayerTeam(playerid) !=TEAM_CIV)
SendClientMessage(playerid,COLOR_PINK2,"You Cant go on Cop Duty");
}
case 2:
{
if(gTeam[playerid] == TEAM_CIV)
{
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
OffDutySkin[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,282);
SendClientMessage(playerid,COLOR_LAWNGREEN,"Welcome to Duty USPD Officer");
gTeam[playerid] = TEAM_COP;
}
else if(GetPlayerTeam(playerid) !=TEAM_CIV)
SendClientMessage(playerid,COLOR_PINK2,"You Cant go on Cop Duty");
}
case 3:
{
SendClientMessage(playerid,COLOR_PINK2,"Stay a Law full Citizen");
gTeam[playerid] = TEAM_CIV;
SetPlayerSkin(playerid, OffDutySkin[playerid]);
SetPlayerColor(playerid,COLOR_WHITE);
}
}
}
Reply


Messages In This Thread
SetPlayerColor not working[+rep] - by ZBits - 13.07.2012, 09:12
Re: SetPlayerColor not working - by Vince - 13.07.2012, 09:20
Re: SetPlayerColor not working - by Captain_Mani - 13.07.2012, 09:35
Re: SetPlayerColor not working - by clarencecuzz - 13.07.2012, 09:45
Re: SetPlayerColor not working - by ZBits - 13.07.2012, 10:02
Re: SetPlayerColor not working - by Mr.Fames - 13.07.2012, 10:03
Re: SetPlayerColor not working - by Vince - 13.07.2012, 10:05
Re: SetPlayerColor not working - by clarencecuzz - 13.07.2012, 10:09
Re: SetPlayerColor not working - by ZBits - 13.07.2012, 10:19
Re: SetPlayerColor not working - by ZBits - 13.07.2012, 10:37

Forum Jump:


Users browsing this thread: 5 Guest(s)