[Tutorial] Make A Samp Server 0.3x 4/4 parts
#1

How To Make A Samp Server And Edit It 4/4 Parts Completed

Quote:

1-Description: This tutorial is made to help beginners on samp if they want to make a samp server and edit it with commands and every thing so.... i hope that will help u all
2-Features: Added Part 3 And its Adding Message commands like /help /cmds /forum......
added Part 4 and its A general cmds like /heal /god /godcar /armour
and Added part 2 For Making Skins on GM :d
Putted Aviable Download links (at end of this topic)............... and much more

Quote:

Thanks To:
+Sa-Mp Forums For the 0.3x Version
+Napster101 For Every thing

Warning: Download Links Must Be At the End Of This Topic
Warning: No Need For -reps if you dont like this !!!!
Warning: Feel Free to ask any thing

Note: Lets Get Started:

Quote:

-Part 1:
1-Download The samp03x_svr_R1-2_win32.zip (this download link in the end)
2-extract it on your desktop
3-now for the IP PORT of your server go to Server.cfg (the IP PORT Must Be 7777) on the server.cfg you can change any thing like the server name and ip port and website and add plugins and etc ....
4-open SAMP.exe then push on ADD server Button

NOTE: This image is token on 0.3e version so dont care just look on the add server button
5- after pushing on the add server button a little box will be shown

into that box enter your ip port if its 7777 put :7777 (dont forget to put : )
6-go to server folder and Open Samp-server.exe
7-than go back to the SAMP.exe And you will find the server working (but its not hosted)

Quote:

