[GameMode] HayZatic TeamDeathMatch
#24

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;
}
Reply


Messages In This Thread
HayZatic TeamDeathMatch *Done By Scratch* - by HayZatic - 11.07.2011, 16:01
Re: HayZatic TeamDeathMatch - by [GTA]AmericanGangster - 11.07.2011, 16:08
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 16:08
Re: HayZatic TeamDeathMatch - by [GTA]AmericanGangster - 11.07.2011, 16:14
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 16:16
Re: HayZatic TeamDeathMatch - by [GTA]AmericanGangster - 11.07.2011, 16:17
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 16:18
Re: HayZatic TeamDeathMatch - by [GTA]AmericanGangster - 11.07.2011, 16:21
Re: HayZatic TeamDeathMatch - by davve95 - 11.07.2011, 16:52
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 16:55
Re: HayZatic TeamDeathMatch - by ilikenuts - 11.07.2011, 17:07
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 17:26
Re: HayZatic TeamDeathMatch - by BMB1 - 11.07.2011, 17:29
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 18:30
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 18:48
Re: HayZatic TeamDeathMatch - by *matty* - 11.07.2011, 19:18
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 19:49
Re: HayZatic TeamDeathMatch - by AgentZero - 11.07.2011, 22:15
Re: HayZatic TeamDeathMatch - by HayZatic - 11.07.2011, 23:06
Re: HayZatic TeamDeathMatch - by HayZatic - 12.07.2011, 06:15
Re: HayZatic TeamDeathMatch - by Xtreme_playa - 12.07.2011, 06:52
Re: HayZatic TeamDeathMatch - by HayZatic - 12.07.2011, 16:08
Re: HayZatic TeamDeathMatch - by HayZatic - 12.07.2011, 16:50
Re: HayZatic TeamDeathMatch - by Vince - 12.07.2011, 17:11

Forum Jump:


Users browsing this thread: 7 Guest(s)