[GameMode] [GM] Hydra and Hunter DM
#9

VERY VERY nice script , tho i just have one question

Code:
public OnPlayerText(playerid, text[])
{
  if(muted[playerid] == 1)
	{
	  SendClientMessage(playerid, COLOR_GREY, "  You can not speak, you have been muted.");
	  return 0;
 	}
 	for(new i = 0; i <= MAX_PLAYERS; i++)
	{
 		if(muted[i] == 1)
		{
	  	SendClientMessage(playerid, COLOR_GREY, "  You can not speak, you have been muted.");
	  	return 0;
		}
 	}
	return 1;
}
Why is there 2 of the codes? does the lower one actually do anything? don't they both do the same? (sorry if im asking noobish it's like 2 years ago since i coded)
Reply


Messages In This Thread
[GM] Hydra and Hunter DM - by kevin433 - 05.01.2008, 14:47
Re: [GM] Hydra and Hunter DM - by Alejandro - 05.01.2008, 17:44
Re: [GM] Hydra and Hunter DM - by kevin433 - 05.01.2008, 17:54
Re: [GM] Hydra and Hunter DM - by Grove - 05.01.2008, 17:56
Re: [GM] Hydra and Hunter DM - by [A]Ole - 05.01.2008, 19:37
Re: [GM] Hydra and Hunter DM - by Mr Qtip - 05.01.2008, 19:52
Re: [GM] Hydra and Hunter DM - by Mark_Richmans - 23.02.2008, 07:16
Re: [GM] Hydra and Hunter DM - by snipe69 - 23.02.2008, 09:02
Re: [GM] Hydra and Hunter DM - by shitbird - 23.02.2008, 09:57
Re: [GM] Hydra and Hunter DM - by kevin433 - 23.02.2008, 13:24
Re: [GM] Hydra and Hunter DM - by joyma12000 - 16.01.2009, 08:24
Re: [GM] Hydra and Hunter DM - by Nimphious - 16.01.2009, 09:13
Re: [GM] Hydra and Hunter DM - by cs_master - 24.05.2011, 13:24
Re: [GM] Hydra and Hunter DM - by KitKitz - 26.10.2018, 11:49
Re: [GM] Hydra and Hunter DM - by Venom546 - 10.11.2018, 09:39
Re: [GM] Hydra and Hunter DM - by BanSilog - 10.11.2018, 10:22

Forum Jump:


Users browsing this thread: 1 Guest(s)