-Part: 2
1- Open Pawno.exe
2- Make A new fs (by pushing on NEW button)
3- than type CNTRL + F and search for : AddPlayerClass
4-now it will show u this : AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
but this is with no skin ;( lets edit it
5- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
NOTE: With the Green Color is the Player Skin :
NOTE: And with the red color Is the weapon slots
6- just still copy it and paste and put a lot of skins
you can get skins from https://sampwiki.blast.hk/wiki/Skins:All
After A LOT OF WORK i made this :

Code:
AddPlayerClass(266,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop
	AddPlayerClass(211,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // female citycop
	AddPlayerClass(265,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop
	AddPlayerClass(267,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // citycop
	AddPlayerClass(283,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); //  police
	AddPlayerClass(284,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); //  police
	AddPlayerClass(285,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); //  police
	AddPlayerClass(286,-1722.3170,1018.0255,17.5859,88.8758,3,1,22,50,29,500); // fbi
    AddPlayerClass(287,2941.0012,468.3174,21.6395,49.3062,24,50,30,500,34,20); // army
    AddPlayerClass(164,-1590.5083,716.0220,-5.2422,269.2736,23,100,25,50,0,0); // CIA spawn
    AddPlayerClass(122,-1590.5083,716.0220,-5.2422,269.2736,3,1,22,50,29,500); // plain clothes
    AddPlayerClass(71,-1261.6409,38.9104,14.1387,226.4688,3,1,22,50,29,500); // air cops
    AddPlayerClass(71,-1552.3872,1275.2610,7.1845,177.3413,3,1,22,50,29,500); // marine unit new
    AddPlayerClass(276,1624.2527,1821.0498,10.8203,5.6779,22,50,0,0,0,0); // medic 2
	AddPlayerClass(50,2006.1929,2295.9451,10.8203,177.4306,22,50,0,0,0,0); // mechanic spawn
    AddPlayerClass(133,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn male
    AddPlayerClass(151,1151.7200,1399.4144,5.8203,0.9030,22,50,0,0,0,0); // driver spawn female
    AddPlayerClass(12,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
    AddPlayerClass(23,2090.1008,2078.2600,10.8203,263.0699,0,0,0,0,0,0);// civil skin
    AddPlayerClass(29,2815.0498,2254.1252,10.8203,158.6954,0,0,0,0,0,0); // hoody skin civi
    AddPlayerClass(294,2814.0542,2253.4043,10.8203,315.9051,0,0,0,0,0,0); // woozie skin
    AddPlayerClass(214,2812.1963,2247.7256,10.8203,352.8735,0,0,0,0,0,0); // civi
    AddPlayerClass(1,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
    AddPlayerClass(15,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
    AddPlayerClass(34,2634.0793,1072.6293,10.8203,88.4012,0,0,0,0,0,0);// civil skin
    AddPlayerClass(2,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
    AddPlayerClass(9,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0); // civil skin
    AddPlayerClass(19,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
    AddPlayerClass(22,2193.6528,2007.7402,12.2894,1.8574,0,0,0,0,0,0);// civil skin
    AddPlayerClass(26,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
    AddPlayerClass(31,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
    AddPlayerClass(45,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
    AddPlayerClass(46,2082.0784,2480.8333,10.8203,182.0390,0,0,0,0,0,0);// civil skin
	AddPlayerClass(9,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); // civil skin
	AddPlayerClass(13,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(14,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(24,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(33,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(36,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(38,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(160,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(82,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(107,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(59,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(127,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(128,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(138,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(28,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(147,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(299,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(123,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
 	AddPlayerClass(204,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(249,2193.7366,2007.4865,12.2894,358.2378,15,1,15,500,28,500); //Pimp skin
	AddPlayerClass(264,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(269,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(270,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(293,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // OG Loc
	AddPlayerClass(271,2193.7366,2007.4865,12.2894,358.2378,0,0,0,0,0,0); //civil skin
	AddPlayerClass(298,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // gloris skin///141
	AddPlayerClass(137,2193.5884,2007.4149,12.2894,355.9373,0,0,0,0,0,0); // Box on head Hobo guy
Quote:

fell free to use it
-7 now lets edit player spawn place
now Type CRTL + F and search for : SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
now if u wanna do a place by u just go ingame and go in a place type /save then go out and go to
-- Documents And Settings >>> GTA San Andreas User Files >>> SAMP >>> savedpositions.txt
go to last line on the savedpositions.txt
copy it and paste it on SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
but if u wanna an already made place here : SetPlayerPos(playerid,-1753.6743,885.2703,295.8750);
its awsome

[quote]-Part 3
1- do CRTL + F and Search for OnPlayerCommandText you will find this :
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
DELETE IT now use this :
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/help", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
return 1;
}
return 0;
}
Now lets make A message command
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/help", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "_____...:::: Welcome To Our Server Enjoy! ::::..._____");
SendClientMessage(playerid, 0xFFFFFFFF, "___________________Our HELP!___________________");
SendClientMessage(playerid, 0xFFFFFFFF, "You can see all aviable Commands at /cmds");
SendClientMessage(playerid, 0xFFFFFFFF, "For More Information Please visit : (put your web here) ");
return 1;
}
return 0;
}
that was the /help command
now lets do a /forum
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/forum", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Our Forum is : (put your forum here)");
return 1;
}
return 0;
}
Now a /cmds
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/cmds", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, "_________..::Our Server Commands::.._________");
SendClientMessage(playerid, 0xFFFFFFFF, "Aviable Commands : ( put your server commands here )");
SendClientMessage(playerid, 0xFFFFFFFF, "for example : /help /forum /cmds ...");
return 1;
}
return 0;
}

that message will be shown with white but if u wanna change color here some color texts :
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_VIOLETBLUE 0x8A2BE2AA
#define COLOR_DEADCONNECT 0x808080AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_FORESTGREEN 0x228B22AA
#define COLOR_DODGERBLUE 0x1E90FFAA
#define COLOR_DARKOLIVEGREEN 0x556B2FAA
#define COLOR_ORANGE 0xFFA500AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_ROYALBLUE 0x4169FFAA
#define COLOR_ERROR 0xD2691EAA
#define COLOR_PINK 0xFF0080FF
#define COLOR_SEXYGREEN 0x00FF00FF
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_LIME 0x10F441AA
#define COLOR_ADMIN 0x10F441AA // Currently Lime.
#define COLOR_CYAN 0x40FFFFFF
#define COLOR_ORANGERED 0xFF4500AA

ok lets change some colors just go on
ok we have this for example :
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: This is the /help command!");
change the 0xFFFFFFFF to a Color text ok maybe lets put it with red
put that : 0xFF0000AA on the 0xFFFFFFFF place and complie and done! [QUOTE]
Quote:

-Part : 4
lets put a /godon command :

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/godon", cmdtext, true))
{
SetPlayerHealth(playerid, 99999999999);
return 1;
}
if(!strcmp("/godoff", cmdtext, true))
{
SetPlayerHealth(playerid, 100);
return 1;
}
return 0;
}
now i made that and u can make other own commands good luck :d Thanks For watching

Quote:

Downloads

Reply


Messages In This Thread
Make A Samp Server 0.3x 4/4 parts - by Napster101 - 07.08.2013, 16:35
Re: Make A Samp Server 0.3x 4/4 parts - by Vrag - 07.08.2013, 16:39
Re: Make A Samp Server 0.3x 4/4 parts - by Ninad - 07.08.2013, 16:41
Re: Make A Samp Server 0.3x 4/4 parts - by Napster101 - 07.08.2013, 16:41
Re : Make A Samp Server 0.3x 4/4 parts - by Rise_above_hate - 07.08.2013, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)