It is currently Tue 26. Nov 2024 17:54:54

All times are UTC + 1 hour [ DST ]




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

MatrX
PostPosted: Sun 18. Aug 2013 22:24:24 
offline
'Infernus'
'Infernus'
User avatar

Joined: Sat 30. Jun 2012 0:54:16
Posts: 546
Location: Mars

Points: 4 258 845
Cash: $3 271 998
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

___________________
Spoiler: show
Image


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

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