13.07.2012, 09:12
(
Последний раз редактировалось ZBits; 13.07.2012 в 11:36.
)
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
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);
}
}
}