Anubhav
Members-
Posts
2,277 -
Joined
-
Last visited
Everything posted by Anubhav
-
Thanks IIYAMA ! i understood it
-
As the topic says , make me understand it please k,v in ipairs -- and all
-
ahh , ty for correcting my as it was on wiki:3 i edited it .
-
http://pastebin.com/bRVFbdGy MTA Diag told me for this only. My problem: MTA SA Works but when i come and download the files it not responds.
-
Yes! EXAMPLE: local colShape = createColSphere ( 1, 2, 3, 4 ) local players = getElementsWithinColShape ( newcolshape, "player" ) for theKey,thePlayer in ipairs(players) do outputChatBox ( getPlayerName ( thePlayer ) .. " is in the col shape." ) end --I Have got this example from wiki .
-
Here is it: I Dint tested it. table1 = { {-1434, 2668, 55.68 }, {-1460, 2669, 55.66 }, } for_,v in pairs ( table1 ) do object = createObject ( 929, v[1], v[2], v[3] ) function destroyElement() getElementData(thePlayer,table1) destroyElement(object) outputChatBox("Your object is destroyed.",thePlayer,255,255,255) end NOTE: if your object is table1 it will destroy it or change the destroyElement(element name you want to destroy)
-
table1 = { {-1434, 2668, 55.68 }, {-1460, 2669, 55.66 }, } for_,v in pairs ( table1 ) do object = createObject ( 929, v[1], v[2], v[3] ) end function () getElementData(thePlayer,table1) end
-
25% He is gonna pay . (25% Of donation) , Dont ask how i know because i am staff and scripting for his server:)
-
addEventHandler( "onClientResourceStart", getRootElement( ), YOUR CODE ) You can read the wiki if you dint understood it.
-
Ok, But whats the problem in it?> i dint understood that
-
Can you show your code of script or tell what is the problem in it? the faces?
-
Alex@ what do you mean? And i just wanted to say that the screenshot is added.
-
First time someone said that .
-
Hello Members Off MTA, Today i am releasing my second version of Theme. It is realy cool. (I am a new in it but still i tried very hard .) I Hope you like it. Download (ALL Versions): http://www.upload.ee/files/3841517/Space_Theme.zip.html Screens: http://www.upload.ee/image/3841578/gta_ ... -53-61.bmp Credits: Anubhav (Designer,Idea)
-
Go to community (as solidSnake said) and you can download from there gamemode or DD/DM Resources.
-
addEvent ( "hideHud", true ) addCommandHandler("showhud", function () if handler then removeEventHandler("onClientRender",root,renderHud) handler = false else addEventHandler("onClientRender",root,renderHud) handler = true end addEventHandler ( "hideHud", root, myHudFunction ) triggerEvent ( "hideHud", root, getLocalPlayer() )
-
local spawnpoint addEventHandler("onResourceStart", resourceRoot, function() spawnpoint = getRandomSpawnPoint() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end if get("spawnreset") == "onSpawn" then spawnpoint = getRandomSpawnPoint() end exports.spawnmanager:spawnPlayerAtSpawnpoint(player,spawnpoint,false) repeat until setElementModel(player,217) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end function getRandomSpawnPoint () local spawnpoints = getElementsByType("spawnpoint") return spawnpoints[math.random(1,#spawnpoints)] end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerQuit",root, function () if getPlayerCount() == 1 and get("spawnreset") == "onServerEmpty" then spawnpoint = getRandomSpawnPoint() end end ) vaddEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) it will set your skin 217 when you spawn.
-
outputChatBox("TEXT",thePlayer,255,69,0) Try it.
-
Hello Members of MTA, Today i am releasing my first GUI Theme named Space Theme. I Don't think my theme is good because it got bugs which will be fixed in 0.5 , the next version. __ v1 Download: http://www.upload.ee/files/3835605/images.zip.html How to install: Go to your mta folder > CLick on MTA folder > Click on cgui folder > paste the folder which should be replaced with it. Screens: Empty __ v1.1 Download (1.0 and 1.1): http://www.upload.ee/files/3841517/Space_Theme.zip.html Screens: http://www.upload.ee/image/3841578/gta_ ... -53-61.bmp Credits: Anubhav (Designer,Idea) __ v1.2 Download (1.2): http://www.upload.ee/files/3883163/images.rar.html Screens: Empty Credits: Anubhav (Designer,Idea) __ v1.3 Download (1.3): http://www.upload.ee/files/3883391/images.rar.html Screens: Empty Credits: Anubhav (Designer,Idea) __ v2.0 Download (2.0): Coming! Screens: Empty Credits: Anubhav (Designer,Idea) __ Enjoy!
-
We are not going to script for you for free. Use community guyz.
-
to get the things so it can be saved getElementData SAVING: for XML Things xmlLoadFile (and other xml functions) database things MY:SQL Or SQL
-
function getOnlinePlayers(...) outputChatBox("[ONLINE PLAYERS] There are" ..getPlayerCount.. "players on the server!", root, 0 , 0 , 0) end setTimer(getOnlinePlayers, 120000, 10000) This script will get players and output it. 10000 Times for infinite use 0. setTimer(getOnlinePlayer, 120000, 0) for infinite times.