amaru Posted December 22, 2010 Posted December 22, 2010 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.
IstuntmanI Posted December 22, 2010 Posted December 22, 2010 LOL, ne inveti cum sa facem fara comanda =))), scoti comanda /enter si gata, lol...Lock topic!
Guest farse Posted December 22, 2010 Posted December 22, 2010 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
stefanel994 Posted December 22, 2010 Posted December 22, 2010 Pai asta e pentru toate lumea. CUm faci sa poate dar membri unei anumite factiuni sa poata da /enter si exit in el?
Guest farse Posted December 22, 2010 Posted December 22, 2010 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 December 26, 2010 Posted December 26, 2010 Bun am inteles, dar cum facem sa fie doar pentru factiunea respectiva ?
Cruncy Posted March 27, 2011 Posted March 27, 2011 am facut exact asa si cand ma duc pe pickup nu ma teleporteaza...dc?:|
heker Posted March 27, 2011 Posted March 27, 2011 am facut exact asa si cand ma duc pe pickup nu ma teleporteaza...dc?:|Uite aici tutorialul asta este cam invechit click
amaru Posted April 2, 2011 Author Posted April 2, 2011 Uite aici tutorialul asta este cam invechit clickNu e corect. Daca asta e invechit eu sunt popa.
Diabolik Posted April 14, 2011 Posted April 14, 2011 NUI FACUT DE TINE LAI LUAT DE PE http://gamemodsamp.ucoz.com/forum/8-19-1 LISTA - GAMEMODE-URI SA-MP - Le gasiti pe toate aici: http://twiriock.com/3MGP
amaru Posted April 14, 2011 Author Posted April 14, 2011 NUI FACUT DE TINE LAI LUAT DE PE http://gamemodsamp.ucoz.com/forum/8-19-1Tu 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.
NeKeRm@N Posted April 14, 2011 Posted April 14, 2011 NUI FACUT DE TINE LAI LUAT DE PE http://gamemodsamp.ucoz.com/forum/8-19-1forumu 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 =))
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now