[GameMode] HayZatic TeamDeathMatch - 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] HayZatic TeamDeathMatch (
/showthread.php?tid=268181)
Re: HayZatic TeamDeathMatch -
Xtreme_playa - 12.07.2011
yea played on ur server, looks great and script's fantastic; keep updating and good luck
Re: HayZatic TeamDeathMatch -
HayZatic - 12.07.2011
Quote:
Originally Posted by Xtreme_playa
yea played on ur server, looks great and script's fantastic; keep updating and good luck
|
Thankss

Make Sure you all get the updated
Re: HayZatic TeamDeathMatch -
HayZatic - 12.07.2011
Update v1.2 Released! Make sure you check out all the stuff we have added to it!
Re: HayZatic TeamDeathMatch -
Vince - 12.07.2011
It's okay for your first gamemode, but I see a lot of room for improvement; The indentation in some parts just looks like crap. Furthermore, there are parts in the GM of which I'm sure that they were copied and for which no credit was given.
And last but not least, some general improvements. First: make good use of switch statements.
if-elseif-elseif-elseif-...-else looks ugly and unprofessional. Second, you can save the class of a player in a single variable, rather than 5, using for example:
pawn Code:
enum
{
CLASS_SNIPER = 1,
CLASS_ASSAULT,
CLASS_ROCKET,
CLASS_PILOT,
CLASS_MEDIC
};
new pClass[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
switch(pClass[playerid])
{
case CLASS_SNIPER: {}
case CLASS_ASSAULT: {}
case CLASS_ROCKET: {}
case CLASS_PILOT: {}
case CLASS_MEDIC: {}
default: ShowPlayerDialog(...);
}
return 1;
}