[FilterScript] Request: Mask Filterscript
#3

Define:-
Код:
new HasBoughtMask[MAX_PLAYERS];
Command :-
Код:
CMD:mask(playerid, params[])
{
	new name[MAX_PLAYER_NAME];
	new string[42];
	if(HasBoughtMask[playerid] == 0)
	{
		SendClientMessage(playerid, COLOR_GREY, "You don't have a mask.");
		return 1;
	}
	if(PlayerInfo[playerid][pMask] == 0)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			if(IsPlayerConnected(i))
			{
			ShowPlayerNameTagForPlayer(i, playerid, 0);
			}
		}
		PlayerInfo[playerid][pMask] = 1;
		GetPlayerName(playerid, name, sizeof(name));
		format(string, sizeof(string), "* %s has put a mask on.", name);
		ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
	}
	return 1;
}
Код:
enum pInfo
{
	pMask,
};
Reply


Messages In This Thread
REMOVED - by DwayneVanKom - 06.10.2012, 04:23
Re: Request: Mask Filterscript - by Donicans - 06.10.2012, 04:33
Re: Request: Mask Filterscript - by Knight_Rider - 06.10.2012, 04:58
Re: Request: Mask Filterscript - by DwayneVanKom - 06.10.2012, 07:44
Re: Request: Mask Filterscript - by Knight_Rider - 06.10.2012, 07:56
Re: Request: Mask Filterscript - by DwayneVanKom - 06.10.2012, 08:04
Re: Request: Mask Filterscript - by xMCx - 06.10.2012, 11:28
Re: Request: Mask Filterscript - by NoahF - 06.10.2012, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)