09.06.2012, 08:46
Hello,
I've made something for LSEMS that when you go on duty and take duty clothes, and then go off duty you get your skin back that you had before taking duty clothes..
I tried the same for the LSPD but that dont wanna work..
Police
Medic:
I've made something for LSEMS that when you go on duty and take duty clothes, and then go off duty you get your skin back that you had before taking duty clothes..
I tried the same for the LSPD but that dont wanna work..
Police
pawn Код:
if(Player[playerid][CopDuty] == 1)
{
SetPlayerSkin(playerid, Player[playerid][LastSkin]);
Player[playerid][CopDuty] = 0;
SendClientMessage(playerid, WHITE, "You are now off police duty.");
SetPlayerArmour(playerid, 0);
}
else
{
Player[playerid][CopDuty] = 1;
SendClientMessage(playerid, WHITE, "You are now on police duty.");
SetPlayerArmour(playerid, 100);
}
}
pawn Код:
if(Player[playerid][MedicDuty] == 1)
{
Player[playerid][MedicDuty] = 0;
SetPlayerSkin(playerid, Player[playerid][LastSkin]);
SendClientMessage(playerid, WHITE, "You are no longer on medic duty. You won't recieve calls.");
}
else
{
Player[playerid][MedicDuty] = 1;
SendClientMessage(playerid, WHITE, "You are now on medic duty. You will recieve calls.");
}
}