Wysłany: 2017-02-03, 16:41
mis14
Wiek: 25 Na forum: 3924 dni Posty: 185
Piwa : 73
witam nie wiem jak zrobi? unban bez potrzeby logowania si? do acl
addCommandHandler ( "unban" , function( plr , cmd , cel )
if getAdmin ( plr , 4 ) or getAdmin ( plr , 3 ) then
if not cel then
outputChatBox ( "* U?ycie: /unban <serial>" , plr )
return
end
if string . len ( cel ) ~= 32 then return outputChatBox ( "* B??dny serial " , plr ) end
local query = string . format ( "SELECT * FROM ogrpg_ban WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1" , "ban" , cel )
local result = exports [ "ogrpg-db" ]: pobierzWyniki ( query )
if ( result ) then
exports [ "ogrpg-db" ]: dbSet ( "DELETE FROM ogrpg_ban WHERE type=? AND active=1 AND serial=?" , "ban" , cel )
outputChatBox ( "* Usunieto bana o serialu (" .. cel .. ")!" , plr , 0 , 255 , 0 )
else
outputChatBox ( "* Nie wykryto bana o serialu (" .. cel .. ")!" , plr , 0 , 255 , 0 )
end
end
end )
Wysłany: 2017-02-03, 18:22
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
mis14 ,
if getAdmin ( plr , 4 ) or getAdmin ( plr , 3 ) then
Usuwaj?c ten if b?dziesz m?g? odbanowywya? bez acl ale wtedy ka?dy b?dzie m?g? wpisa? t? komend?
Podpis
"amited" napisał/a :
Wysłany: 2017-02-04, 00:15
mis14
Wiek: 25 Na forum: 3924 dni Posty: 185
Piwa : 73
po usuni?ciu if nie dzia?a komenda unban
Wysłany: 2017-02-04, 00:26
amited
Wiek: 26 Na forum: 3714 dni Posty: 1233
Nick w MP: Amited
Piwa : 512
mis14 , a usun??e? enda? pewnie nie... a je?eli tak to podaj db3
Podpis
"amited" napisał/a :
Wysłany: 2017-02-04, 10:06
mis14
Wiek: 25 Na forum: 3924 dni Posty: 185
Piwa : 73
"amited" napisał/a :mis14 , a usun??e? enda? pewnie nie... a je?eli tak to podaj db3
kt?rego enda
Wysłany: 2017-02-04, 15:47
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
mis14 , Burego, addCommandHandler ( "unban" , function( plr , cmd , cel )
if not cel then
outputChatBox ( "* U?ycie: /unban <serial>" , plr )
return
end
if string . len ( cel ) ~= 32 then return outputChatBox ( "* B??dny serial " , plr ) end
local query = string . format ( "SELECT * FROM ogrpg_ban WHERE type=%q AND active=1 AND serial=%q AND time>NOW() LIMIT 1" , "ban" , cel )
local result = exports [ "ogrpg-db" ]: pobierzWyniki ( query )
if ( result ) then
exports [ "ogrpg-db" ]: dbSet ( "DELETE FROM ogrpg_ban WHERE type=? AND active=1 AND serial=?" , "ban" , cel )
outputChatBox ( "* Usunieto bana o serialu (" .. cel .. ")!" , plr , 0 , 255 , 0 )
else
outputChatBox ( "* Nie wykryto bana o serialu (" .. cel .. ")!" , plr , 0 , 255 , 0 )
end
end )
Wysłany: 2017-02-04, 18:55
mis14
Wiek: 25 Na forum: 3924 dni Posty: 185
Piwa : 73
bez if getAdmin ( plr , 4 ) or getAdmin ( plr , 3 ) then
Wysłany: 2017-02-04, 19:46
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
mis14 , No chyba widzisz, ?e tego nie ma?
Tagi: unban
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: