Wysłany: 2014-01-18, 14:02
ToJaMixxer
Mapper MTA, .lua
Wiek: 26 Na forum: 4520 dni Posty: 44
Nick w MP: Mixxer
Piwa : 62
Witam. Nie wiem czy umieszczam temat w dobrym dziale,je?eli w z?ym prosz? o przeniesienie. Jestem nowy. Zg?aszam si? do was z pro?b? o pomoc. Chc? aby policja, pogo itp mieli dost?p do panelu admin ale mieli dost?pne tylko wybrane funkcje. Oto ACL dla tych team?w
Kod: <acl name="Policja">
<right name="general.adminpanel" access="true"></right>
<right name="general.tab_players" access="false"></right>
<right name="general.tab_resources" access="false"></right>
<right name="general.tab_maps" access="false"></right>
<right name="general.tab_server" access="false"></right>
<right name="general.tab_bans" access="false"></right>
<right name="general.tab_adminchat" access="false"></right>
<right name="command.kick" access="true"></right>
<right name="command.freeze" access="true"></right>
<right name="command.mute" access="true"></right>
<right name="command.setnick" access="false"></right>
<right name="command.shout" access="false"></right>
<right name="command.spectate" access="true"></right>
<right name="command.slap" access="true"></right>
<right name="command.setgroup" access="false"></right>
<right name="command.sethealth" access="true"></right>
<right name="command.setarmour" access="true"></right>
<right name="command.setmoney" access="false"></right>
<right name="command.setskin" access="true"></right>
<right name="command.setteam" access="false"></right>
<right name="command.giveweapon" access="true"></right>
<right name="command.setstat" access="false"></right>
<right name="command.jetpack" access="false"></right>
<right name="command.warp" access="true"></right>
<right name="command.setdimension" access="false"></right>
<right name="command.setinterior" access="false"></right>
<right name="command.givevehicle" access="false"></right>
<right name="command.repair" access="true"></right>
<right name="command.blow" access="false"></right>
<right name="command.destroy" access="true"></right>
<right name="command.customize" access="false"></right>
<right name="command.setcolor" access="false"></right>
<right name="command.setpaintjob" access="false"></right>
<right name="command.listmessages" access="false"></right>
<right name="command.readmessage" access="false"></right>
<right name="command.listresources" access="false"></right>
<right name="command.start" access="false"></right>
<right name="command.stop" access="false"></right>
<right name="command.stopall" access="false"></right>
<right name="command.restart" access="false"></right>
<right name="command.execute" access="false"></right>
<right name="command.setpassword" access="false"></right>
<right name="command.setwelcome" access="false"></right>
<right name="command.setgame" access="false"></right>
<right name="command.setmap" access="false"></right>
<right name="command.setweather" access="false"></right>
<right name="command.blendweather" access="false"></right>
<right name="command.setblurlevel" access="false"></right>
<right name="command.setwaveheight" access="false"></right>
<right name="command.setskygradient" access="false"></right>
<right name="command.setgamespeed" access="false"></right>
<right name="command.setgravity" access="false"></right>
<right name="command.settime" access="false"></right>
<right name="command.ban" access="false"></right>
<right name="command.unban" access="false"></right>
<right name="command.banip" access="false"></right>
<right name="command.unbanip" access="false"></right>
<right name="command.banserial" access="false"></right>
<right name="command.unbanserial" access="false"></right>
<right name="command.listbans" access="false"></right>
<right name="command.oppol" access="true"></right>
<right name="command.clpol" access="true"></right>
<right name="command.sound" access="true"></right>
<right name="command.jail" access="true"></right>
<right name="command.vgod" access="true"></right>
</acl>
[/code]
[ Dodano : 2014-01-18, 14:03 ]
Natomiast teamy:
Kod: A o to teamy:
[code]
function Chat(message, msgtype)
local Gracz = getPlayerName(source)
if (msgtype == 0) then
cancelEvent()
end
end
addEventHandler("onPlayerChat", root, Chat)
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart)
Drifterzy = createTeam ( "Drifterzy", 255, 100, 0 )
Policja = createTeam ( "Policja", 255, 0, 0 )
Pogotowie = createTeam ( "Pogotowie", 0, 255, 0 )
PomocDrogowa = createTeam ( "PomocDrogowa", 200, 30, 230 )
Taxi = createTeam ( "Taxi", 255, 255, 0 )
poli = createTeam ( "Policja", 0, 0, 255 )
function poli1 ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Policja" ) ) then
setPlayerTeam ( thePlayer, poli )
giveWeapon ( thePlayer, 12, 10000 )
setPedArmor ( thePlayer, 100 )
setElementModel ( thePlayer, 281 )
setElementPosition ( thePlayer, -1570, 662, 8 )
setPlayerNametagColor ( thePlayer, 0, 0, 255 )
else
outputChatBox( "Nie jestes pracownikiem Policji.", getRootElement())
end
end
function Pogotowie ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Pogotowie" ) ) then
setPlayerTeam ( thePlayer, Pogotowie )
giveWeapon ( thePlayer, 12, 10000 )
setElementModel ( thePlayer, 70 )
setElementPosition ( thePlayer, -2567, 617, 15 )
else
outputChatBox( "Nie jestes pracownikiem Pogotowia", thePlayer, 20, 220, 220, false)
end
end
function PomocDrogowa ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Pomoc Drogowa" ) ) then
setPlayerTeam ( thePlayer, PomocDrogowa )
giveWeapon ( thePlayer, 12, 10000 )
setElementModel ( thePlayer, 50 )
setElementPosition ( thePlayer, -1535, 494, 8)
else
outputChatBox( "Nie jestes pracownikiem PomocyDrogowej", thePlayer, 200, 30, 230, false)
end
end
function Taxi ( thePlayer )
local playerName = getAccountName ( getPlayerAccount ( thePlayer ) )
if isObjectInACLGroup ( "user." .. playerName, aclGetGroup ( "Taxi" ) ) then
setPlayerTeam ( thePlayer, Taxi )
giveWeapon ( thePlayer, 12, 10000 )
setElementModel ( thePlayer, 50 )
setElementPosition ( thePlayer, -2215, -79, 36 )
else
outputChatBox( "Nie jestes pracownikiem Taxi", thePlayer, 200, 30, 230, false)
end
end[/code]
Ewentualnie poprosi?bym o to ?eby mi kto? jeszcze pom?g? i podpowiedzia? co trzeba zrobi? aby gracze tu? po rejestracji otrzymywali team Drifterzy.
Wysłany: 2014-01-18, 16:04
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
ToJaMixxer , nie ten dzia? i nierozumiem ciebie w nawet 1% opisz co cchesz robi? to nic nie napisa?e? co w acl a co w teamach.
Wysłany: 2014-01-18, 16:15
ToJaMixxer
Mapper MTA, .lua
Wiek: 26 Na forum: 4520 dni Posty: 44
Nick w MP: Mixxer
Piwa : 62
Chodzi mi o to aby policja mia?a dost?p w panelu admina do kick, mute, slap warp, dawanie broni... O to mi chodzi
Wysłany: 2014-01-18, 18:18
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
ToJaMixxer , napisz do jakich funkcji i o co z tym team
[ Dodano : 2014-01-18, 18:23 ]
< acl name = "Policja" >
< right name = "general.ModifyOtherObjects" access = "false" ></ right >
< right name = "general.http" access = "false" ></ right >
< right name = "command.start" access = "false" ></ right >
< right name = "command.stop" access = "false" ></ right >
< right name = "command.stopall" access = "false" ></ right >
< right name = "command.gamemode" access = "false" ></ right >
< right name = "command.changemode" access = "false" ></ right >
< right name = "command.changemap" access = "false" ></ right >
< right name = "command.stopmode" access = "false" ></ right >
< right name = "command.stopmap" access = "false" ></ right >
< right name = "command.skipmap" access = "false" ></ right >
< right name = "command.restart" access = "false" ></ right >
< right name = "command.refresh" access = "false" ></ right >
< right name = "command.refreshall" access = "false" ></ right >
< right name = "command.addaccount" access = "false" ></ right >
< right name = "command.delaccount" access = "false" ></ right >
< right name = "command.debugscript" access = "false" ></ right >
< right name = "command.chgpass" access = "false" ></ right >
< right name = "command.loadmodule" access = "false" ></ right >
< right name = "command.upgrade" access = "false" ></ right >
< right name = "command.mute" access = "true" ></ right >
< right name = "command.crun" access = "false" ></ right >
< right name = "command.srun" access = "false" ></ right >
< right name = "command.run" access = "false" ></ right >
< right name = "command.unmute" access = "false" ></ right >
< right name = "command.kick" access = "true" ></ right >
< right name = "command.ban" access = "false" ></ right >
< right name = "command.banip" access = "false" ></ right >
< right name = "command.unbanip" access = "false" ></ right >
< right name = "command.reloadbans" access = "false" ></ right >
< right name = "command.shutdown" access = "false" ></ right >
< right name = "command.install" access = "false" ></ right >
< right name = "command.aexec" access = "false" ></ right >
< right name = "command.whois" access = "false" ></ right >
< right name = "command.whowas" access = "false" ></ right >
< right name = "function.executeCommandHandler" access = "false" ></ right >
< right name = "function.setPlayerMuted" access = "false" ></ right >
< right name = "function.addAccount" access = "false" ></ right >
< right name = "function.addBan" access = "false" ></ right >
< right name = "function.removeBan" access = "false" ></ right >
< right name = "function.removeAccount" access = "false" ></ right >
< right name = "function.setAccountPassword" access = "false" ></ right >
< right name = "function.kickPlayer" access = "true" ></ right >
< right name = "function.banIP" access = "false" ></ right >
< right name = "function.banPlayer" access = "false" ></ right >
< right name = "function.banSerial" access = "false" ></ right >
< right name = "function.getBansXML" access = "false" ></ right >
< right name = "function.unbanIP" access = "false" ></ right >
< right name = "function.unbanSerial" access = "false" ></ right >
< right name = "function.reloadBans" access = "false" ></ right >
< right name = "function.setServerPassword" access = "false" ></ right >
< right name = "function.getServerPassword" access = "false" ></ right >
< right name = "function.callRemote" access = "false" ></ right >
< right name = "function.fetchRemote" access = "false" ></ right >
< right name = "function.startResource" access = "false" ></ right >
< right name = "function.stopResource" access = "false" ></ right >
< right name = "function.restartResource" access = "false" ></ right >
< right name = "function.createResource" access = "false" ></ right >
< right name = "function.copyResource" access = "false" ></ right >
< right name = "function.addResourceMap" access = "false" ></ right >
< right name = "function.addResourceConfig" access = "false" ></ right >
< right name = "function.removeResourceFile" access = "false" ></ right >
< right name = "function.setResourceDefaultSetting" access = "false" ></ right >
< right name = "function.removeResourceDefaultSetting" access = "false" ></ right >
< right name = "function.redirectPlayer" access = "false" ></ right >
< right name = "function.aclReload" access = "false" ></ right >
< right name = "function.aclSave" access = "false" ></ right >
< right name = "function.aclCreate" access = "false" ></ right >
< right name = "function.aclDestroy" access = "false" ></ right >
< right name = "function.aclSetRight" access = "false" ></ right >
< right name = "function.aclRemoveRight" access = "false" ></ right >
< right name = "function.aclCreateGroup" access = "false" ></ right >
< right name = "function.aclDestroyGroup" access = "false" ></ right >
< right name = "function.aclGroupAddACL" access = "false" ></ right >
< right name = "function.aclGroupRemoveACL" access = "false" ></ right >
< right name = "function.aclGroupAddObject" access = "false" ></ right >
< right name = "function.aclGroupRemoveObject" access = "false" ></ right >
< right name = "function.refreshResources" access = "false" ></ right >
< right name = "function.setServerConfigSetting" access = "false" ></ right >
< right name = "function.updateResourceACLRequest" access = "false" ></ right >
< right name = "command.aclrequest" access = "false" ></ right >
< right name = "general.adminpanel" access = "true" ></ right >
< right name = "general.tab_players" access = "true" ></ right >
< right name = "general.tab_resources" access = "false" ></ right >
< right name = "general.tab_maps" access = "false" ></ right >
< right name = "general.tab_server" access = "false" ></ right >
< right name = "general.tab_bans" access = "false" ></ right >
< right name = "general.tab_adminchat" access = "false" ></ right >
< right name = "command.freeze" access = "true" ></ right >
< right name = "command.setnick" access = "false" ></ right >
< right name = "command.shout" access = "false" ></ right >
< right name = "command.spectate" access = "false" ></ right >
< right name = "command.slap" access = "true" ></ right >
< right name = "command.setgroup" access = "false" ></ right >
< right name = "command.sethealth" access = "false" ></ right >
< right name = "command.setarmour" access = "false" ></ right >
< right name = "command.setmoney" access = "false" ></ right >
< right name = "command.setskin" access = "false" ></ right >
< right name = "command.setteam" access = "false" ></ right >
< right name = "command.giveweapon" access = "true" ></ right >
< right name = "command.setstat" access = "false" ></ right >
< right name = "command.jetpack" access = "false" ></ right >
< right name = "command.warp" access = "false" ></ right >
< right name = "command.setdimension" access = "false" ></ right >
< right name = "command.setinterior" access = "false" ></ right >
< right name = "command.givevehicle" access = "false" ></ right >
< right name = "command.repair" access = "false" ></ right >
< right name = "command.blow" access = "false" ></ right >
< right name = "command.destroy" access = "false" ></ right >
< right name = "command.customize" access = "false" ></ right >
< right name = "command.setcolor" access = "false" ></ right >
< right name = "command.setpaintjob" access = "false" ></ right >
< right name = "command.listmessages" access = "false" ></ right >
< right name = "command.readmessage" access = "false" ></ right >
< right name = "command.listresources" access = "false" ></ right >
< right name = "command.execute" access = "false" ></ right >
< right name = "command.delete" access = "false" ></ right >
< right name = "command.setpassword" access = "false" ></ right >
< right name = "command.setwelcome" access = "false" ></ right >
< right name = "command.setgame" access = "false" ></ right >
< right name = "command.setmap" access = "false" ></ right >
< right name = "command.setweather" access = "false" ></ right >
< right name = "command.blendweather" access = "false" ></ right >
< right name = "command.setblurlevel" access = "false" ></ right >
< right name = "command.setwaveheight" access = "false" ></ right >
< right name = "command.setskygradient" access = "false" ></ right >
< right name = "command.setgamespeed" access = "false" ></ right >
< right name = "command.setgravity" access = "false" ></ right >
< right name = "command.settime" access = "false" ></ right >
< right name = "function.shutdown" access = "false" ></ right >
< right name = "command.setfpslimit" access = "false" ></ right >
< right name = "command.fetchRemote" access = "false" ></ right >
< right name = "command.unban" access = "false" ></ right >
< right name = "command.banserial" access = "false" ></ right >
< right name = "command.unbanserial" access = "false" ></ right >
< right name = "command.listbans" access = "false" ></ right >
Wysłany: 2014-01-18, 19:47
Riot
3X
Wiek: 29 Na forum: 5729 dni Posty: 1123
Nick w MP: Riot/3X
Piwa : 286
Wysłany: 2014-01-18, 19:54
ToJaMixxer
Mapper MTA, .lua
Wiek: 26 Na forum: 4520 dni Posty: 44
Nick w MP: Mixxer
Piwa : 62
Team czyli dru?yna pod tabem. O to chodzi. I zeby te teamy mialy dost?p w panelu admina do:
POLICJA
-Warp
-Slap
-Kick
-Mute
-Freeze
- Give weapon
-Warp
-Destroy
-Set Health
-SetArmour
-Set nick
POGOTOWIE:
-warp
-set health
-Set armour
-Kick
-mute
TAXI:
-warp
-mute
-kick
POMOC DROGOWA:
-fix
-warp
-kick
-mute
Tagi: niedziałające :: acl :: dla :: teamów
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: