Difference between revisions of "GtaTournament"

From GTAMods Wiki
Jump to navigation Jump to search
m (Version Release History)
 
Line 1: Line 1:
[[Category:Multiplayer]] [[Category:GTA SA]]
+
#REDIRECT [[GTATournament]]
The gtaTournament (GTAT) project was the first multiplayer modification for [[:Category:GTA VC|Grand Theft Auto Vice City (GTAVC)]] and [[:Category:GTA SA|Grand Theft Auto San Andreas (GTASA)]].
 
 
 
==Grand Thefts Online==
 
{{quote|DracoBlue|gtaTournament is no Deathmatch GTA. Our aim is to get grand thefts online, like the single player just with more then one guy.}}
 
 
 
To make every server unique instead of hardcoding the server, a scripting language is used called VCS.  There are hundreds of script commands which make servers capabable of game modes based on racing, Deathmatch, Role Playing Games (RPG), Capture the Flag (CTF) and many others.
 
 
 
==Script Language==
 
Like some other script langauges, in VCS there are two types of processes: Events and Commands.  These are explained in the following sections.
 
 
 
=== Commands ===
 
Commands are structured like function calls in a similar way to other programming languages.  They require at least one parameter and they return a value.
 
 
 
'''Code Sample'''
 
// @title  Message all players in an circle
 
// @author DracoBlue  | @date 24.09.2005 | @update 24.09.2005
 
// Needs $x,$y,$z with coords, and $pl,$tmp as temp vars.
 
$radius:="100";
 
$text:="Hello!";
 
$pl:=PLAYERS_IN_CIRCLE($x,$y,$z,$radius);
 
$tmp:="0";
 
while (BIGGER(LCOUNT($pl),$tmp))
 
  begin
 
    $tmp:=ADD($tmp,"1");
 
    messageto(
 
      PLAYERSNAMEBYID(LGET($pl,$tmp)),
 
      $text)
 
    );
 
  end;
 
 
 
A complete list of all commands is available in the [http://spieleschuppen.de/index.php/VCS_%28English%29 official documentation].
 
 
 
=== Events ===
 
Events are "raised" if something special happens. For example, a player joining or sending a message using the in-game chat system.  When an event is raised, a section of commands associated with that event are automatically processed.
 
 
 
'''Code Sample'''
 
// Adds a line to VCS-Console, when someone enters the game.
 
procedure ON_PLAYER_JOIN;
 
    var $text;
 
  begin
 
    $nickname:=PlayersNameByID($nickname);
 
    $text:=concat("Gejoint ist :",$nickname);
 
    echo($text);
 
  end;
 
 
 
More information about events is available in the [http://spieleschuppen.de/index.php/VCS_%28English%29#Events official documentation].
 
 
 
==Version Release History==
 
* 2006-02-16, 21:01: '''0.3c'''
 
* 2006-02-06, 20:42: '''0.3b'''
 
* 2006-01-23, 20:29: '''0.3a'''
 
* 2005-11-04, 20:19: '''0.2'''
 
* 2005-09-28, 14:48: '''0.1c'''
 
* 2005-07-14, 18:56: '''0.1b'''
 
* 2005-07-02, 12:52: '''0.1a'''
 
 
 
''The GTAVC and GTA3 releases are not shown here yet.''
 
 
 
==Links==
 
* [http://gtat.org Official Homepage] - including a [http://downloads.gtat.org Downloads section].
 
* [http://forum.gtat.org Official Forum]
 
* [irc://irc.gtanet.com/#gtat GTAT's IRC Channel]
 

Latest revision as of 11:29, 10 November 2006

Redirect to: