Tarek1 Posted November 25, 2016 Share Posted November 25, 2016 --Client Side local accName = getAccountName(getPlayerAccount(player)) Link to comment
Tarek1 Posted November 25, 2016 Author Share Posted November 25, 2016 Just now, Kara said: Client Side ? yep --ClientSide function aduty ( player ) local accName = getAccountName(getPlayerAccount( player )) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then outputChatBox(" Administrator "..getPlayerName(player).." Is Now OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Administrator "..getPlayerName(player).." Is Now OnDuty!") local theText = dxDraw3DText( "Admin On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setElementData( player, "blood", 9999999999999999999999999999999999999999999 ) setElementData( player, "food", 99999999999999999999999999999999999999999999 ) setElementData( player, "thirst", 999999999999999999999999999999999999999999 ) heal = "9999999999999999999999999999" end end addCommandHandler("admin1", aduty) function offaduty ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then outputChatBox(" Administrator "..getPlayerName(player).." Is Now offDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Administrator "..getPlayerName(player).." Is Now offDuty") setElementData( player, "blood", 12000 ) setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) heal = "9999999999999999999999999999" end end addCommandHandler("offduty", offaduty) function heal_func ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Admin") ) then if heal == "an" then setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) end end end setTimer(heal_func, 60000, 0) function e ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Console") ) then outputChatBox(" Owner "..getPlayerName(player).." Is Now OnDuty!",getRootElement(),128,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Owner "..getPlayerName(player).." Is Now OnDuty!") local theText = dxDraw3DText( "Owner On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setElementData( player, "blood", 9999999999999999999999999999999999999999999 ) setElementData( player, "food", 99999999999999999999999999999999999999999999 ) setElementData( player, "thirst", 999999999999999999999999999999999999999999 ) heal = "9999999999999999999999999999" end end addCommandHandler("owner", e) function offaduty1 ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Console") ) then outputChatBox(" Owner "..getPlayerName(player).." Is Now offDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Owner "..getPlayerName(player).." Is Now offDuty") setElementData( player, "blood", 12000 ) setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) heal = "9999999999999999999999999999" end end addCommandHandler("offaduty", offaduty1) function re ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Console") ) then if heal == "an" then setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) end end end setTimer(heal_func, 60000, 0) function rewws ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "SuperModerator") ) then outputChatBox(" SuperModerator "..getPlayerName(player).." Is Now OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" SuperModerator "..getPlayerName(player).." Is Now OnDuty!") local theText = dxDraw3DText( "Admin On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setElementData( player, "blood", 9999999999999999999999999999999999999999999 ) setElementData( player, "food", 99999999999999999999999999999999999999999999 ) setElementData( player, "thirst", 999999999999999999999999999999999999999999 ) heal = "9999999999999999999999999999" end end addCommandHandler("SuperModerator", rewws) function sda512sa ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "SuperModerator") ) then outputChatBox(" SuperModerator "..getPlayerName(player).." Is Now offDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" SuperModerator "..getPlayerName(player).." Is Now offDuty") setElementData( player, "blood", 12000 ) setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) heal = "9999999999999999999999999999" end end addCommandHandler("offduty", sda512sa) function heal_func ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "SuperModerator") ) then if heal == "an" then setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) end end end setTimer(heal_func, 60000, 0) function rewwsrre ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Moderator") ) then outputChatBox(" Moderator "..getPlayerName(player).." Is Now OnDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Moderator "..getPlayerName(player).." Is Now OnDuty!") local theText = dxDraw3DText( "Admin On Duty [NO DM]", x, y, z+1,05,"default",255,0,0,200) setElementData( player, "blood", 9999999999999999999999999999999999999999999 ) setElementData( player, "food", 99999999999999999999999999999999999999999999 ) setElementData( player, "thirst", 999999999999999999999999999999999999999999 ) heal = "9999999999999999999999999999" end end addCommandHandler("Moderator", rewwsrre) function sda512sa ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Moderator") ) then outputChatBox(" Moderator "..getPlayerName(player).." Is Now offDuty!",getRootElement(),255,0,0) outputChatBox("",getRootElement(),255,0,0) outputServerLog(" Moderator "..getPlayerName(player).." Is Now offDuty") setElementData( player, "blood", 12000 ) setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) heal = "9999999999999999999999999999" end end addCommandHandler("offduty",sda512sa) function heal_func ( player ) local accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ( "user." ..accName, aclGetGroup ( "Moderator") ) then if heal == "an" then setElementData( player, "food", 250 ) setElementData( player, "thirst", 250 ) end end end setTimer(heal_func, 60000, 0) Link to comment
Kara Posted November 25, 2016 Share Posted November 25, 2016 @tarek1 كودك server side مب كلينت Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now