-
Posts
11 -
Joined
-
Last visited
Posts posted by Krex
-
-
8 minutes ago, IIYAMA said:
destroyElement(SapphireTeam)
thanks
- 1
-
Please anyone help me with this code, it's supposed to remove a team from the scoreboard if there are no players in it. But it give errors.
local team = getElementsByType ( "team" )
local SapphireTeam = getTeamFromName ( "Sapphire" )
local SapphireCount = countPlayersInTeam ( SapphireTeam )
if SapphireCount < 1 then
destroyElement ( team )
endserver.lua:5: Bad argument @ 'destroyElement' [Expected element at argument 1, got table]
-
14 minutes ago, MrTasty said:
function setBlipsToTeamColor() for _,player in ipairs(getElementsByType("player")) do for _,blip in ipairs(getElementsByType("blip")) do local team = getPlayerTeam(player) if (team and getElementAttachedTo(blip) == player) then -- only if this blip is attached to `player` local r,g,b = getTeamColor(team) setPlayerNametagColor(player,r,g,b) setBlipColor(blip,r,g,b,255) end end end end setTimer(setBlipsToTeamColor,500,0)
Also I've renamed the function since you should avoid naming your function with the same name as existing hardcoded functions (namely, setTeamColor) as that makes them inaccessible.
Thank's, it works well now
-
Can anyone please help me with this code, it supposed to change a player's name and blip color to the color of their team when they switch team's. But the problem is, when i change my team the blip color changes for all players, even though their not in my team.
function setTeamColor() for _,player in ipairs(getElementsByType("player")) do for _,blip in ipairs(getElementsByType("blip")) do local team = getPlayerTeam(player) if (team) then local r,g,b = getTeamColor(team) setPlayerNametagColor(player,r,g,b) setBlipColor(blip,r,g,b,255) end end end end setTimer(setTeamColor,500,0)
-
On 10/12/2018 at 14:58, DeadthStrock said:
Thank you @IIYAMA !
According to that event try below code.
Client Side :-
addEventHandler("onClientExplosion",root, function (x,y,z,type) if type == 2 or type == 3 then triggerServerEvent("hydra.onExplosion",resourceRoot,x,y,z) end end )
Server Side :-
addEvent("hydra.onExplosion",true) addEventHandler("hydra.onExplosion",root, function (x,y,z) createExplosion(x,y,z,10) createExplosion(x,y,z,10) createExplosion(x,y,z,10) end )
I do not know weather hydra explosion is '2' or '3'. Find it by yourself @Krex.
Thanks, i had already figured it out.
- 1
-
On 08/12/2018 at 11:03, DeadthStrock said:
Hi @Krex !
I don't know 100% working method. But I give you a little support regarding this.
Server Side :-
addEventHandler("onPlayerDamage",root, function (_,type) if type == 19 then local x,y,z = getElementPosition(source) createExplosion(x,y,z,10) createExplosion(x,y,z,10) createExplosion(x,y,z,10) end end )
This is my little effort results. When a player hit a missile, x3 explosion create. But if missile explode near the player. Our custom explosions done on the player . examine the code and build your own.
Good Luck !
It didn't work....... but thanks for trying. ill see what i can do with this code.
-
Help, does anyone know a way to like increase the explosive damage from hydra missiles?
-
On 21/11/2018 at 23:27, R.I.P Logic said:
It happened to me once, Take the go to [admin] and open the meta.xml file, add
<meta> .... <aclrequest> <right name="general.ModifyOtherObjects" access="true"/> <right name="general.http" access="true"/> <right name="command.shutdown" access="true"/> <right name="command.mods" access="true"/> <right name="command.install" access="true"/> <right name="command.aexec" access="true"/> <right name="command.debugscript" access="true"/> <right name="command.upgrade" access="true"/> <right name="command.crun" access="true"/> <right name="command.srun" access="true"/> <right name="command.run" access="true"/> <right name="command.aclrequest" access="true"/> <right name="command.authserial" access="true"/> <right name="command.reloadacl" access="true"/> <right name="function.addBan" access="true"/> <right name="function.setUnbanTime" access="true"/> <right name="function.setBanAdmin" access="true"/> <right name="function.setBanReason" access="true"/> <right name="function.setBanNick" access="true"/> <right name="function.removeBan" access="true"/> <right name="function.reloadBans" access="true"/> <right name="function.executeCommandHandler" access="true"/> <right name="function.setServerPassword" access="true"/> <right name="function.getServerPassword" access="true"/> <right name="function.createResource" access="true"/> <right name="function.copyResource" access="true"/> <right name="function.addResourceMap" access="true"/> <right name="function.addResourceConfig" access="true"/> <right name="function.removeResourceFile" access="true"/> <right name="function.setResourceDefaultSetting" access="true"/> <right name="function.removeResourceDefaultSetting" access="true"/> <right name="function.aclReload" access="true"/> <right name="function.aclSave" access="true"/> <right name="function.aclCreate" access="true"/> <right name="function.aclDestroy" access="true"/> <right name="function.aclSetRight" access="true"/> <right name="function.aclRemoveRight" access="true"/> <right name="function.aclCreateGroup" access="true"/> <right name="function.aclDestroyGroup" access="true"/> <right name="function.aclGroupAddACL" access="true"/> <right name="function.aclGroupRemoveACL" access="true"/> <right name="function.aclGroupAddObject" access="true"/> <right name="function.aclGroupRemoveObject" access="true"/> <right name="function.refreshResources" access="true"/> <right name="function.setServerConfigSetting" access="true"/> <right name="function.updateResourceACLRequest" access="true"/> <right name="function.shutdown" access="true"/> <right name="general.adminpanel" access="true"/> <right name="general.tab_players" access="true"/> <right name="general.tab_resources" access="true"/> <right name="general.tab_maps" access="true"/> <right name="general.tab_server" access="true"/> <right name="general.tab_bans" access="true"/> <right name="general.tab_adminchat" access="true"/> <right name="command.kick" access="true"/> <right name="command.freeze" access="true"/> <right name="command.mute" access="true"/> <right name="command.setnick" access="true"/> <right name="command.shout" access="true"/> <right name="command.spectate" access="true"/> <right name="command.slap" access="true"/> <right name="command.setgroup" access="true"/> <right name="command.sethealth" access="true"/> <right name="command.setarmour" access="true"/> <right name="command.setmoney" access="true"/> <right name="command.setskin" access="true"/> <right name="command.setteam" access="true"/> <right name="command.giveweapon" access="true"/> <right name="command.setstat" access="true"/> <right name="command.jetpack" access="true"/> <right name="command.warp" access="true"/> <right name="command.setdimension" access="true"/> <right name="command.setinterior" access="true"/> <right name="command.createteam" access="true"/> <right name="command.destroyteam" access="true"/> <right name="command.givevehicle" access="true"/> <right name="command.repair" access="true"/> <right name="command.blowvehicle" access="true"/> <right name="command.destroyvehicle" access="true"/> <right name="command.customize" access="true"/> <right name="command.setcolor" access="true"/> <right name="command.setpaintjob" access="true"/> <right name="command.listmessages" access="true"/> <right name="command.readmessage" access="true"/> <right name="command.listresources" access="true"/> <right name="command.start" access="true"/> <right name="command.stop" access="true"/> <right name="command.stopall" access="false"/> <right name="command.delete" access="true"/> <right name="command.restart" access="true"/> <right name="command.execute" access="true"/> <right name="command.setpassword" access="true"/> <right name="command.setwelcome" access="true"/> <right name="command.setgame" access="true"/> <right name="command.setmap" access="true"/> <right name="command.setweather" access="true"/> <right name="command.blendweather" access="true"/> <right name="command.setblurlevel" access="true"/> <right name="command.setwaveheight" access="true"/> <right name="command.setskygradient" access="true"/> <right name="command.setgamespeed" access="true"/> <right name="command.setgravity" access="true"/> <right name="command.settime" access="true"/> <right name="command.setfpslimit" access="true"/> <right name="command.ban" access="true"/> <right name="command.unban" access="true"/> <right name="command.banip" access="true"/> <right name="command.unbanip" access="true"/> <right name="command.banserial" access="true" /> <right name="command.unbanserial" access="true" /> <right name="command.listbans" access="true" /> <right name="function.addaccount" access="true" /> </aclrequest> </meta>
Then start the script, it will say that the scripts need acl approvment, write in console:
aclrequest allow admin all
Try it, it should work.
Ok thank you, it works well now.
-
16 minutes ago, LyricalMM said:
maybe you deleted the resource from ACL
No i didn't remove the resource. Here's my acl:
</group>
<group name="Admin">
<acl name="Admin"></acl>
<acl name="RPC"></acl>
<acl name="VIP"></acl>
<acl name="SuperModerator"></acl>
<acl name="Moderator"></acl>
<object name="resource.admin"></object>
<object name="resource.webadmin"></object>
<object name="user.kalmex"></object>_____________________________________
<acl name="Admin">
<right name="general.ModifyOtherObjects" access="true"></right>
<right name="general.http" access="true"></right>
<right name="command.shutdown" access="true"></right>
<right name="command.mods" access="true"></right>
<right name="command.install" access="true"></right>
<right name="command.aexec" access="true"></right>
<right name="command.debugscript" access="true"></right>
<right name="command.upgrade" access="true"></right>
<right name="command.crun" access="true"></right>
<right name="command.srun" access="true"></right>
<right name="command.run" access="true"></right>
<right name="command.aclrequest" access="true"></right>
<right name="command.authserial" access="true"></right>
<right name="command.reloadacl" access="true"></right>
<right name="function.addBan" access="true"></right>
<right name="function.setUnbanTime" access="true"></right>
<right name="function.setBanAdmin" access="true"></right>
<right name="function.setBanReason" access="true"></right>
<right name="function.setBanNick" access="true"></right>
<right name="function.removeBan" access="true"></right>
<right name="function.reloadBans" access="true"></right>
<right name="function.executeCommandHandler" access="true"></right>
<right name="function.setServerPassword" access="true"></right>
<right name="function.getServerPassword" access="true"></right>
<right name="function.createResource" access="true"></right>
<right name="function.copyResource" access="true"></right>
<right name="function.addResourceMap" access="true"></right>
<right name="function.addResourceConfig" access="true"></right>
<right name="function.removeResourceFile" access="true"></right>
<right name="function.setResourceDefaultSetting" access="true"></right>
<right name="function.removeResourceDefaultSetting" access="true"></right>
<right name="function.aclReload" access="true"></right>
<right name="function.aclSave" access="true"></right>
<right name="function.aclCreate" access="true"></right>
<right name="function.aclDestroy" access="true"></right>
<right name="function.aclSetRight" access="true"></right>
<right name="function.aclRemoveRight" access="true"></right>
<right name="function.aclCreateGroup" access="true"></right>
<right name="function.aclDestroyGroup" access="true"></right>
<right name="function.aclGroupAddACL" access="true"></right>
<right name="function.aclGroupRemoveACL" access="true"></right>
<right name="function.aclGroupAddObject" access="true"></right>
<right name="function.aclGroupRemoveObject" access="true"></right>
<right name="function.refreshResources" access="true"></right>
<right name="function.setServerConfigSetting" access="true"></right>
<right name="function.updateResourceACLRequest" access="true"></right>
<right name="function.shutdown" access="true"></right>
<right name="general.adminpanel" access="true"></right>
<right name="general.tab_players" access="true"></right>
<right name="general.tab_resources" access="true"></right>
<right name="general.tab_maps" access="true"></right>
<right name="general.tab_server" access="true"></right>
<right name="general.tab_bans" access="true"></right>
<right name="general.tab_adminchat" access="true"></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="true"></right>
<right name="command.shout" access="true"></right>
<right name="command.spectate" access="true"></right>
<right name="command.slap" access="true"></right>
<right name="command.setgroup" access="true"></right>
<right name="command.sethealth" access="true"></right>
<right name="command.setarmour" access="true"></right>
<right name="command.setmoney" access="true"></right>
<right name="command.setskin" access="true"></right>
<right name="command.setteam" access="true"></right>
<right name="command.giveweapon" access="true"></right>
<right name="command.setstat" access="true"></right>
<right name="command.jetpack" access="true"></right>
<right name="command.warp" access="true"></right>
<right name="command.setdimension" access="true"></right>
<right name="command.setinterior" access="true"></right>
<right name="command.createteam" access="true"></right>
<right name="command.destroyteam" access="true"></right>
<right name="command.givevehicle" access="true"></right>
<right name="command.repair" access="true"></right>
<right name="command.blowvehicle" access="true"></right>
<right name="command.destroyvehicle" access="true"></right>
<right name="command.customize" access="true"></right>
<right name="command.setcolor" access="true"></right>
<right name="command.setpaintjob" access="true"></right>
<right name="command.listmessages" access="true"></right>
<right name="command.readmessage" access="true"></right>
<right name="command.listresources" access="true"></right>
<right name="command.start" access="true"></right>
<right name="command.stop" access="true"></right>
<right name="command.stopall" access="false"></right>
<right name="command.delete" access="true"></right>
<right name="command.restart" access="true"></right>
<right name="command.execute" access="true"></right>
<right name="command.setpassword" access="true"></right>
<right name="command.setwelcome" access="true"></right>
<right name="command.setgame" access="true"></right>
<right name="command.setmap" access="true"></right>
<right name="command.setweather" access="true"></right>
<right name="command.blendweather" access="true"></right>
<right name="command.setblurlevel" access="true"></right>
<right name="command.setwaveheight" access="true"></right>
<right name="command.setskygradient" access="true"></right>
<right name="command.setgamespeed" access="true"></right>
<right name="command.setgravity" access="true"></right>
<right name="command.settime" access="true"></right>
<right name="command.setfpslimit" access="true"></right>
<right name="command.ban" access="true"></right>
<right name="command.unban" access="true"></right>
<right name="command.banip" access="true"></right>
<right name="command.unbanip" access="true"></right>
<right name="command.banserial" access="true"></right>
<right name="command.unbanserial" access="true"></right>
<right name="command.listbans" access="true"></right>
<right name="function.addaccount" access="true"></right><right name="general.tab_resource" access="true"></right>
<right name="command.startresource" access="true"></right>
</acl> -
I cant start resource on admin panel even though admin has right's, i keep getting this error
WARNING: [admin]/admin/server/admin_server.lua:1261: Access denied @ 'startResource'
WARNING: [admin]/admin/server/admin_server.lua:1262: Access denied @ 'restartResource'
WARNING: [admin]/admin/server/admin_server.lua:1263: Access denied @ 'stopResource'
Anyone please help me with this.
Nighthriller Freeroam Server
in Servers
Posted
Hello everyone, I recently created a freeroam server called Nighthriller. My server has many advanced features like : Zombies, VIPs, TDM, Races, PvP, Dpgfight and someother features. So if your interested in joining, the Server IP is : 51.255.215.208:22090