Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Stiu ca mai este un tutorial, dar acela este cu comanda /enter. Acum va arat cum sa faceti fara comanda.

1. Adaugarea pickupului de intrare.

    Intrati aici http://weedarr.wikidot.com/pickups si alegeti un pickup.

    Mergeti la public OnGameModeInit() si adaugati:

   

AddStaticPickup (id, 2, x,y,z, virtual world)
    In cazul nostru avem    
AddStaticPickup(1239, 2, 2770.6973,-1628.4293,12.1775);
2. Teleportarea propriu-zisa (intrare)     Mergeti la
public CheckForWalkingTeleport(playerid)
    Si adaugati
else if(PlayerToPointStripped(1, playerid,x,y,z, cx,cy,cz)) //unde x,y,z reprezinta coordonatele
	{//Intrare
		GameTextForPlayer(playerid, "~w~Textul vostru", 5000, 1);
		SetPlayerInterior(playerid, int); // interiorul ales
		SetPlayerPos(playerid,x,y,z);//pozitia aleasa
		PlayerInfo[playerid][pInt] = int;//interiorul ales 
	}
    Interioarele le gasiti aici http://weedarr.wikidot.com/interior         Acum sa facem iesirea.    
else if(PlayerToPointStripped(1, playerid,x,y,z, cx,cy,cz))
	{//Iesire 
		GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid,x,y,z); //pozitia pe care o vreti la iesire.
		PlayerInfo[playerid][pInt] = 0;
	}
      Asta e tot.       Si un model complet:      
if(PlayerToPointStripped(1, playerid,1554.9537,-1675.6584,16.1953, cx,cy,cz))
	{//LSPD Entrance
		GameTextForPlayer(playerid, "~w~Police Department", 5000, 1);
		SetPlayerInterior(playerid, 6);
		SetPlayerPos(playerid,246.7079,66.2239,1003.6406);
		PlayerInfo[playerid][pInt] = 6;
	}
	else if(PlayerToPointStripped(1, playerid,246.5325,62.4251,1003.6406, cx,cy,cz))
	{//LSPD Exit
		GameTextForPlayer(playerid, "~w~Los Santos", 5000, 1);
		SetPlayerInterior(playerid, 0);
		SetPlayerPos(playerid,1552.3231,-1674.6780,16.1953);
		PlayerInfo[playerid][pInt] = 0;
	}

      Sper ca v-a fost de folos.

Posted

stuntman-=!!" post="48711" timestamp="1293007052"]

LOL, ne inveti cum sa facem fara comanda =))), scoti comanda /enter si gata, lol...

Lock topic!

Daca taceai,filozof ramaneai.Cum adica scoti comanda(referindu'te la celalt tut) si 'gata' . Ala o sa stea in pickup mult si mine,pana cand i'o creste mustata si viermi in creier,pentru ca doar prin comanda il teleporta.

N'am de ce sa dau lock,a facut tut'ul bine,cu exemplu si caz general.

Gj

Posted

else if(PlayerToPointStripped(1, playerid,x,y,z, cx,cy,cz)) //unde x,y,z reprezinta coordonatele

  {

      if(PlayerInfo[..]== x )

    {

      GameTextForPlayer(playerid, "~w~Textul vostru", 5000, 1);

      SetPlayerInterior(playerid, int); // interiorul ales

      SetPlayerPos(playerid,x,y,z);//pozitia aleasa

      PlayerInfo[playerid][pInt] = int;//interiorul ales

    }

  }

Nu stiu exact cum e in gf pentru factiuni,cauti tu si inlocuiesti

Guest JullCosmin
Posted

Bun am inteles,  dar cum facem sa fie doar pentru factiunea respectiva ?

  • 5 weeks later...
  • 2 months later...
  • 2 weeks later...
Posted

NUI FACUT DE TINE LAI LUAT DE PE http://gamemodsamp.ucoz.com/forum/8-19-1

Tu de unde ai mai aparut mai Pardalian? Ia uita-te la data la care l-am postat eu si la data care l-a copiat ala.

Posted

NUI FACUT DE TINE LAI LUAT DE PE http://gamemodsamp.ucoz.com/forum/8-19-1

forumu ala e copiat 100% de aici, uitate la tutoriale la tutoriaulul meu ia pus acelasi titlu ca pe samp.ro si data cand am editat eu aici =))

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.