[Tutorial] Mask System for RP servers.
#7

O - Optimization

All new:
Код HTML:
Mask[MAX_PLAYERS];
OnPlayerConnect:
Код HTML:
Mask[playerid] = 0;
Код HTML:
CMD:mask(playerid,params[])
{
	if(Mask[playerid] == 0)
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			ShowPlayerNameTagForPlayer(i, playerid, 1);
		}
		SendClientMessage(playerid, -1, "You put a mask write / mask to remove");
		GameTextForPlayer(playerid,"~g~Mask On",1000,1);
		Mask[playerid] = 1;
	}
	else
	{
		for(new i = 0; i < MAX_PLAYERS; i++)
		{
			ShowPlayerNameTagForPlayer(i, playerid, 1);
		}
		SendClientMessage(playerid, -1, "You have removed the mask, type / masks to wear");
		GameTextForPlayer(playerid,"~g~Mask Off",1000,1);
		Mask[playerid] = 0;
	}
	return 1;
}
Reply


Messages In This Thread
Mask System for RP servers. - by Rabea - 22.01.2015, 16:54
Re: Mask System for RP servers. - by Majd - 22.01.2015, 18:13
Re: Mask System for RP servers. - by Lucky™ - 22.01.2015, 18:35
Re: Mask System for RP servers. - by Majd - 22.01.2015, 18:49
Re: Mask System for RP servers. - by Rabea - 22.01.2015, 19:19
Re: Mask System for RP servers. - by Rabea - 27.01.2015, 09:54
Re: Mask System for RP servers. - by SnoopDy - 29.01.2015, 14:52
Re: Mask System for RP servers. - by ZcvDev - 31.01.2015, 13:02
Re: Mask System for RP servers. - by ZombieNest - 31.01.2015, 13:10
Re: Mask System for RP servers. - by Rabea - 23.02.2015, 14:03

Forum Jump:


Users browsing this thread: 3 Guest(s)