Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-09-03, 16:17


Citrus







Wiek: 25
Na forum: 3671 dni
Posty: 34
Nick w MP: Citrus

Piwa: 4

Respekt: 47,3

Kod:

addEventHandler("onPlayerLogin",root,function()
setElementData(source,"CB",0)
bindKey(source,"U","down","chatbox","CB")
end)




addCommandHandler("cb.kanal",function(plr,cmd,id)
if id then
if type(tonumber(id))=="number" then
if tonumber(id)>0 then
setElementData(plr,"CB",id)
for _,v in ipairs(getElementsByType("player"))do
if getElementData(plr,"CB")==id then
outputChatBox("*Gracz "..getPlayerName(plr).." wszed? na #"..id.." kana? CB",v,255,255,255)
end
end
end
end
end
end)




addCommandHandler("CB",function(plr,cmd,...)
if ... then
local msg=table.concat({...}," ")
for _,v in ipairs(getElementsByType("player"))do
if getElementData(v,"CB")==getElementData(plr,"CB") then
outputChatBox("[CB : "..getElementData(plr,"CB").."] "..getPlayerName(plr).." > "..msg,v,255,255,255)
end
end
end
end)


Wszystko by?o dobrze wrzuci?em do FTP na serwerze refresh all i pisa?o ?e za?adowa?o nowy skrypt. Wpisa?em /start CB i normalnie napisa?o: start: Resource 'CB' started ale dalej nie mo?na pisa? na CB.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-03, 16:25


_Wicek_

Majstersztyk






Wiek: 25
Na forum: 4260 dni
Posty: 747
Nick w MP: Wicek

Piwa: 1841

Respekt: 360,5
Respekt: 360,5Respekt: 360,5Respekt: 360,5Respekt: 360,5

Ostrzeżeń: 40%
Wyjdz i wejdz na serwer bo uzywasz eventu "onPlayerJoin"

Podpis

Support-Team: 25.01.2016
Moderator: 10.07.2016




GG: 51274621
Skype : kuba_wicinski
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-03, 16:40


Citrus







Wiek: 25
Na forum: 3671 dni
Posty: 34
Nick w MP: Citrus

Piwa: 4

Respekt: 47,3

Nic nie pomog?o ;/

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-10, 10:27


MIKAELmta







Wiek: 24
Na forum: 3978 dni
Posty: 311

Piwa: 10617

Respekt: 355,3
Respekt: 355,3Respekt: 355,3Respekt: 355,3Respekt: 355,3

Spr?buj za pomoc? komendy "/CB" co? napisa?. Je?li nie zadzia?a to b??d jest w bindowaniu.

Wtedy:
addCommandHandler("cb.kanal",function(plr,cmd,id) 
if id then 
if type(tonumber(id))=="number" then 
if tonumber(id)>0 then 
setElementData(plr,"CB",id) 
for _,v in ipairs(getElementsByType("player"))do 
if getElementData(plr,"CB")==id then 
outputChatBox("*Gracz "..getPlayerName(plr).." wszed? na #"..id.." kana? CB",v,255,255,255end 
end 
end 
end 
end 
endaddCommandHandler("CB",function(plr,cmd,...) 
if ... then 
local msg=table.concat({...}," ") 
for _,v in ipairs(getElementsByType("player"))do 
if getElementData(v,"CB")==getElementData(plr,"CB"then 
outputChatBox("[CB : "..getElementData(plr,"CB").."] "..getPlayerName(plr).." > "..msg,v,255,255,255end 
end 
end 
endaddEventHandler("onPlayerLogin",root,function() 
setElementData(source,"CB",0bindKey(source,"U","down","chatbox","CB"end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-09-12, 16:08


eject

kurdebele






Wiek: 30
Na forum: 3659 dni
Posty: 182
Nick w MP: EjecT

Piwa: 2456

Respekt: 85,8

Ostrzeżeń: 60%
addEventHandler("onPlayerJoin",root,function() 
setElementData(source,"CB",0bindKey(source,"U","down","chatbox CB"end


Postaw piwo autorowi tego posta
 

 
Tagi: cbradio
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku