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: admina!
1. Skrypt tylko dla admina!
Witam, chcia?bym aby poni?szy skrypt sprawdza? czy dany gracz jest w grupie acl np. "Admin"


Kod:

addCommandHandler
("sp", function(graczcmdauto)
    
local model getVehicleModelFromName(auto)
    
local xygetElementPosition(gracz)
    
local rxryrz getElementRotation(gracz)
    
local dimension getElementDimension(gracz)
    
local interior getElementInterior(gracz)
    if 
not model then
        outputChatBox
("Wpisz: /sp <model pojazdu> Przyk?ad: /sp bullet"gracz255255255true)
    else
        
local pojazd createVehicle(modelxyzrxryrz)
        
setElementDimension(pojazddimension)
        
setElementInterior(pojazdinterior)
        
setElementData(pojazd"KtoZrespilAuto"getPlayerName(gracz))
        
setVehiclePlateText(pojazd"EasyLifeRPG")
        
warpPedIntoVehicle(graczpojazd)
    
end
end
)

addCommandHandler("spu", function(gracz)
    for 
iv in ipairs(getElementsByType("vehicle")) do
        if 
getElementData(v"KtoZrespilAuto") == getPlayerName(graczthen
            destroyElement
(v)
        
end
    end
end
)