[GameMode] Blue vs Red
#4

The first thing I saw was this:
pawn Код:
#pragma tabsize 0
Which is really, REALLY bad practice. Instead of ignoring the problem, work on your indentation.

Also try to work on the logic on some parts of your code. Such as in your OnPlayerRequestClass, you use
pawn Код:
if { ..}
else if { .. }
else if { .. }
if {..}
Better would be to use else:
pawn Код:
if { ..} // If this is true.
else if { .. } // If the above isn't true, but this is.
else if { .. } // If the above isn't true, but this is.
else {..} // If none of the above were true.
I don't really get your 'anticheat'. Apperantly anybody wo manages to kill somebody without getting hit is a hacker?


A final tip. As you are releasing this code, you hope others will use your script and maybe even continue working on it. For this to really take off, documentation is a must. You must explain what your functions do, and how they work. The most commenly used way is to add comments to your code.
Reply


Messages In This Thread
Blue vs Red - by boomerboom - 06.12.2013, 19:22
Re: Blue vs Red - by HyDrAtIc - 06.12.2013, 20:11
Re: Blue vs Red - by boomerboom - 06.12.2013, 20:33
Re: Blue vs Red - by Infinity - 06.12.2013, 20:36
Re: Blue vs Red - by boomerboom - 06.12.2013, 20:41
Re: Blue vs Red - by Infinity - 06.12.2013, 20:43
Re: Blue vs Red - by FahadKing07 - 07.12.2013, 03:00
Re: Blue vs Red - by boomerboom - 07.12.2013, 06:33
Re: Blue vs Red - by kylezkie - 07.12.2013, 06:38
Re: Blue vs Red - by boomerboom - 07.12.2013, 06:51

Forum Jump:


Users browsing this thread: 1 Guest(s)