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: 4924 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1799

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: 4517 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: 4924 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1799

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: 33
Na forum: 4536 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

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.concat( pmWords, " " )
    if sendToName then
        if (getPlayerFromParticalName (sendToName)) then
        toPlayer = (getPlayerFromParticalName (sendToName))
        if getElementData ( toPlayer, "tp" ) then
            x,y,z = getElementPosition ( toPlayer )
            setElementPosition ( thePlayer, x, y+1, z )
        end
            if not (toPlayer == thePlayer) then
                if not (pmMessage == "") then
                outputChatBox("#0044FF[PM]#FFFFFF Wiadomo?? do #FFFFFF" .. getPlayerName(toPlayer) .. "#FFFFFF: " .. pmMessage, thePlayer, 255, 255, 255, true)
                outputChatBox("#0044FF[PM]#FFFFFF Wiadomo?? od #FFFFFF" .. getPlayerName(thePlayer) .. "#FFFFFF: " .. pmMessage, toPlayer, 255, 255, 255, true)
                else
                    outputChatBox("#0044FF[PM]#FFFFFF Invalid syntax! Usage:#FFFFFF /pm [partical player name] [message]", thePlayer, 255, 255, 255, true)
                    return false
                end
            else
            outputChatBox("#0044FF[PM]#FFFFFF Nie mozesz napisa? do siebie#FFFFFF!", thePlayer, 255, 255, 255, true)
                return false
            end
        else
            outputChatBox("#0044FF[PM]#FFFFFF Gracz o podanym nicku nie istnieje, lub jest offline #FFFF00(#FFFFFF"..sendToName.."#FFFF00)", thePlayer, 255, 255, 255, true)
            return false
        end
    else
        outputChatBox("#0044FF[PM]#FFFFFF Invalid syntax! Usage:#FFFFFF /pm [partical player name] [message]", thePlayer, 255, 255, 255, true)
        return false
    end
end
addCommandHandler("pm", privateMessage)


addCommandHandler ( "zezwol", function ( plr )
    konto = getAccountName ( getPlayerAccount ( plr ) )
    if not isObjectInACLGroup ( "user."..konto, aclGetGroup ( "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(), 1, true) then
            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: 4517 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