[GameMode] Blue vs Red - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (
https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Blue vs Red (
/showthread.php?tid=479715)
Blue vs Red -
boomerboom - 06.12.2013
BETA 0.1a
-2 teams
Blue&Red
-2 teleports(/airport,/maze)
-3 animations(/piss,/reload,/vomit)
-3 turfs
-Self made Anti-Cheat(!)
More informations
This is meant to be wars at bridge.
The spawn places are close enough so they can have wars.
Pictures






Working time was 3 hours.
Link:Pastenbin
Re: Blue vs Red -
HyDrAtIc - 06.12.2013
Not bad!
That was faster and better than my first TDM script.
Re: Blue vs Red -
boomerboom - 06.12.2013
Quote:
Originally Posted by HyDrAtIc
Not bad!
That was faster and better than my first TDM script. 
|
Thank you
Re: Blue vs Red -
Infinity - 06.12.2013
The first thing I saw was this:
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.
Re: Blue vs Red -
boomerboom - 06.12.2013
Quote:
Originally Posted by Infinity
The first thing I saw was this:
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.
|
Thank you for your suggestions.I didn't know I was that stupid ;( in PAWNO
Re: Blue vs Red -
Infinity - 06.12.2013
Quote:
Originally Posted by boomerboom
Thank you for your suggestions.I didn't know I was that stupid ;( in PAWNO
|
Everyone's gotta start somewhere
Re: Blue vs Red -
FahadKing07 - 07.12.2013
Nice GameMode, but can u tell me which files should contain in each folder, you have just given gamemode.
Re: Blue vs Red -
boomerboom - 07.12.2013
Quote:
Originally Posted by FahadKing07
Nice GameMode, but can u tell me which files should contain in each folder, you have just given gamemode.
|
You just need this.You don't need special includes and plugins.
Re: Blue vs Red -
kylezkie - 07.12.2013
Wow Nice But Boomerboom You Have SErver That i can play?
Re: Blue vs Red -
boomerboom - 07.12.2013
Quote:
Originally Posted by kylezkie
Wow Nice But Boomerboom You Have SErver That i can play?
|
Im creating one.