Jump to content

[Script] ReLoaD Parking


ReLoaD

Recommended Posts

Sunt nou pe acest site, dar sper ca voi fi acceptat in aceasta comunitate :) .

Am venit in primul rand cu ceva nou, si eu consider ca este RP.

Descriere:

Este un script micut, foarte bun pentru servere GodFather.

Observati ca nu am pus nimic acolo unde scrii /buyticket.

Va las pe voi sa adaugati o bariera, gate, tot ce vreti!Deci, va duceti aici, si tastati /buyticket.

7rmytbst3tec59ehvyt2.png

Apoi va va pune in parcare.

Puteti sa va alegeti masina(puteti sa adaugati masini daca vreti, cu AddStaticVehicle)si apoi va duceti la bariera/gate/ce ati pus :) .

Scrieti /finish. lgg2a3nj7odj8gbm8e.png

Va va da dupa presupusa bariera.x9wc9nvd3ha6jqjq0se.png

Puteti sa va plimbati cu ea, chiar sa o distrugeti ( :)) ) .Daca ati terminat "treaba" si v-ati plictisit de masina, puteti sa va duceti inapoi la bariera si sa scrieti /finishrent . due2bbbfrlomix63cj.png

1auxffy2kt99c1sylt2.png

Aa,da! Daca nu ai Tichet, primesti wanted.Si NU te da dupa bariera.

Simplu,nu? :)

Acum sa va spun cum faceti!

Mai intai, adaugam licenta Ticket, pentru a vedea daca aveti sau nu tichetul. :)

Va duceti la linia cu licente, si adaugati pTicketLic:


	pCarLic,
	pFlyLic,
	pBoatLic,
	pFishLic,
	pGunLic,
	pTicketLic,
Acum va duceti la comanda /licenses.
	        new text1[20];
	        new text2[20];
	        new text3[20];
	        new text4[20];
	        new text5[20];
	        new text6[20];
	        if(PlayerInfo[playerid][pCarLic]) { text1 = "Passed"; } else { text1 = "Not Passed"; }
            if(PlayerInfo[playerid][pFlyLic]) { text4 = "Passed"; } else { text4 = "Not Passed"; }
			if(PlayerInfo[playerid][pBoatLic]) { text2 = "Passed"; } else { text2 = "Not Passed"; }
	        if(PlayerInfo[playerid][pFishLic]) { text3 = "Passed"; } else { text3 = "Not Passed"; }
	        if(PlayerInfo[playerid][pGunLic]) { text5 = "Passed"; } else { text5 = "Not Passed"; }
	        if(PlayerInfo[playerid][pTicketLic]) { text6 = "Passed"; } else { text6 = "Not Passed"; }
Dupa cum vedeti, am adaugat text6(se vede clar) si linia
if(PlayerInfo[playerid][pTicketLic]) { text6 = "Passed"; } else { text6 = "Not Passed"; }
Acum sa adaugam comenzile.Eu, in scriptul meu am pus comenzile acestea dupa comanda "/advertise" Copy/Paste!
//-----------------------------------[TicketBuying]--------------------------------------------
if(strcmp(cmd, "/buyticket", true) == 0)
	{
	if(gPlayerLogged[playerid] == 1)
	  {
			if(PlayerInfo[playerid][pCash] > 500)
 			{
				if(IsPlayerConnected(playerid))
	 			{
	    			if(PlayerToPoint(3.0,playerid,1625.7949,-1142.2427,24.0703))
	    			{
	    			SetPlayerPos(playerid,1628.8477,-1136.3883,23.9063);
					GivePlayerMoney(playerid, -500);
					PlayerInfo[playerid][pTicketLic] = 1;
					}
					else
	    			{
	    			SendClientMessage(playerid, COLOR_GREEN, "Nu esti la bariera");
					return 1;
					}
	  			}
			}
			else
			{
			SendClientMessage(playerid, COLOR_GREEN, "Nu ai destui bani!");
			return 1;
			}
		}
	}
