[lua]setTimer(function()
local players=getElementsByType('player')
for _, p in pairs(players) do
if getElementData(p, "player:online") and tonumber(getElementData(p, "player:online")) > 1 then
if getElementData(p, "player:online") == 1 then
local hour = getElementData(localPlayer,"player:hours") or 0
setElementData(localPlayer,"player:hours",hour+0.5)
end
setElementData(p, "player:online", 0)
if getElementData(p, "player:premium") then
givePlayerMoney(p, 250000)
rp = getElementData(p, "player:srp")
setElementData(p, "player:srp", rp+10)
triggerClientEvent(p, "createNotif",p,"Otrzymujesz 250,000$ oraz 10 RP za przegranie 30 minut",3,"success")
outputChatBox("#00ff00✔ #ffffff- Otrzymujesz 250,000$ oraz 10 RP za przegranie 30 minut!",p,255,255,255,true)
end
if getElementData(p, "player:premiumplus") then
givePlayerMoney(p, 400000)
rp = getElementData(p, "player:srp")
zeton = getElementData(p, "player:zetony")
setElementData(p, "player:srp", rp+20)
setElementData(p, "player:zetony", zeton+1)
triggerClientEvent(p,"[GOLD] Otrzymujesz 400,000$ oraz 20 RP za przegranie 30 minut oraz 1 zeton",3,"success")
outputChatBox(&...
local img = {} -- Wszystkie tekstury
for i,v in pairs(textures) do
img[i] = dxCreateTexture(v, "argb", false, "clamp")
end
function isEventHandlerAdded( sEventName, pElementAttachedTo, func )
local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo )
if #aAttachedFunctions > 0 then
for i, v in ipairs( aAttache...
Witam pisz? znowu wiem ?e was ju? wkurzam ale prosz? o pomoc mianowicie chodzi mi o co? takiego
[G]-Gracz
[A]-Admin
Czat
[G] wpisuje komend? /me robi co?
a u Admina na czacie wyskakuje komunikat
[A] Gracz %s u?y? komendy /me robi co?
i jeszcze jedno pytanko bo chce zrobi? tak? komende dla policji i wojska permisje sobie sam ustawie ale chodzi mi o takie cos /scigany [Id gracza] [Ilo?? dania gwiazdek max.6] ? Za pomoc daje piwko
siemka, mam problem, mam pot??nego vps-a jak na sampa(2Ghz, 2GB Ram, 100Mb/s chocia? idzie nawet 110mb/s) i wgra?em sampa wszystko pasi, wgra?em map? i edytowa?em config pod map? w??czam a tutaj czysta mapa, gdy to robi? na testowym servhost.pl to mapa jest ok(czysta Polskie Party 3.0 albo przerobiona )
Mam pewien problem wgra?em na serwer ro?ne skrypty i nie dzia?aj? albo nie ma takiej komendy albo nie wida? obiekt?w co mo?ne by? nie tak? Prosz? o pomoc.