How to add custom skins to your server?
#3

what do you means Skin Moderator? is this 217!

Add This:

Код:
YCMD:adminduty(playerid, params[], help) {
	if(help) {
		SendClientMessage(playerid, X11_WHITE, "Toggles admin duty");
		return 1;
	}
	new msg[128];
	new aduty = GetPVarInt(playerid, "AdminDuty");
	if(aduty == 0) {
		format(msg,sizeof(msg),"%s %s is now on duty",getAdminName(playerid),GetPlayerNameEx(playerid, ENameType_AccountName));
		SendGlobalAdminMessage(X11_YELLOW, msg);
		if(EAdminFlags:GetPVarInt(playerid, "AdminFlags") == EAdminFlags_BasicAdmin) {
			aduty = 1;
		} else {
			aduty = 2;
		}
		
		if(GetPVarInt(playerid, "Sex") == 0) {
			SetPlayerSkin(playerid, 217);
		} else {
			SetPlayerSkin(playerid, 211);
		}
		SetPVarInt(playerid, "AdminDuty", aduty);
		//ShowAllNameTagsForPlayer(playerid, 1);
	} else {
		format(msg,sizeof(msg),"%s %s is now off duty",getAdminName(playerid),GetPlayerNameEx(playerid, ENameType_AccountName));
		SendGlobalAdminMessage(X11_YELLOW,msg);
		aduty = 0;
		SetPlayerSkin(playerid, GetPVarInt(playerid, "SkinID"));
		//ShowAllNameTagsForPlayer(playerid, 0);
		DeletePVar(playerid, "AdminDuty");
	}
	
	SetPlayerColor(playerid, getNameTagColour(playerid));
	return 1;
}
Reply


Messages In This Thread
How to add custom skins to your server? - by Zmith - 17.06.2014, 18:58
Re: How to add custom skins to your server? - by Djole1337 - 17.06.2014, 19:05
Re: How to add custom skins to your server? - by Barnwell - 17.06.2014, 19:14
Re: How to add custom skins to your server? - by SeniorGamer - 17.06.2014, 20:13
Re: How to add custom skins to your server? - by Zmith - 17.06.2014, 20:18
Re: How to add custom skins to your server? - by Zmith - 18.06.2014, 11:11
Re : How to add custom skins to your server? - by S4t3K - 18.06.2014, 11:14
Re: How to add custom skins to your server? - by Threshold - 18.06.2014, 12:29
Re: How to add custom skins to your server? - by Arastair - 04.12.2014, 07:57

Forum Jump:


Users browsing this thread: 5 Guest(s)