MSHost.cz https://forum.mshost.cz:443/ |
|
Teleport skript pro mapperi od UN!TA :3 https://forum.mshost.cz:443/viewtopic.php?f=18&t=27960 |
Page 1 of 1 |
Author: | eXcY [ Sun 18. Aug 2013 22:24:24 ] |
Post subject: | Teleport skript pro mapperi od UN!TA :3 |
1. Udeláme client.lua a vložíme do neho: Code: marker = createMarker( X, Y, Z, "Type", Size, R, G, B, A) Informace o markeru. XYZ - Pozice kde se ma marker nachádzet,Type - Typ markeru, treba corona. Size - velikost, RGB - Barvy v red green blue, A-alpha (zaklad je 255) function teleport (player) if source == marker then if isPedInVehicle(player) then local vehicle=getPedOccupiedVehicle(player) setElementPosition(vehicle, X, Y, Z) - pozice kam nás ma marker portnout. setVehicleFrozen(vehicle, true) setTimer(setVehicleFrozen, 1000, 1, vehicle, false) end end end addEventHandler("onClientMarkerHit", getRootElement(), teleport) pak tohle dáme do mety v mape: Code: <script src="client.lua" type="client"></script> vše:3 -UN!T |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |