It is currently Tue 26. Nov 2024 10:14:56

All times are UTC + 1 hour [ DST ]




Post new topic  Post a reply   Page 1 of 1  [ 5 posts ] 
Author Message

Shammy
PostPosted: Thu 18. May 2017 15:22:01 
offline
'Tractor'
'Tractor'

Joined: Sat 28. Sep 2013 15:48:02
Posts: 71

Points: 109 708
Cash: $40 309
Chtěl bych se zeptat jestli neví někdo jak udělat script z CresheZ V5 - Happy End Link na Video z jeho mapy : https://www.youtube.com/watch?v=YypLah4_Big&t=46s 00:40-00:55 jak ho to odhodí na dané souřadnice děkuji moc za každou radu


Top
   
 

LazyFox83
PostPosted: Thu 18. May 2017 18:58:37 
offline
Hlavní Administrátor
Hlavní Administrátor
User avatar

Joined: Thu 13. Oct 2011 18:32:25
Posts: 1625
Location: Dublin, Irsko

Admin Level: 5
Points: 1 581 548
Cash: $2 088 468
Nejjednodussi je vytvorit marker primo v mape, udelat ho neviditelnej, napriklad tim ze ho udelas cernej, a pak udelat script v kterym pouzijes setElementVelocity, neco jako toto:
Code:
addEventHandler("onClientMarkerHit", root,
function (element)
local veh = getPedOccupiedVehicle(localPlayer)
if not veh then return end --Pokud je v aute...
if element ~= veh then return end --A pokud je to auto naseho hrace...
if source == getElementByID("marker (1)") then
    setElementVelocity(veh, 1, 2, 3) --Experimentuj s temito cisly..
elseif source == getElementByID("marker (2)") then
    setElementVelocity(veh, x, y, z) --Znova..
end
end)

To jsou 2 markery, musis zmenit ID na ID tech markeru, to najdes v map editoru..
Pokud chces vic markeru tak jednoduse zkopirujes ten 2. marker, tzn. elseif a setElementVelocity pod tim.
Tohle je nejjednodussi moznost co me napada.

___________________
Ten nepodstatnej hlavni admin :D
Image


Top
   
 

Shammy
PostPosted: Thu 18. May 2017 19:02:13 
offline
'Tractor'
'Tractor'

Joined: Sat 28. Sep 2013 15:48:02
Posts: 71

Points: 109 708
Cash: $40 309
Díky moc :)


Top
   
 

Shammy
PostPosted: Thu 18. May 2017 20:12:33 
offline
'Tractor'
'Tractor'

Joined: Sat 28. Sep 2013 15:48:02
Posts: 71

Points: 109 708
Cash: $40 309
Nevim kde hledat chybu


Attachments:
ScriptTest.jpg
ScriptTest.jpg [ 462.75 KiB | Viewed 18719 times ]
Script-3.png
Script-3.png [ 121.3 KiB | Viewed 18719 times ]
sctipz.png
sctipz.png [ 141.45 KiB | Viewed 18719 times ]
Top
   
 

LazyFox83
PostPosted: Thu 18. May 2017 23:22:54 
offline
Hlavní Administrátor
Hlavní Administrátor
User avatar

Joined: Thu 13. Oct 2011 18:32:25
Posts: 1625
Location: Dublin, Irsko

Admin Level: 5
Points: 1 581 548
Cash: $2 088 468
Proc jsi zmenil veh na 411? Prvni argument ma byt vozidlo jako element, ne cislo modelu. Pak jeste, ty x, y, z souradnice nejsou x, y, z jako pozice ale kolik sily se aplikuje na to vozidlo, nevim jak to popsat. Ale ty tam mas pres 2000 u X, coz je neco silenyho, to auto by letelo rychlosti svetla. Tu mas info o funkci: https://wiki.multitheftauto.com/wiki/setElementVelocity.

___________________
Ten nepodstatnej hlavni admin :D
Image


Top
   
 
Display posts from previous:  Sort by  
Post new topic  Post a reply   Page 1 of 1  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
TOPlist
Powered by phpBB® Forum Software © phpBB Group

©MSHost.cz