Wysłany: 2016-10-29, 10:10
kaMMi
Wiek: 25 Na forum: 3642 dni Posty: 134
Piwa : 294
Witam, wyt?umaczy mi kto? jak naprawi? b??d z rangami? Poniewa? ka?dy gracz mo?e u?ywa? ka?dej komendy. Nie mam pomys?u jak to naprawi?... ;/
Wysłany: 2016-10-29, 11:17
_Wicek_
Majstersztyk
Wiek: 25 Na forum: 4260 dni Posty: 747
Nick w MP: Wicek
Piwa : 1841
Podpis
Support-Team: 25.01.2016
Moderator: 10.07.2016
GG: 51274621
Skype : kuba_wicinski
Wysłany: 2016-10-29, 12:07
kaMMi
Wiek: 25 Na forum: 3642 dni Posty: 134
Piwa : 294
Kod: addCommandHandler('e', function(plr,cmd,...)
if getAdmin(plr,1) or getAdmin(plr,2) or getAdmin(plr,3) or getAdmin(plr,4) then
if not ... then
local x = getElementData(plr,"player:ekipaoff")
if x == false then
outputChatBox("Wy??czy?e? czat ekipy",plr, 255, 255, 0, true)
setElementData(plr,"player:ekipaoff",true)
end
if x == true then
outputChatBox("W??czy?e? czat ekipy",plr, 255, 255, 0, true)
setElementData(plr,"player:ekipaoff",false)
end
return end
if ... then
if getElementData(plr,"player:ekipaoff") == true then outputChatBox("Posiadasz wy??czone wiadomo?ci tego czatu, nie mo?esz na nim pisa?!", plr, 255, 255, 255) return end
local msg=table.concat({...}, " ")
ranga = nil
local rank = getVisualRank(plr)
if rank then
ranga = rank
else
ranga = rangi[tonumber(getLevel(plr))]
end
for _, p in pairs(getElementsByType('player')) do
if getAdmin(p,1) or getAdmin(p,2) or getAdmin(p,3) or getAdmin(p,4) and not getElementData(p,"player:ekipaoff") then
outputChatBox("[Czat ekipy]"..getPlayerName(plr).." ("..tonumber(getElementData(plr,"id"))..")".."|"..ranga..": #ffffff"..msg,p,60,172,120,true)
end
end
end
end
end)
Wysłany: 2016-10-29, 20:38
_Wicek_
Majstersztyk
Wiek: 25 Na forum: 4260 dni Posty: 747
Nick w MP: Wicek
Piwa : 1841
kaMMi , hmm
I co teraz ?
Podpis
Support-Team: 25.01.2016
Moderator: 10.07.2016
GG: 51274621
Skype : kuba_wicinski
Wysłany: 2016-10-29, 21:06
kaMMi
Wiek: 25 Na forum: 3642 dni Posty: 134
Piwa : 294
No popatrz mam tutaj przyk?adow? komend?... I usuwa?em ju? plr to wtedy nie dzia?a? skrypt wiele sposob?w szuka?em i nie uda?o mi si? dlatego pisz? tutaj.
Tagi: pozwolenia :: rangach
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: