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

Wysłany: 2013-07-28, 18:35


xHardus







Wiek: 27
Na forum: 4786 dni
Posty: 90
Nick w MP: Harduś

Piwa: 786

Respekt: 15,3

GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Edit = {}

okno guiCreateWindow(0.2194,0.2422,0.1344,0.3222,"Zmie? has?o",true)
guiSetVisible oknofalse )
has guiCreateEdit(28,75,162,25,"",false,okno)
guiEditSetMasked(has,true)
GUIEditor_Label[1] = guiCreateLabel(30,41,158,22,"Oto nowe has?o :",false,okno)
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true)
ok guiCreateButton(59,133,105,40,"Set",false,okno)
ok guiCreateButton(59,133,105,40,"Zamknij",false,okno)


function premiumchat(playercmdpremiummessage)
       if premiumchat then
               for kplayers in ipairs(getElementsByType("Premium")) do
                      outputChatBox("<Premium>" .. table.concat({cbmessage}, " "), players2552550)
               end
       end
end
addCommandHandler("premiumchat"premiumchat)

W tym 2 skrypcie jak zrobic zeby tylko grupa premium widzia?a?

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 3 piw(a):
Mezo., psychol., Takoot21
Wysłany: 2013-07-28, 20:17


vipSEBOvip

A poor begginer






Wiek: 26
Na forum: 5178 dni
Posty: 597
Nick w MP: xSebaPL

Piwa: 77

Respekt: 140
Respekt: 140

"rafox12345" napisał/a:


function premiumchat(playercmdpremiummessage)
       if premiumchat then
               for kplayers in ipairs(getElementsByType("Premium")) do
                      outputChatBox("<Premium>" .. table.concat({cbmessage}, " "), players2552550)
               end
       end
end
addCommandHandler("premiumchat"premiumchat)

W tym 2 skrypcie jak zrobic zeby tylko grupa premium widzia?a?


Widz?, ?e korzystasz z mojego skryptu na cbradio z tematu @down(tak samo napisane i cbmessage z outputChatBox ;p ). Powiem tak, nie ma takiego elementu jak premium ;p .

O to kod:
function premiumchat(playercmdpremiummessage)
       if premiumchat then
               for kplayers in ipairs(getElementsByType("player")) do
                      if (Sprawdzasz czy "players" jest w Premium(pisztak bo nie wiem czy cz?onkostwo premium jest w mysqlsqlacl czy w accountDatathen
                             outputChatBox("<Premium>" .. table.concat({premiummessage}, " "), players2552550)
                      end
               end
       end
end
addCommandHandler("premiumchat"premiumchat)
[/lua]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-07-28, 20:24


xHardus







Wiek: 27
Na forum: 4786 dni
Posty: 90
Nick w MP: Harduś

Piwa: 786

Respekt: 15,3


function premiumchat(playercmdpremiummessage)
       if premiumchat then
               for kplayers in ipairs(getElementsByType("player")) do
                      if players acl then
                             outputChatBox("<Premium>" .. table.concat({premiummessage}, " "), players2552550)
                      end
               end
       end
end
addCommandHandler("premiumchat"premiumchat)


Czyli tak bedzie dobrze?

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 3 piw(a):
Mezo., psychol., Takoot21
Wysłany: 2013-07-28, 20:40


vipSEBOvip

A poor begginer






Wiek: 26
Na forum: 5178 dni
Posty: 597
Nick w MP: xSebaPL

Piwa: 77

Respekt: 140
Respekt: 140

Masz acl Premium ? Jak tak, to zr?b tak:
function premiumchat(playercmdpremiummessage)
       if premiumchat then
               for kplayers in ipairs(getElementsByType("player")) do
                      if (isObjectInACLGroup(getAccountName(getPlayerAccount(players)), getACLGroup("Premium"))) then
                             outputChatBox("<Premium>" .. table.concat({premiummessage}, " "), players2552550)
                      end
               end
       end
end
addCommandHandler("premiumchat"premiumchat)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-07-28, 22:18


xHardus







Wiek: 27
Na forum: 4786 dni
Posty: 90
Nick w MP: Harduś

Piwa: 786

Respekt: 15,3

bys mi jeszcze ten skrypt ogarn? zeby bylo widac calosc a nie tylko po?owe??

addEventHandler("onPlayerQuit"getRootElement(), function(quitTypereasonbywho)
    if quitType == "Kicked" or quitType == "Kicked" then
        if reason ~= false then
            outputChatBox("#FF0000Gracz "..getPlayerName(source).." #FF0000zosta? ".. (quitType == "#FF0000Wykopany" and "#FF0000Wykopany" or "#FF0000Wykopany").." #FF0000przez Admina/Moda "..(type(bywho) == "string" and "konsole" or getPlayerName(bywho)), getRootElement(), 255255255true)
            outputChatBox("#FF0000Pow?d: "..tostring(reason), getRootElement(), 255255255true)
        else
            outputChatBox("#FF0000Gracz "..getPlayerName(source).." #FF0000zosta? ".. (quitType == "#FF0000Wykopany" and "#FF0000Wykopany" or "#FF0000Wykopany").." #FF0000przez Admina/Moda "..(type(bywho) == "string" and "konsole" or getPlayerName(bywho)), getRootElement(), 255255255true)    
        end
    end
end)


Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 3 piw(a):
Mezo., psychol., Takoot21
Tagi: takiego :: zle?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Co takiego zle? 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