Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
staticImage = guiCreateStaticImage(...) -- bla bla function myFunction() if source == staticImage then outputChatBox("test") end end addEventHandler("onClientGUIClick",getRootElement(),myFunction)
-
Window: dxDrawRectangle button: guiCreateButton with 0 alpha, dxDrawRectangle
-
Create a button with 0 alpha. Then when he click's the button just set the alpha to 100 and guiSetText on the button to key!
-
If it's a type in type or you don't put type, it take's it as server. local theMarker = createMarker(-292.40191650391, 1170.1153564453, 20.00,"cylinder",1.3, 255, 255, 255) for i,v in ipairs(getElementsByType("player"))do setElementData(v, "invincible", false) end function VaccineMeh(Player,mD) if (getElementType (Player) == "player") and mD then if isPedInVehicle (Player) then return false end setElementData(Player, "invincible", true) outputChatBox("You're Now Vaccinated Against Zombies!", Player) end end end function onWasted(Player) if getElementData(source, "invincible", true) then setElementData(source, "invincible", false) end end addEventHandler( "onMarkerHit", theMarker, VaccineMeh) addEventHandler("onPlayerWasted", root, onWasted) addEventHandler("onPlayerSpawn", root, onWasted) addEventHandler("onPlayerDamage", root, function() if getElementData(source, "invincible") then cancelEvent() end end )
-
You can go search on commands and find settime on it. Then use a return if he's in Everyone group and not a admin. function isPlayerAdmin( p ) if isGuestAccount( getPlayerAccount( ) ) then return false else local acc = getPlayerAccount( p ) local acc = getAccountName( acc ) if isObjectInACLGroup( "user."..acc, aclGetGroup("Admin") ) then return true elseif isObjectInACLGroup( "user."..acc, aclGetGroup("Moderator") ) then return true elseif isObjectInACLGroup( "user."..acc, aclGetGroup("SuperModerator") ) then return true else return false end end end function isPlayerAllowedSetTime( player ) if isElement( player ) then if isPlayerAdmin( player ) then return true else return false end end end Just use: if not isPlayerAllowedSetTime( player ) then return outputChatBox("someMsg", player ) end
-
So many Zombie script's I have seen. Specially these kind of. Is it scratch? Btw good luck doing it
-
Wait a second are you guyz mad? Everyone is every user? Admin player also comes in Everyone! Even Console user logged in player comes in Everyone? What's wrong?
-
<meta> <!-- arc_'s Freeroam script --> <!-- You are allowed to modify this resource or add functionality to it. --> <!-- You may use the modified resource in your server and redistribute it. --> <!-- However, the original credits and this license must always stay intact. --> <!-- Also, give your modified resource a different name, like "<yournick>'s --> <!-- extended fromeeroam", to avoid confusion for users. --> <info name="Freeroam GUI" author="arc_" version="1.3.4" /> <script src="util_server.lua" type="server" /> <script src="fr_server.lua" type="server" /> <script src="util.lua" type="client" /> <script src="gui.lua" type="client" /> <script src="fr_client.lua" type="client" /> <export function="appendControl" type="client" /> <file src="colorselect.png" /> <file src="localplayerblip.png" /> <file src="map.png" /> <file src="playerblip.png" /> <config src="animations.xml" type="client" /> <config src="interiors.xml" type="client" /> <config src="skins.xml" type="client" /> <config src="stats.xml" type="client" /> <config src="vehicles.xml" type="client" /> <config src="weapons.xml" type="client" /> <config src="weather.xml" type="client" /> <config src="help.xml" type="client" /> <script src="colorpicker/colorpicker.lua" type="client" /> <file src="colorpicker/palette.png" /> <file src="colorpicker/alpha.png" /> <settings> <!-- Set any of the "true" options to "false" to disable that functionality. --> <!-- If you modify this file you need to /refresh your server for the changes to take effect --> <!-- (this will restart freeroam and therefore delete all vehicles that players created). --> <!-- Use the runcode resource and the set() function to change a setting while freeroam --> <!-- is running without having to refresh. --> <setting name="*spawnmaponstart" value="true" /> <setting name="*spawnmapondeath" value="true" /> <setting name="*welcometextonstart" value="true" friendlyname="Welcome text on start" accept="true,false" group="Misc"/> <setting name="*removeHex" value="true" friendlyname="Remove HEX Codes" accept="true,false" group="Misc" desc="Setting this to true will remove all HEX codes from players' nick when displayed." /> <setting name="*alpha" value="true" /> <setting name="*anim" value="true" /> <setting name="*clothes" value="true" /> <setting name="*createvehicle" value="true" /> <setting name="*gamespeed/enabled" value="true" /> <setting name="*gamespeed/min" value="[0.2]" /> <setting name="*gamespeed/max" value="[3.0]" /> <setting name="*gravity/enabled" value="true" /> <setting name="*gravity/min" value="[0]" /> <setting name="*gravity/max" value="[0.1]" /> <setting name="*jetpack" value="true" /> <setting name="*kill" value="true" /> <setting name="*lights" value="true" /> <setting name="*paintjob" value="true" /> <setting name="*repair" value="true" /> <setting name="*setskin" value="true" /> <setting name="*setstyle" value="true" /> <setting name="*stats" value="true" /> <setting name="*time/freeze" value="true" /> <setting name="*time/set" value="false" /> <setting name="*upgrades" value="true" /> <setting name="*warp" value="true" /> <setting name="*weapons/enabled" value="true" /> <!-- Can players give themselves weapons? --> <setting name="*weapons/vehiclesenabled" value="true" /> <!-- Can players fire vehicle weapons? --> <setting name="*weapons/disallowed" value="[[]]" /> <!-- Comma-separated list of specific weapon ID's that players are not allowed to give to themselves --> <setting name="*weather" value="true" /> <setting name="*vehicles/maxidletime" value="[300000]" /> <!-- Time in ms before a vehicle without passengers gets destroyed --> <setting name="*vehicles/idleexplode" value="false" /> <!-- If set to false, vehicles simply disappear when they time out instead of exploding --> <setting name="*vehicles/maxperplayer" value="[2]" /> <!-- Maximum number of vehicles a player can have at the same time --> <setting name="*vehicles/disallowed" value="[[]]" /> <!-- Comma-separated list of vehicles that players may not create --> <setting name="*chat/mainChatDelay" value="1000" /> <!-- Miliseconds between each message a player can send through main chat --> <setting name="*chat/blockRepeatMessages" value="true" /> <!-- Prevent a player from saying the same thing twice in a row to spam --> </settings> </meta> Replace this with your current freeroam meta!
-
elementResourcesNames = { ['Sometest'] = true, } addEventHandler('onElementDataChange', root, function(dataName, oldValue ) if not elementResourcesName[getResourceName(sourceResource)] then if getElementType(source)=='player' and checkClient( false, source, 'onElementDataChange', dataName ) then setElementData( source, dataName, oldValue ) return end end end )
-
admin_server.lua Line 1444 function Change with addEventHandler('onElementDataChange', root, function(dataName, oldValue ) if dataName ~= "myCustomElementDataName" then if getElementType(source)=='player' and checkClient( false, source, 'onElementDataChange', dataName ) then setElementData( source, dataName, oldValue ) return end end end )
-
Resource was sold with a progress bar
-
Add me on skype if you need. anubhav.agarwal80 Price: $1.50
-
Just a small note, source is not trusted. You should use client instead of source.
-
It will never work. Give it ACL rights plus DON'T ASK FOR SCRIPTS. Line 26 is your error. Replace it with triggerServerEvent ( client sided )
-
True, realy easy. I am ready to make any script and I told that!
-
CGC - Hosting CGC fullform is Cyber Gaming Cyber hosting Introduction Hello! I'm Anubhav from CGC team. I and my friend started a hosting company. We provide the best and we are here to support you all time! Any issues? Tell us Prices Unlimited space 10 cents / slot 50 MB 9 cents / slot What do we provide? 1. DDoS protection - free 2. 99.9% on! 3. FTP access ( full ) 4. Control panel to start and stop and restart server! ( coming soon! ) 5. Proper support 6. Unlimited BANDWIDTH! Payment methods - BitCoin - PayPal Where can you get your server? For now we provide server's in France only. Test server Test server 1 in france: 37.59.127.21:22003 How to buy? Add me on skype anubhav.agarwal80 or post here with this format: Your name: Why do you want the server: Slots: Are you ready to pay?: E-mail: Once I recieve the payment and I see it, you'll get your server on.
-
Yep and thank you for helping! +++++++++++++++++++++++++ I saw the logs you were able to connect and you told Hello. lol
