Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: działało?
1. Jaką komende mam wpisac by to działało?
Cze??! Nie wiem jak? komende wpisa? aby to dzia?a?o

function dpln(gracz, _, graczhere, ile)
if getElementData(gracz, "duty") == 4 and graczhere and ile then
local graczhere = findPlayer(gracz, graczhere)
if not graczhere then return end
ile = string.format("%1.2f", ile)
setElementData(graczhere, "pieniadze", getElementData(graczhere, "pieniadze")+ile)
exports["w_noti"]:noti("Da?e? "..ile.." PLN graczu "..getPlayerName(graczhere), gracz)
exports["w_noti"]:noti("Otrzyma?e? "..ile.." PLN od "..getPlayerName(gracz), graczhere)
2. Czy by to działało?
Witam, i? nie posiadam komputera chcia?bym si? zapyta? czy taki kod by dzia?a?:

if getElementData(p,"gold"then
local minuty 
getElementData(p,"minuty")
local funty getElementData(p,"funty")
local punkty getElementData(p,"punkty")
if 
not minuty or not funty or not punkty then return end
if minuty == 10,20 then
funty 
funty+1000
punkty 
punkty+10
exports
.informacje:hajsbox("Przegra?e? 10 minut z kontem GOLD otrzymujesz premie!")
end
end
3. Czy to będzie działało?
Mam pytanie, czy takie co? b?dzie Mi wczytywa?o, ?e owy gracz jest na s?u?bie SAPD, czy wgl to b?dzie dzia?a?o?

Kod:


local marker=createMarker("x""y""z",  'cylinder'"WielkoscMarkera""r""g""b"255)
      
setElementInterior(marker"x")
      
setElementDimension(marker,"x")
function 
TuWpiszSwojaFunkcje(plr)
   
setElementPosition(plr"x","y","z")
end
addEventHandler
("onMarkerHit"marker, function(el)
 if 
isPlayerInPoliceFaction(elthen
  
if not getElementData(el,'player:duty'then
  getElementModel
(el,71)
end)      


Tam gdzie jest w createMarker i SetElement'ach "x", "y", "z", tam wpisz? wszystkie koordy.

Je?eli co? jest ?le, bo Mi si? wydaj? ?e tak, to prosz? popraw Mi to.. Jestem troch? nieogarni?ty w tym :/