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: przyjmowanie
1. przyjmowanie rapsa
mam problem poniewaz mozna przyjmowania rapsa jak nie ma rapsa i sie nalicza
[code]addCommandHandler("pr", function(plr,cmd,id,...)
if not getAdmin(plr) then
return
end

local reason = table.concat({...}, " ")

if not id then return outputChatBox("ⓘ#ffffff /pr <id> <odpowied?>", plr, 255, 0, 0, true) end
if not reason then return outputChatBox("ⓘ#ffffff /pr <id> <odpowied?>", plr, 255, 0, 0, true) end

local target=exports["pystories-core"]:findPlayer(plr,id)

opis = "U?ytkownik offline"
if target then
id = getElementData(target,"id")
opis = getPlayerName(target)
if target ~= plr and not getAdmin(target) then
end
end

if opis == "U?ytkownik offline" then outputChatBox("ⓘ#ffffff Nie ma takiego gracza", plr, 255, 0, 0, true) return end

if target == plr then
outputChatBox("ⓘ#ffffff Nie mo?esz przyj?? swojego zg?oszenia", plr, 255, 0, 0, true)
return end



if reason == "" or reason == " " then
reason = "#C00004Brak#ffffff"
end

for i,v in ipairs(getElementsByType("player")) do
if getElementData(v,"player:admin") then
triggerEvent("admin:removeReport", resourceRoot, id)
local raporcik = getElementData(plr, "admin:reporty") or 0
outputChatBox("ⓘ#ffffff "..getPlayerName(...
2. przyjmowanie
hejo, da sie co? zrobic, zeby przyjmowac gracza po nicku? np. /gangprzyjmij testowy nick. dzieki

function przyjmowanie5(thePlayer)
local accName getAccountName getPlayerAccount thePlayer ) )
    if 
isObjectInACLGroup ("user."..accNameaclGetGroup "Lidergang5" ) )
        or 
isObjectInACLGroup ("user."..accNameaclGetGroup "ViceLidergang5" ) ) then
    local ap_gang5 
=  getElementData(thePlayer"gang5")
    if 
ap_gang5 then
    setPlayerTeam
(thePlayergang5)
    
setAccountData(thePlayer"jestemwgang5"true)
else
    
        
end
    end
end
addCommandHandler
("gangprzyjmij_gang5"przyjmowanie5)