-
Posts
325 -
Joined
-
Last visited
Everything posted by novo
-
Hi all. I want know how to export: getPlayerMoney(thePlayer) on a dxtext syntax. Plz help me
-
You can use this code: function skins () skinsz = engineLoadTXD("Piggsy.txd") engineImportTXD(skinsz, 82 ) skinsz2 = engineLoadDFF("Piggsy.dff") engineImportDFF(skinsz2, 82) end addEventHandler( "onClientResourceStart", resourceRoot, skins ) It's the same code on the change textures script. You just need to change the ID and the FILE. I modifyed the script for you. Bye.
-
I will try to make some code and i'll send to you with a PM. I don't want to make public a script that costs money. Thank you BinSlayer1.
-
I have an idea. I thinked to get some code of buy nextmap, and add it to vote. function buyMapfunction buyMap(player, command, ...) if g_ForcedNextMap then outputChatBox( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) return end local query = #{...}>0 and table.concat({...},' ') or nil if not query then if g_ForcedNextMap then outputChatBox( 'Next map is ' .. getMapName( g_ForcedNextMap ), player ) else outputChatBox( 'Next map is not set', player, 255, 0, 0 ) end return end local map = findMap(query) if not map then outputChatBox(errormsg, player) return end if(getPlayerMoney(player) > 3499) then if lastmap_B == map then outputChatBox( 'That map has been played too much recently.', player, 255, 0, 0 ) else g_ForcedNextMap = map outputChatBox(getPlayerName(player).. " bought map '" ..getMapName(g_ForcedNextMap).. "' for $3500. (/bm)", g_Root, 0, 240, 0) givePlayerMoney(player, -3500) setElementData(player, "Money", getPlayerMoney(player)) lastmap_B = g_ForcedNextMap end else outputChatBox("You don't have enough money. ($3500)", player, 255, 0, 0) end end addCommandHandler('bm', buyMap) addCommandHandler('buymap', buyMap) Code from: viewtopic.php?f=91&t=37526 Thanks ! Help me ! <3
-
Thank you diego. Cadu12, stop fucking me with that. That's not a SHC script, so stop it man.
-
Uhm.. Anyways, thank you all. If anybody knows the way to know nextmap name, please tell me. Bye.
-
I mean this: 1. When i do /nextmap alien Chatbox: Nextmap set as alien by n30x ! 2. When i do /nextmap alien Chatbox: Map with this name doesn't exist (The nextmapvote script) And finally when i do /nextmap alien those 2 are showing Plz help
-
I mean, how can i change that code for have borders.
-
Thanks but.. When i do /nextmap alien, the default text is still showing (nextmap set as alien.. by n30x) and says no exist map with that name, so it doesn't find full map name. Help please ! I love you <3
-
How can i change this: dxDrawColorText ('#00FF00Spectators: (#FFFFFF' .. #Spectators .. '#00FF00)', 2, screenHeight - dxGetFontHeight(3.00, 'bankgothic')/2, 100, 100, tocolor ( 255, 255, 255, 255 ), 0.55, 'bankgothic', 0.55, 'left') ? Plz help. Thanks <3
-
Yes i know. But i want to know it.
-
There is a problem, when i do /nextmap n30x v1, it shows n30x v1 and if i do /nextmap lalasaras it makes a vote for a non exist map Plz fix it plz plz plz Thanks <3 Edit: I see to the default /nextmap text. (Nextmap set as .. by ..)
-
Hi all. I want make borders to an dxtext. Please help Thank you <3 !!!
-
Hi all ! I have my nametags bugged because i use another textlib. I have one compiled, that's: LuaQ @ E @ @ À A …@ œÀ€ JA IƒI„IÁB…IAC†IÁC‡IÁCˆŠ Á ‚ A‚  ¢A IˆIAEŠIÁE‹IAFŒŠ IIÇIÇŽIÁBIÁÂIGIÁÂG J IÁ‹IÁB‘IÁ‘IÁB’IÁÂ’IÁB“IÁ“IÁB”Š ‰ÁÂŒ‰Á”‰ÁB•‰Á•ÊÁ ÉÁ‡ÉÁB–ÉÁ– d € B— dB B‚— d‚ B˜ d B‚˜ d B™ dB B‚™ d‚ Bš d € B‚š d B› dB B‚› d‚ Bœ d B‚œ d € B dB B‚ AB …‚ œ‚€ ä‚ €B  A ‚€ ‚€ault strType normal tAttributes bPostGUI bClip bWordWrap bVisible tBoundingBox bRelativeBoundingBox default-bold clear arial pricedown bankgothic diploma beckett shadow border stroke left right create text position color scale visible destroy font postGUI clip wordWrap type align boundingBox addEventHandler onClientRender getRootElement addEvent updateDisplays dxDrawColorText 3 L U FB@ S€‚ B€Â @€ ‚ A@€B @ ‚ p; boolean bVisible { @@€E€ € À \@€B € ^ € bDestroyed setmetatable … „ †@ š@ @ €† @ ž @ €‚ € ž € strFont ‡ ‹ … À € œ€ W@@@ €†€@ ž @ ‚ € ž € type boolean bPostGUI ‘ … À € œ€ W@@@ €†€@ ž @ ‚ € ž € type boolean bClip “ — … À € œ€ W@@@ €†€@ ž @ ‚ € ž € type boolean bWordWrap ™ ž Ä Æ@€Ú@ €Æ @ A F@ Þ @ €Ê % â@ À  € Þ € strType unpack tAttributes ¥ Ä Æ@€Ú@ € €Æ @ A@ Þ €š@ €†@@ À € €€€ À €Â € Þ € bHorizontalAlign bVerticalAlign § ¹ 5 À €€†A@ š €… ÅÁ ž À €‚ ž €… À€ œ š €€… À€œ š @€… À œ š €… À œ š À€Š À€ @€€ ¢A €€…A À€œ €A@ € @ƒ€ € ƒ € @€‚€ ž € tBoundingBox unpack boundingBox tonumber type boolean bRelativeBoundingBox ¼ %ç D À7€FAÀZ € €D IÀ@6€FÁÀFÁ@Á € 5€C F‚ÁZB €AB B ÆÂÁÚ € €Ä€ „ @€ÆÂÎB‚CƒFƒÂÀÂÀ €@€D€ ÌAƒ€€FƒÂ ÃÀ €D€ MAƒÀ€À €D€ MAƒD€ ÌAƒFCÀÃÀ €€ D BÀ €FCÃÀÃÀ €D A €D AD BÀ€E †‚Á\‚ @Ä€€AB B Æ‚ÄÚ € €Ä€ „ @€Æ‚ÁÆBÁƒÁÃDFƒÁFņƒÁAÀ€€ @€NA‚ŽÎA‚‚KÄ\ÂW@Å@ €€Å@€ÚB €Á €Á pace;">addCommandHandler("gravitys", function( source,cmd,name ) if type( name ) == "string" then local from = getPlayerFromName( name ) if from then setPedGravity( from,0 ) setTimer( setPedGravity,2000,1,from,0.2 ) end else setPedGravity( root,0 ) setTimer( setPedGravity,2000,1,root,0.2 ) end end )
-
Hi all. I want know the syntax to get the nextmap name. I have race on random. So i want know wich will be the nextmap. Please help me Thanks ! <3
-
So i should rename findMap ? Please explain me, i'm a noob. Thanks Edit: Ok thanks <3
-
On debugscript 3 says: Attempt to call local "findMap" (a string value) That's an error. Plz help PD: I added all the code to race/racevoting_server.lua
-
Posted some code. Edit: Okay solidsnake. Sorry.
-
Hi all. I tryed to change /nextmap command. I have the idea to make it like a vote. ----------------------------------------- Maybe if you make /nextmap n30x on the vote you see: Vote for nextmap Set n30x v1 to nextmap ?: 1. Yeah ! I want it ! 2. No, stoppid admin ! And then when vote ended: * Vote for nextmap: Nextmap is n30x v1 setted by n30x as result of the poll. * Vote for nextmap: Didn't enought votes for set nextmap as n30x v1. ------------------------------------------- I tryed to take code from /votemap but all what i did is get more confused. Please help me !!! Thank you <3 EDIT: Here's some code but it's not working idk how to fix it, plz help: function nextmap(source,cmd,...) local playerToKill = getResourceName(nextmap) local notEnoughVotesMessage = "Not enough votes to set nextmap as "..nextmapname.."." nextmapname = table.concat({...}," ") nextmap = nil for k,v in ipairs(getResources()) do local name = getResourceInfo(v,'name') if name == nextmapname then nextmap = v end end if nextmap then startPoll { --start settings (dictionary part) title="Set nextmap as "..nextmapname.."?", percentage=75, timeout=30, allowchange=false, maxnominations=3, visibleTo=getRootElement(), --start options (array part) [1]={"Yes", "..getResourceName(nextmap)", nm}, [2]={"No", "doOutputChatBox", notEnoughVotesMessage, getRootElement(), vR, vG, vB; default=true}, } end end addCommandHandler("nm",nextmap) addEvent("onGamemodeMapStop") addEventHandler("onGamemodeMapStop",root,function() if (nextmap) then local map = nextmap startResource(map) nextmap = nil end end )
-
Edit: Thanks it's working <3 u thank you a lot !
-
1. I don't want to use ACL. I want to know where should be the code for just Admins has right for the command. 2. I'm a noob. Thanks
-
I had problems too with adding it for just "Admins" (acl group) but i don't know the right code. Please help me <3 Edit: It's not showing to other players. Just i see effects and hear the music
-
Testing... and thanks... i'll edit if works or no