
Jonas^
Members-
Content Count
999 -
Joined
-
Last visited
-
Days Won
9
Jonas^ last won the day on May 26 2019
Jonas^ had the most liked content!
Community Reputation
276 SuperstarAbout Jonas^
-
Rank
Hard-@ss
Details
-
Gang
-
-
Location
Brazil
-
Interests
Programming/Scripting
Recent Profile Visitors
4,707 profile views
-
Você quer mostrar a hora e data exatamente do inicio do PTR e do final do PTR? Se sim, você deve usar: GetRealTime Um exemplo: function horaReal (thePlayer, cmd) local now = getRealTime() -- Recebe os dados do momento atual. local hours = now.hour local minutes = now.minute local days = now.monthday local months = now.month local years = now.year if (hours < 10) then -- Adiciona um 0 na frente, caso seja menor que 10. hours = "0"..hours end if (minutes < 10) then minutes = "0"..minutes end if (days < 10) then days = "0"..days end if (months < 10) th
-
Faça da forma que o @HiroShi explicou, caso não consiga, mostre o que você tentou fazer para nos corrigirmos.
-
GuiSetInputEnabled OBS: Esta função já desabilita as teclas de chat e a tecla do painel admin.
-
Beleza, mas qual a finalidade disto? já tem a aba no painel admin.
-
CreateObject SetTimer
-
Você pode fazer isso com SetElementAlpha para deixar o objeto totalmente transparente use 140;
-
From what I realized the gamemode is divided into resources, in the following folder, '' [vultaic] '', in this case you will have to add a line for each resource on the mtaserver
-
Não existe localPlayer do lado servidor. function IniRotaUm (thePlayer) setElementVisibleTo(blipMidRota1, thePlayer, true) setElementVisibleTo(MarkerRota1Mid, thePlayer, true) end addEvent ("RotaUm", true) addEventHandler ("RotaUm", root, IniRotaUm)
- 1 reply
-
- 1
-
-
function darDinheiro (thePlayer, cmd) if commandDelay[thePlayer] == nil and not istimer(commandDelay[thePlayer]) then local Dinheiro = getPlayerMoney(thePlayer) if Dinheiro >= 1200 then dxMsg (thePlayer, "Você possui dinheiro de mais para receber o auxílio.", "error") else givePlayerMoney (thePlayer, 1200) dxMsg (thePlayer, "Você recebeu o auxílio.", "success") resetCommand (thePlayer, 1000) end else dxMsg (thePlayer, "Você ja recebeu o auxílio.", "warning") end end addCommandHandler('auxilio', darDinheiro) Parece que você tentou mexer no código mas, fez cois
-
thePlayer não esta declarado em lugar algum, troque thePlayer por source.
-
Achei um código do @Lord Henry perdido pelo fórum, acho que seja útil pra você é tudo que você precisa 100% pronto basta só adaptar do jeito que você gostaria. server-side function recebeKills () local data = getAccounts () local accTable = {} local killsTable = {} local deathsTable = {} local killDeath = {} local kill = 0 local death = 0 if not data[1] then triggerClientEvent (client, "showScores", client) return end for i, acc in ipairs (data) do table.insert (accTable, getAccountName (data[i])) if not getAccountData (data[i], "kills") then table.insert (killsTa