//-----------------------------------[Going through the gate]-----------------------------------
if(strcmp(cmd, "/finish", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	    {
	    if(PlayerToPoint(3.0, playerid, 1636.0560,-1136.0815,23.9063))
	    {
	    new vehicleid = GetPlayerVehicleID(playerid);
		new State = GetPlayerState(playerid);
		if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
		{
		GameTextForPlayer(playerid,"~b~Condu ~y~Regu~r~lamentar!",4000,6);
		return SetVehiclePos(vehicleid,1636.5352,-1145.8290,23.5314);
		}
		PlayerInfo[playerid][pTicketLic] = 0;
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "Sa iti conduci masina cu placere!");
		SendClientMessage(playerid, COLOR_LIGHTBLUE, "Si nu uita, sa conduci regulamentar!");
		return 1;
	    }
	if(gPlayerLogged[playerid] == 0)
	    {
	    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nu esti logat!");
	    }
   		if(PlayerInfo[playerid][pTicketLic] < 1)
		{
        if(PlayerInfo[playerid][pTicketLic] < 1)
		{
		    WantedPoints[playerid] += 1;
			SetPlayerCriminal(playerid,255, "Furt de masina");
			}
		}

	}
 }


//------------------------------------[Finishing the rent]--------------------------------------
if(strcmp(cmd, "/finishrent", true) == 0)
	{
	if(IsPlayerConnected(playerid))
	    {
		if(PlayerToPoint(3.0,playerid,1637.9751,-1146.9254,23.5311))
		    {
	    new vehicleid = GetPlayerVehicleID(playerid);
		new State = GetPlayerState(playerid);
		if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
		{
		GameTextForPlayer(playerid,"~b~Te rugam, ~y~parcheaza ~r~masina!",4000,6);
		SetVehiclePos(vehicleid,1638.6008,-1134.4431,23.5309);
		GivePlayerMoney(playerid, 50);
		}
			if(gPlayerLogged[playerid] == 0)
			    {
			    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Nici macar nu te-ai logat!");
			    }
			}
		}
	}

Parampam, si gata!Nu e simplu? :)

Credits:

Me - Script Maker  ;D

Jim_Statham(Roman, desigur :D ) - Pentru sfaturi

-Finished-

//-------------------

Nu dau ID-ul meu! Puteti sa ma contactati in PMs.

O zi buna!

Sfatul meu: Inconjurati locul de parcare cu un gard rezistent care nu se distruge cand intri cu masina in el :) .

Update!0.2 Version is here :X

--> ReLoaD Parking v0.2

Cum batea vantul pe aici, m-am gandit sa imi perfectionez sistemul meu /buyticket, pentru ca am invatat mult mai multe din scripting.

Link to comment
Share on other sites

Scrie codul intr-un fisier .pwn (PAWN)

Si foloseste [ code ] [ /code ] ca sa postezi coduri.

Editat, am vrut sa postez cu [pawn] dar am vazut ca nu merge :) .

Eu spun ca e mai bine sa invat pe cineva cum se face, daca are comenzile in fata lui :| .

Dar bine, uploadez GF acum.

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
Guest Tudor(Tuddle)

Totusi eu nu le inteleg de loc astea de la script ....deci am intrat in Pawno si am dat OPEN la

un GM si anume Cang ....... ca sa traduc inca ceva la el.....imi dadea propozitiile in romana :D si am modificat doar ce scria in romana  ::) dar nu a mers :|

AI compilat dupa ce ai modificat tu acolo?

Link to comment
Share on other sites

Aham, si asa sa explic la toate partile?Dar sa ne luam dupa RazR, faceti topicul de 1 rand,fara explicatii, fara nimic. Fara suparare :| .

Am scris asa ca sa nu se incurce aceia mai incepatori, ca sunt mai multe locuri unde se pune pCarLic, gandeste logic  ???

  e bn ce ai facut, stai linistit...

bv

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Link to comment
Share on other sites

  • 5 months later...
  • 1 month later...
  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.