Witam , chcia?bym by na moim serwerze administracja mia?a funkcj? niewidzialno?ci . Widzia?em to na jednym z serwer?w lecz ja nie jestem w stanie napisa? takiego skryptu .
Prosz? o pomoc z g?ry dzi?kuj? za pomoc .
No tak banalne , ?e te? ja na to nie wpad?em . Jeszcze podpi?? pod ACL administracji i supportu i gotowe . Dzi?ki , drobnostka ale leci piwo do Ciebie .
Dzia?a mi wszystko , a powy?szy kod napisa?em tak na szybko .
Doda?em do tego komend? na wy??czenie funkcji niewidzialno?ci i podpi??em pod ACL . Ja nie z tych co trzeba im wszystko gotowe napisa? .
function toggleInvis ( thePlayer )
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)),
aclGetGroup("Admin")) then
if getElementAlpha( thePlayer ) == 255 then
setElementAlpha ( thePlayer, 0 )
else
setElementAlpha ( thePlayer, 0 )
end
end
end
addCommandHandler ( "invison", toggleInvis )
function toggleInviss ( thePlayer )
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)),
aclGetGroup("Admin")) then
if getElementAlpha( thePlayer ) == 255 then
setElementAlpha ( thePlayer, 0 )
else
setElementAlpha ( thePlayer, 255 )
end
end
end
addCommandHandler ( "invisoff", toggleInviss )
A to dla tych kt?rzy mo?e b?d? szukali takiego skryptu .
Mi dzia?a on w 100% .
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