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

Wysłany: 2014-07-28, 15:44


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4783 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

Maci?g, teraz jak admin wpisze /startevent to ka?dy kto wpisze /pm event tp lub /pm event event to go teleportuje
komend? /startevent tak?e wy??cza si? event na serverze

Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-28, 15:44


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Nie rozumiem, czyli co ja mam wpisa? ?eby dzia?a?o?

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-28, 15:56


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4783 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

Jako admin wpisujesz /startevent i tyle, jak gracz chce si? do cb teleportowa? to wpisuje /pm event tp albo /pm event event

Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-28, 16:03


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Prosz? inna wersja ?atwiejsza :

Wpisujesz /zezwol i gracz do cb piszacy tepnie sie do cb.


function privateMessage(thePlayer,commandName,sendToName,...)
    local pmWords = { ... }
    local pmMessage table.concatpmWords" " )
    if sendToName then
        if (getPlayerFromParticalName (sendToName)) then
        toPlayer = (getPlayerFromParticalName (sendToName))
        if getElementData toPlayer"tp" then
            x,y,getElementPosition toPlayer )
            setElementPosition thePlayerxy+1)
        end
            if not (toPlayer == thePlayerthen
                if not (pmMessage == ""then
                outputChatBox("#0044FF[PM]#FFFFFF Wiadomo?? do #FFFFFF" .. getPlayerName(toPlayer) .. "#FFFFFF: " .. pmMessagethePlayer255255255true)
                outputChatBox("#0044FF[PM]#FFFFFF Wiadomo?? od #FFFFFF" .. getPlayerName(thePlayer) .. "#FFFFFF: " .. pmMessagetoPlayer255255255true)
                else
                    outputChatBox("#0044FF[PM]#FFFFFF Invalid syntax! Usage:#FFFFFF /pm [partical player name] [message]"thePlayer255255255true)
                    return false
                end
            else
            outputChatBox("#0044FF[PM]#FFFFFF Nie mozesz napisa? do siebie#FFFFFF!"thePlayer255255255true)
                return false
            end
        else
            outputChatBox("#0044FF[PM]#FFFFFF Gracz o podanym nicku nie istnieje, lub jest offline #FFFF00(#FFFFFF"..sendToName.."#FFFF00)"thePlayer255255255true)
            return false
        end
    else
        outputChatBox("#0044FF[PM]#FFFFFF Invalid syntax! Usage:#FFFFFF /pm [partical player name] [message]"thePlayer255255255true)
        return false
    end
end
addCommandHandler("pm"privateMessage)


addCommandHandler "zezwol", function ( plr )
    konto getAccountName getPlayerAccount plr ) )
    if not isObjectInACLGroup "user."..kontoaclGetGroup "Admin" ) ) then return end
    if getElementData plr"tp" then
        setElementData plr"tp"false )
    else
        setElementData plr"tp"true )
    end
end)


function getPlayerFromParticalName(thePlayerName)
    local thePlayer getPlayerFromName(thePlayerName)
    if thePlayer then
        return thePlayer
    end
    for _,thePlayer in ipairs(getElementsByType("player")) do
        if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x"""), thePlayerName:lower(), 1truethen
            return thePlayer
        end
    end
return false
end


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-28, 16:22


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Dzi?kuj? Maszyna o to chodzi?o, jednak obaj dostajecie obiecane piwa za pomoc !!

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Tagi: teleport
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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