Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-01-11, 17:02


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Witam ot?z zrobi?em co? takiego:

function pogotowie(thePlayer)

local gracz getPlayerName(thePlayer)

outputChatBox (gracz.."  Wzywa Pogotowie Ratunkowe ! "getRootElement(),12023563)
     setTimer(function()

local xygetElementPositionthePlayer )
local thePlayer createBlipxyz22000255 )

end,2000,0)
end
addCommandHandler("999"pogotowie)


Co zrobi?, by ten marker si? usuwa? a nie powstawa? kolejny ?

[ Dodano: 2017-01-11, 17:12 ]
Dobra dzia?a, mam co? takiego, ale co zrobi?, ?eby tylko Pogotowie widza?o, ?e kto? ich wzywa



local gracz getPlayerName(thePlayer)

outputChatBox (gracz.." Was wzywa! "getRootElement(),12023563)


local xygetElementPositionthePlayer )
local thePlayer createBlipxyz22000255 )

     setTimer(function()
    destroyElement(thePlayerend,2000,1)
end
addCommandHandler("999"pogotowie)




Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-11, 17:20


nanKy







Wiek: 22
Na forum: 3865 dni
Posty: 498
Nick w MP: nanky

Piwa: 1773

Respekt: 239
Respekt: 239Respekt: 239

Zale?y pod co masz frakcje ACL/MYSQL czyli elementdata
Jak masz pod acl to nie doko?ca wiem jak to ma wygl?da? lecz co? na tym przyk?adzie


local gracz getPlayerName(thePlayer)
if isObjectInACLGroup "user." ..graczaclGetGroup "Frakcja" then
outputChatBox (gracz.." Was wzywa! "getRootElement(),12023563)


local xygetElementPositionthePlayer )
local thePlayer createBlipxyz22000255 )

     setTimer(function()
    destroyElement(thePlayerend,2000,1)
end
end
addCommandHandler("999"pogotowie)




LUB MYSQL/ELEMENTDATA



local gracz getPlayerName(thePlayer)
    if getElementData("elementdatafrakcji"then
outputChatBox (gracz.." Was wzywa! "getRootElement(),12023563)


local xygetElementPositionthePlayer )
local thePlayer createBlipxyz22000255 )

     setTimer(function()
    destroyElement(thePlayerend,2000,1)
end
end
addCommandHandler("999"pogotowie)


Postaw piwo autorowi tego posta
 

 
Tagi: wezwania.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku