SetPlayerSkin(playerid, 265);
case 7:
{
if (PlayerInfo[playerid][pdSuspensionDay] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are currently suspened of the Police department !");
switch(GetPVarInt(playerid, "Duty"))
{
case 0:
{
SetPVarInt(playerid, "Duty", 1);
SendClientMessage(playerid,COLOR_WHITE,"You are now On-Duty.");
SendClientMessage(playerid,0xBE444196,"WARNING: Make sure to properly use the command (/unit) while you patrol.");
ShowPlayerDialog(playerid,105,DIALOG_STYLE_MSGBOX,"Color Setting","Select the color of your SA-MP nametag.","Blue", "White");
}
case 1:
{
SetPVarInt(playerid, "Duty", 0);
SendClientMessage(playerid,COLOR_WHITE,"You are now Off-Duty.");
SetPlayerColor(playerid,COLOR_WHITE);
DeletePVar(playerid, "PDUNIT"), DeletePVar(playerid, "PDRadio");
}
}
}
default: SendClientMessage(playerid, COLOR_GREY, "You don't have access to this command!.");
}
return 1;
}
SetPlayerSkin(playerid, 287);
|
Is just make skins for one rank?
I had 15 ranks with ohers skins need . |
case 7:
{
if (PlayerInfo[playerid][pdSuspensionDay] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are currently suspened of the Police department !");
switch(GetPVarInt(playerid, "Duty"))
{
case 0:
{
SetPVarInt(playerid, "Duty", 1);
SendClientMessage(playerid,COLOR_WHITE,"You are now On-Duty.");
SendClientMessage(playerid,0xBE444196,"WARNING: Make sure to properly use the command (/unit) while you patrol.");
ShowPlayerDialog(playerid,105,DIALOG_STYLE_MSGBOX,"Color Setting","Select the color of your SA-MP nametag.","Blue", "White");
}
case 1:
{
SetPVarInt(playerid, "Duty", 0);
SendClientMessage(playerid,COLOR_WHITE,"You are now Off-Duty.");
SetPlayerColor(playerid,COLOR_WHITE);
DeletePVar(playerid, "PDUNIT"), DeletePVar(playerid, "PDRadio");
}
}
}
default: SendClientMessage(playerid, COLOR_GREY, "You don't have access to this command!.");
}
return 1;
}