Trooper's CMD Help Topic
#2

Код:
CMD:badge(playerid, params[]) {
    if((IsACop(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) && GetPVarInt(playerid, "IsInArena") < 0 && !GetPVarInt(playerid, "EventToken") && PlayerInfo[playerid][pJailed] == 0 || PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pDivision] == 1) {
		if(PlayerInfo[playerid][pDuty]) {
			PlayerInfo[playerid][pDuty] = 0;
			SetPlayerToTeamColor(playerid);
			SendClientMessageEx(playerid, COLOR_WHITE, "You have hidden your badge, and will now be identified as being off-duty.");
		}
		else {
			PlayerInfo[playerid][pDuty] = 1;
			SetPlayerToTeamColor(playerid);
			SendClientMessageEx(playerid, COLOR_WHITE, "You have shown your badge, and will now be identified as being on-duty.");
		}
	}
	return 1;
}
/badge Command where it show when your on duty or not on duty
Reply


Messages In This Thread
Trooper's CMD Help Topic - by State_Trooper - 29.10.2011, 04:01
Re: Trooper's CMD Help Topic - by State_Trooper - 29.10.2011, 04:06
Re: Trooper's CMD Help Topic - by Lorenc_ - 29.10.2011, 04:09
Re: Trooper's CMD Help Topic - by ahbir_jhon - 29.10.2011, 04:38
Re: Trooper's CMD Help Topic - by State_Trooper - 29.10.2011, 13:25

Forum Jump:


Users browsing this thread: 1 Guest(s)