[Tutorial] Creating a Deathmatch Gamemode
#1

Never Mind bad tutorial for beginners

sorry guys this thread is closed....
Reply
#2

nice mang
Reply
#3

I wouldn't call this a tutorial your basically copy 'n' pastin from your gamemode , you don't even some of the parts for an textdraw which it has a seperate part for that in this section in the sticky thread , also there is no need for an text draw to make an Deathmatch mode.

All i understood from this is a sort of a snippet. i would not call this an "tutorial"
Reply
#4

Thanks dude
Reply
#5

Quote:
Originally Posted by GAMER_PS2
Посмотреть сообщение
Thanks dude
Thanks? He just criticized your thread.
Reply
#6

Quote:
Originally Posted by Kitten
Посмотреть сообщение
I wouldn't call this a tutorial your basically copy 'n' pastin from your gamemode , you don't even some of the parts for an textdraw which it has a seperate part for that in this section in the sticky thread , also there is no need for an text draw to make an Deathmatch mode.

All i understood from this is a sort of a snippet. i would not call this an "tutorial"
For your information i trying to help the beginners. and the textdraw that i put is just a effort
just like other gangwar servers. i know its copy'n'paste from my gamemode. sorry to say
but if you gonna comment bad go out of here. this is not fighthing forum this is a SAMP Forum
thats why SAMP Forum is create for script and many more not for fighthing
Reply
#7

Quote:
Originally Posted by GAMER_PS2
Посмотреть сообщение
For your information i trying to help the beginners. and the textdraw that i put is just a effort
just like other gangwar servers. i know its copy'n'paste from my gamemode. sorry to say
but if you gonna comment bad go out of here. this is not fighthing forum this is a SAMP Forum
thats why SAMP Forum is create for script and many more not for fighthing
I'm not trying to fight or anything but i recommend you take a look at this.

https://sampforum.blast.hk/showthread.php?tid=65567
Reply
#8

Wish people would stop calling them tutorials when clearly they're just snippets of code.
Reply
#9

This tutorial is an epic fail:

1.
Quote:

now its time for textdraw for this part i cant explain.

2. At the start of your gamemode you putted this:
pawn Код:
#define TEAM_BALLAS 1 //Team ID for Ballas
#define TEAM_GROVE 2 //Team ID for Grove
#define TEAM_VAGOS 3 //Team ID for Vagos
But at SetPlayerTeamFromClass you added TEAM_AZTECAS that didn't exist before -.-

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    if (classid == TEAM_BALLAS)
    {
        gTeam[playerid] = TEAM_BALLAS;
    }
    else if (classid == TEAM_GROVE)
    {
        gTeam[playerid] = TEAM_GROVE;
    }
    else if (classid == TEAM_VAGOS)
    {
        gTeam[playerid] = TEAM_VAGOS;
    }
    else if (classid == TEAM_AZTECAS)
    {
        gTeam[playerid] = TEAM_AZTECAS;
    }
}
3. Look at your OnPlayerRequestClass
Case 0 is Identical to case 1

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
        case 0: //ID 102 - Ballas
        {
            SetPlayerTeam(playerid,TEAM_BALLAS);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1873.4159,-1742.0531,13.5369);
            SetPlayerFacingAngle(playerid, 178);
            SetPlayerCameraLookAt(playerid,1873.4159,-1742.0531,13.5369);
            SetPlayerCameraPos(playerid, 1873.1909,-1746.9408,13.5469);
            SetPlayerColor(playerid, COLOR_VIOLET);
            TextDrawHideForPlayer(playerid, GroveTittle);
            TextDrawHideForPlayer(playerid, GroveWeap1);
            TextDrawHideForPlayer(playerid, GroveWeap2);
            TextDrawHideForPlayer(playerid, GroveWeap3);
            TextDrawHideForPlayer(playerid, GroveWeap4);
            TextDrawShowForPlayer(playerid, BallasTittle);
            TextDrawShowForPlayer(playerid, BallasWeap1);
            TextDrawShowForPlayer(playerid, BallasWeap2);
            TextDrawShowForPlayer(playerid, BallasWeap3);
            TextDrawShowForPlayer(playerid, BallasWeap4);
        }
        case 1: //ID 103 - Ballas
        {
            SetPlayerTeam(playerid,TEAM_BALLAS);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1873.4159,-1742.0531,13.5369);
            SetPlayerFacingAngle(playerid, 178);
            SetPlayerCameraLookAt(playerid,1873.4159,-1742.0531,13.5369);
            SetPlayerCameraPos(playerid, 1873.1909,-1746.9408,13.5469);
            SetPlayerColor(playerid, COLOR_VIOLET);
            TextDrawHideForPlayer(playerid, GroveTittle);
            TextDrawHideForPlayer(playerid, GroveWeap1);
            TextDrawHideForPlayer(playerid, GroveWeap2);
            TextDrawHideForPlayer(playerid, GroveWeap3);
            TextDrawHideForPlayer(playerid, GroveWeap4);
            TextDrawShowForPlayer(playerid, BallasTittle);
            TextDrawShowForPlayer(playerid, BallasWeap1);
            TextDrawShowForPlayer(playerid, BallasWeap2);
            TextDrawShowForPlayer(playerid, BallasWeap3);
            TextDrawShowForPlayer(playerid, BallasWeap4);
        }
        //[...]

Another , you could have done this way:

Код:
case 0, 1, 2: //
        {
            SetPlayerTeam(playerid,TEAM_BALLAS);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1873.4159,-1742.0531,13.5369);
            SetPlayerFacingAngle(playerid, 178);
            SetPlayerCameraLookAt(playerid,1873.4159,-1742.0531,13.5369);
            SetPlayerCameraPos(playerid, 1873.1909,-1746.9408,13.5469);
            SetPlayerColor(playerid, COLOR_VIOLET);
            TextDrawHideForPlayer(playerid, GroveTittle);
            TextDrawHideForPlayer(playerid, GroveWeap1);
            TextDrawHideForPlayer(playerid, GroveWeap2);
            TextDrawHideForPlayer(playerid, GroveWeap3);
            TextDrawHideForPlayer(playerid, GroveWeap4);
            TextDrawShowForPlayer(playerid, BallasTittle);
            TextDrawShowForPlayer(playerid, BallasWeap1);
            TextDrawShowForPlayer(playerid, BallasWeap2);
            TextDrawShowForPlayer(playerid, BallasWeap3);
            TextDrawShowForPlayer(playerid, BallasWeap4);
        }
Reply
#10

And that concludes today's lesson children:
Before attempting to write a tutorial,read some yourself.

In all seriousness, the code is full of errors. And worst of all, you don't even understand it yourself!
I vote for this thread to be deleted, it sets a bad example for beginners.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)