SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 01/11/2011, 12:10 AM   #1
GAMER_PS2
Huge Clucker
 
GAMER_PS2's Avatar
 
Join Date: Aug 2011
Posts: 344
Reputation: 19
Thumbs up Never Mind

Never Mind bad tutorial for beginners

sorry guys this thread is closed....
__________________
Ronnie Ronnie Ronnie Ronnie
Not GAMER_PS2

Last edited by GAMER_PS2; 01/11/2011 at 12:09 PM.
GAMER_PS2 is offline   Reply With Quote
Old 01/11/2011, 02:21 AM   #2
Medardo4Life
Big Clucker
 
Medardo4Life's Avatar
 
Join Date: Nov 2009
Posts: 107
Reputation: 9
Default Re: Creating a Deathmatch Gamemode

nice mang
__________________
Me if you like my posts :P
Medardo4Life is offline   Reply With Quote
Old 01/11/2011, 02:33 AM   #3
Kitten
High-roller
 
Kitten's Avatar
 
Join Date: Jul 2010
Location: United States
Posts: 2,180
Reputation: 339
Default Re: Creating a Deathmatch Gamemode

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"
__________________
DOWNLOAD DAYZ SA:MP GAMEMODE 5.0 - 14.0 VERSION! YOU CAN ASK FOR HELP IF YOU NEED HELP INSTALLING IT! DOWNLOAD IT NOW! CLICK HERE TO VISIT PGA
Kitten is offline   Reply With Quote
Old 01/11/2011, 02:44 AM   #4
GAMER_PS2
Huge Clucker
 
GAMER_PS2's Avatar
 
Join Date: Aug 2011
Posts: 344
Reputation: 19
Default Re: Creating a Deathmatch Gamemode

Quote:
Originally Posted by Kitten View Post
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
__________________
Ronnie Ronnie Ronnie Ronnie
Not GAMER_PS2
GAMER_PS2 is offline   Reply With Quote
Old 01/11/2011, 02:47 AM   #5
Kitten
High-roller
 
Kitten's Avatar
 
Join Date: Jul 2010
Location: United States
Posts: 2,180
Reputation: 339
Default Re: Creating a Deathmatch Gamemode

Quote:
Originally Posted by GAMER_PS2 View Post
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.

http://forum.sa-mp.com/showthread.php?t=65567
__________________
DOWNLOAD DAYZ SA:MP GAMEMODE 5.0 - 14.0 VERSION! YOU CAN ASK FOR HELP IF YOU NEED HELP INSTALLING IT! DOWNLOAD IT NOW! CLICK HERE TO VISIT PGA
Kitten is offline   Reply With Quote
Old 01/11/2011, 02:35 AM   #6
GAMER_PS2
Huge Clucker
 
GAMER_PS2's Avatar
 
Join Date: Aug 2011
Posts: 344
Reputation: 19
Default Re: Creating a Deathmatch Gamemode

Thanks dude
__________________
Ronnie Ronnie Ronnie Ronnie
Not GAMER_PS2
GAMER_PS2 is offline   Reply With Quote
Old 01/11/2011, 02:43 AM   #7
Norn
High-roller
 
Norn's Avatar
 
Join Date: Jul 2008
Location: Northern Ireland
Posts: 2,269
Reputation: 206
Default Re: Creating a Deathmatch Gamemode

Quote:
Originally Posted by GAMER_PS2 View Post
Thanks dude
Thanks? He just criticized your thread.
__________________
Pursuing other endeavours.

Skype: datinvictusguy
Norn is offline   Reply With Quote
Old 01/11/2011, 06:33 AM   #8
Norn
High-roller
 
Norn's Avatar
 
Join Date: Jul 2008
Location: Northern Ireland
Posts: 2,269
Reputation: 206
Default Re: Creating a Deathmatch Gamemode

Wish people would stop calling them tutorials when clearly they're just snippets of code.
__________________
Pursuing other endeavours.

Skype: datinvictusguy
Norn is offline   Reply With Quote
Old 01/11/2011, 08:33 AM   #9
Sasino97
Banned
 
Join Date: Dec 2010
Location: Soon Banned...
Posts: 1,396
Reputation: 127
Default Re: Creating a Deathmatch Gamemode

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 Code:
#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 Code:
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 Code:
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:

Code:
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);
        }

Last edited by Sasino97; 01/11/2011 at 09:04 AM.
Sasino97 is offline   Reply With Quote
Old 01/11/2011, 09:51 AM   #10
Infinity
High-roller
 
Infinity's Avatar
 
Join Date: Jul 2009
Posts: 1,229
Reputation: 975
Default Re: Creating a Deathmatch Gamemode

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.
__________________

I apologize for the stupidity of my fellow members

Quote:
Originally Posted by !damo!spiderman View Post
Stand for something that's going to help the world rather than fill it with more hate. Give someone a hug, tell someone you care... Do something, do anything but do it with love not hate.
Infinity is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] .::Team Deathmatch::. v1.0(Very first own gamemode) kamzaf Gamemode Scripts 22 31/08/2011 04:01 AM
Creating new gamemode Kingunit Help Archive 20 15/08/2011 09:02 PM
Creating Server, Cant Chose gamemode kesafo Server Support 8 28/11/2009 09:39 PM
creating a menu when Gamemode starts Sfinx_17 Help Archive 6 15/11/2009 11:00 PM


All times are GMT. The time now is 03:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.