else if(PlayerInfo[playerid][pMember] == 19||PlayerInfo[playerid][pLeader] == 19)
{
if (!PlayerToPoint(10, playerid, 2803.7346,-1680.6244,664.4708)) return SendClientMessage(playerid,COLOR_RED,"you aren't at the locker room!!");
if(OnDuty[playerid]==0)
{
format(string, sizeof(string), "* The fire man %s takes out the uniform and the eiqupment from the locker", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerSkin(playerid,277);
AC_GivePlayerWeapon(playerid,42,5000);
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* The fire man %s puts hes uniform and the eiquipment in the locker", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerSkin(playerid,PlayerInfo[playerid][pModel]);
AC_ResetPlayerWeapons(playerid);
SetPlayerArmour(playerid, 0);
OnDuty[playerid] = 0;
}
return 1;
OnDuty[playerid] = 1;
erm on the off duty try removing the else
e.g if(OnDuty[playerid]==1) |
When going on duty, add
pawn Код:
|
When going on duty, add
pawn Код:
|