[FilterScript] DeathMatch Event [Friendly, Funny, Controllable]
#7

PHP код:
for(new 0i<MAX_PLAYERSi++) //Use GetPlayerPoolSize
{
if(
IsPlayerConnected(i))
{
TogglePlayerControllable(i1);
SCMTA(-1,"{800080}[EVENT STARTED] {fef65b}An Administrator has Started the DM Event!");//This will send every
 
one a message multiple time forexample if 50 players are connected it will show message to everyone 50 time.
GameTextForPlayer(i"~W~EVENT ~Y~HAS ~G~BEEN ~B~STARTED!",3000,3); //Use GameTextForAll (outside the loop
if(!IsPlayerAdmin(playerid)) return SCM(playerid, -1"{f00f00}[ERROR]: {FFFFFF}You are not authorized to use this command!"); //Why are you checking admin in a `for` loop
EventOpened[playerid] = 0//This must be out side from the `for` loop.
InEvent[playerid] = 1//This too
}

Will become good if you fix many things
Reply


Messages In This Thread
DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 10:54
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Infinity - 17.05.2017, 11:06
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 11:08
Re: DeathMatch Event [Friendly, Funny, Controllable] - by coool - 17.05.2017, 11:14
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 11:22
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Infinity - 17.05.2017, 11:22
Re: DeathMatch Event [Friendly, Funny, Controllable] - by coool - 17.05.2017, 11:32
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 11:52
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Dayrion - 17.05.2017, 17:06
Re: DeathMatch Event [Friendly, Funny, Controllable] - by JustMe.77 - 17.05.2017, 18:13
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 17.05.2017, 18:41
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 18.05.2017, 08:24
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Infinity - 18.05.2017, 08:32
Re: DeathMatch Event [Friendly, Funny, Controllable] - by SyS - 18.05.2017, 08:34
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 18.05.2017, 08:50
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Dayrion - 18.05.2017, 12:13
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 18.05.2017, 19:47
Re: DeathMatch Event [Friendly, Funny, Controllable] - by Dayrion - 18.05.2017, 21:43
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 19.05.2017, 06:27
Re: DeathMatch Event [Friendly, Funny, Controllable] - by XxMadmanxX - 21.05.2017, 21:28
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 22.05.2017, 12:08
Re: DeathMatch Event [Friendly, Funny, Controllable] - by RxErT - 24.02.2018, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)