Wysłany: 2018-10-09, 16:07
AkossPL
Wiek: 25 Na forum: 4079 dni Posty: 140
Nick w MP: AkossPL
Piwa : 3
Siema wpisuje org i nic si? nie dzieje za pom?c postawie piwo
addCommandHandler ( "org" ,function ( plr , cmd ,...)
local uid = getElementData ( plr , "player:uid" )
if not uid then return end
local code = getElementData ( plr , "player:organization" )
if not code then return end
local result = exports [ "ogrpg-db" ]: dbGet ( "SELECT * FROM ogrpg_organizations WHERE code=? AND uid=? LIMIT 1;" , code , uid ) -- pobieramy tylko JEDEN rekord
if result and #result > 0 then
if result [ 1 ]. rank <= 2 then outputChatBox ( "*Brak uprawnien do panelu organizacji" , plr ) return end
local resulted = exports [ "ogrpg-db" ]: dbGet ( "SELECT * FROM ogrpg_organizations WHERE code=?" , code )
triggerClientEvent ( plr , "lidero:showGUI" , resourceRoot , code , resulted )
end
end )
Wysłany: 2018-10-09, 16:29
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
local uid = getElementData ( plr , "player:uid" )
if not uid then return end
local code = getElementData ( plr , "player:organization" )
if not code then return end
pewnie si? nie masz takich elementdat
Tagi: nie :: działa :: komenda
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: