[FilterScript] Shooter Minigame
#3

What was the point of this?
Code:
CallLocalFunction("OnPlayerDisconnect", "id", i, 3)
Instead of a direct call to the function? You do realize that CallLocalFunction is slower than a direct call right?

And why did you do this here:
Code:
public OnPlayerSpawn(playerid)
{
 
   return 0;
}
What's the point of stopping OnPlayerSpawn from processing throughout the rest of the filterscripts?

Put the iterators to use if you've already used and included foreach instead of doing this
Code:
for(new i = 0, j = GetPlayerPoolSize()+1; i < j; i++) if(IsPlayerConnected(i))
That's just stuff over the top, it seems very crowded and i suggest using github. 3 Stars.
Reply


Messages In This Thread
Shooter Minigame - by UFF - 09.09.2018, 11:01
Re: Shooter Minigame - by SonnyGamer - 09.09.2018, 12:12
Re: Shooter Minigame - by RogueDrifter - 09.09.2018, 12:42
Re: Shooter Minigame - by Undef1ned - 09.09.2018, 17:22
Re: Shooter Minigame - by UFF - 09.09.2018, 17:31
Re: Shooter Minigame - by ZigGamerx - 09.09.2018, 18:59
Re: Shooter Minigame - by UFF - 10.09.2018, 05:27

Forum Jump:


Users browsing this thread: 1 Guest(s)