[GameMode] Blue vs Red
#1

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

Reply
#2

Not bad!

That was faster and better than my first TDM script.
Reply
#3

Quote:
Originally Posted by HyDrAtIc
Посмотреть сообщение
Not bad!

That was faster and better than my first TDM script.
Thank you
Reply
#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
#5

Quote:
Originally Posted by Infinity
Посмотреть сообщение
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.
Thank you for your suggestions.I didn't know I was that stupid ;( in PAWNO
Reply
#6

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
Reply
#7

Nice GameMode, but can u tell me which files should contain in each folder, you have just given gamemode.
Reply
#8

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.
Reply
#9

Wow Nice But Boomerboom You Have SErver That i can play?
Reply
#10

Quote:
Originally Posted by kylezkie
Посмотреть сообщение
Wow Nice But Boomerboom You Have SErver That i can play?
Im creating one.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)