Wysłany: 2014-07-28, 15:44
krydianero
Samotny Wilk
Wiek: 33 Na forum: 4783 dni Posty: 395
Nick w MP: Yoshida
Piwa : 1798
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
Wysłany: 2014-07-28, 15:44
Maciąg
Wiek: 26 Na forum: 4376 dni Posty: 211
Nick w MP: Dawirzo
Piwa : 149
Nie rozumiem, czyli co ja mam wpisa? ?eby dzia?a?o?
Podpis
Status prac nad Time to play RPG 25%
Wysłany: 2014-07-28, 15:56
krydianero
Samotny Wilk
Wiek: 33 Na forum: 4783 dni Posty: 395
Nick w MP: Yoshida
Piwa : 1798
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
Wysłany: 2014-07-28, 16:03
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
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
Wysłany: 2014-07-28, 16:22
Maciąg
Wiek: 26 Na forum: 4376 dni Posty: 211
Nick w MP: Dawirzo
Piwa : 149
Dzi?kuj? Maszyna o to chodzi?o, jednak obaj dostajecie obiecane piwa za pomoc
Podpis
Status prac nad Time to play RPG 25%
Tagi: teleport
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: