Bisa dibilang SAMP adalah mod yang gampang untuk didownload dan dipasang karena gratis. Dengan SAMP, kita bisa membuat server kita sendiri dengan script – script gamemode yang sudah ada dan kita memodifikasi script tersebut sesuai dengan keinginan kita. SAMP selalu diupdate terus dan penuh dengan komunitas yang antusias akan GTA SA. Returned player shadows disabled in SA-MP. Ability to run multiple SAMP clients. In SA-MP appears when typing input language (Setting can be disabled in installation) New interface dialogs SA-MP and the cursor (Setting can be disabled in installation) Possibility of replacing timecyc. High Quality Lights Mod works in SA-MP.
The 'samp folder.Welcome to your very first tutorial about PAWN Scripting Language and PAWNO Program. This tutorial is designed to help beginners (newbies, noobs) to understand how PAWN works and how can you create a simple Server Script.
When you finish this tutorial, you'll have a fully-functional Deathmatch script. Before starting, be sure you have this material:. SA-MP Server installed. Functional GTA:SA US/EU game copy. PAWNO Program (pawno.exe).
All this stuff working correctly on the GTA:SA Folder.I recommend you create a Folder inside your GTA:SA Root folder with the name 'samp' and put all the material there. This will make easier the lesson as I use the following configuration: SA Rootsamp and all the other Folders that are in there (gamemodes, filterscripts, pawno, scriptfiles). So, you're equipped, let's begin. What is PAWN and PAWNO?According to Wikipedia, Pawn is a programming language that is embedded into other programs, for example, Half-Life or Quake, in our case, SA-MP. CompuPhase SMALL is a simple, typeless, 32-bit extension language with a C-like syntax.
![Gamemode samp romania Gamemode samp romania](http://i.imgur.com/ZZ28xA8.png)
It is designed to be useful as an embedded systems programming language and is distributed under a liberal zLib/libpng license. This language is useful as a safer environment within or alongside the C programming language, for instance as a scripting language in games programming or on resource-limited systems.
Now, however, it has been renamed to PAWN.Now that we know what is PAWN, we can continue with PAWNO. PAWNO is the program used to code and write PAWN code. It's a simple IDE made to edit PAWN files. You can still use other IDE such as Notepad, Sublime Text 2 or 3, Visual Basic, so on. You just need to know how to setup custom compiler and that's it. See below to setup your Notepad or Sublime Text to edit and compile PAWN scripts. by Slice.
by Macluawn. Your first PAWNO screen.Go to your SA root folder, and search your brand-new folder, maybe called 'samp' or other thing. You'll see some.exes, some text files and some folders. Go right to the 'pawno' folder. Open pawno.exe, then click new on the toolbar.
![Server Server](http://i.imgur.com/FInqMi8.jpg)
Your first SA-MP server script.Of course the server can work with this 'blank' script, but can you imagine a server full of unarmed CJ's running everywhere? That's not the kind of server we want. We want something with a lot of spawnpoints, some commands, multiple player models and deathly weapons.We need to code. We'll start coding in PAWN language. Example of 'savedpositions' file.And add yours, that may look the same but with different data.
Now, let's try it! Save your PAWN file into sampgamemodes and then click the button inmediatly on the left of the blue arrow (This will compile.pwn files into.amx, readable for the server). Now go to your 'samp' folder and open 'server.cfg'; replace the gamemode line with 'gamemode your.pwn file name', save and close, now run 'samp-server.exe'. Go to SA-MP client and add to the favorites this IP: 127.0.0.1. This is your local testing IP. It should say Unnamed SA-MP 0.2.2 Server, and as Gamemode 'Blank Script'. That's ok for now.
Now connect.Surprise! What can you see?
That classical electric-stairs spawpoint. Doesn't matter, change your class and you'll see you'll spawn at your designated place. Now we'll start modding more Script parts to personalize the server. Vehicle spawnsNow let's add some vehicles. The vehicle spawn lines are put in the OnGameModeInit callback, aswell as the player classes spawnpoints, the Gamemode name and other stuff.
We'll do that later. List of available car colorsThe modelid/vehicletype numbers can be found in your vehicles.ide file, the Floats are just non whole numbers, basically co-ordinates and angles, and the color numbers can be found in your carcols.dat file, look for the reference number for the color you want, so ' black' is ' 0', ' taxi yellow' is ' 6', ' currant blue poly' is ' 32' etc, ' -1' means random (from that car's default colors, found lower in the carcols.dat file). If you want to get the position for a vehicle, go into debug mode, select your vehicle, get in and type ' /save' then open up ' savedpositions.txt' and copy the line. If you want to spawn a vehicle in debug mode, type ' /v ' ingame and that vehicle will spawn (vehicleid is taken again from vehicles.ide), or type ' /vsel' to bring up the vehicle command screen.I got these co-ordinates:2040.2279, 1344.4127, 11.0, 3.5436Note: These are called floats, 11.0 is a float despite being whole, any whole number being used as a float must have a trailing '.0' to denote it as a float. These numbers are in the english format of using a decimal point ('.'
), commas are used to separate parameters. Also remember the 4th number is angle, so if we now add the following line to the game mode in OnGameModeInit, recompile and test, we will get a bright pink infernus outside the casino which is the default spawn position for CJ. Note: on a car which uses the secondary color (such as a cop car (id 596)) this would be a pink and blue car as that is the secondary color.( 411, 2040.2279, 1344.4127, 10.6719, 3.5436, 126, 54 );Now you can easily go about saving positions and creating as many cars as you want (up to an engine defined limit of 700 individual cars, 70 different types (models) of cars). The spawns saved to the file will have ' -1, -1' as the colors by default.