
BinSlayer1
Members-
Posts
491 -
Joined
-
Last visited
Everything posted by BinSlayer1
-
Ok I found it c:/program files/notepad++/plugins/APIs add these 2 files first file: name it mtaFunctionList.txt -> http://pastebin.com/gNLbi55Y second file: name it lua.xml -> http://pastebin.com/A3wgK6st This is what I found in my folder, hope it works :')
-
Lol createVehicle only works if you parse those parameters.. you should really have a look here https://wiki.multitheftauto.com/wiki/CreateVehicle
-
upload what? tell me what to upload and i will can you specify the exact files I need to upload?
-
yeah but use cloneElement not createVehicle.. if you want to use createVehicle you need to parse model id, x,y,z, not 'source'
-
i have such thing in my notepad++ if I type 'get' then it shows me a list of possible mta functions starting with 'get', however I don't know where I got it from (as I dont remember) i tried searching for it but I didn't find anything ;S
-
you can't get help without posting the code we need to see if you're using the function correctly and that your parameters are valid anyway, try debugging it yourself add outputDebugString() after every step you make with tostring(boolean) to show if functions were executed or failed
-
https://wiki.multitheftauto.com/wiki/CreatePed https://wiki.multitheftauto.com/wiki/Cli ... _functions some ped functions are only clientside, you'll need to use server -> client triggering to achieve some synced stuff
-
download guieditor and update it yourself, i don't think 1.1 brings too many gui changes, maybe it's about syntax ordering if anything
-
Uuh, don't you simply change the gamemode name in the meta.xml in the name=" " tag ?
-
yeah it's serverside but since it's serverside, you need to show bindKey whom to bind it to. so use this: for _, player in ipairs(getElementsByType('player')) do bindKey(player, "m" , "down", keys) end
-
Just post here what you need help with. Remember this is a forum where you can ask for help with your non-working scripts, not non-existent.
-
function loginWindow() GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Scrollbar = {} guiSetInputEnabled(false) GUIEditor_Window[1] = guiCreateWindow(284,338,483,172,"LOGUE-SE OU REGISTRE-SE!",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(13,28,118,19,"Nome de usuário:",false,GUIEditor_Window[1]) GUIEditor_Edit[1] = guiCreateEdit(9,47,143,19,"",false,GUIEditor_Window[1]) GUIEditor_Label[2] = guiCreateLabel(11,68,118,19,"Senha:",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(9,47,143,19,"",false,GUIEditor_Window[1]) guiEditSetMaxLength(GUIEditor_Edit[2],15) GUIEditor_Edit[3] = guiCreateEdit(9,84,143,19,"",false,GUIEditor_Window[1]) guiEditSetMasked(GUIEditor_Edit[3],true) GUIEditor_Button[1] = guiCreateButton(9,113,70,29,"Login",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(84,114,70,29,"Registro",false,GUIEditor_Window[1]) GUIEditor_Label[3] = guiCreateLabel(100,149,313,18,"Advanced Roleplay 2011 - [url=http://www.advanced-roleplay.com]http://www.advanced-roleplay.com[/url]",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(164,22,308,18,"Atualizações:",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[4],"clear-normal") GUIEditor_Memo[1] = guiCreateMemo(164,42,298,98,"v0.1 BETA:\n- GUI @ Login feita.\n-------------------------------------------------------------------\nPróximas atualizações:\nv0.2 BETA:\n- Sistema de salvamento de contas.",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1], true) end addEventHandler("onClientResourceStart", getResourceRootElement(), loginWindow) PS: I hope your GUI works, because all I did was make it pop up when you join the server / start the resource
-
onClientResourceStart is fired right after downloads complete. so disable the player serverside since he joined, enable him back after onClientResourceStart was fired since you need to do this serverside, you'll need to triggerServerEvent too
-
wait you want to stream a live radio.. but you're playing an .m3u file as far as i know m3u is a song playlist format
-
MTA:SA 1.1 Released: Harder, Better, Stronger, Faster
BinSlayer1 replied to darkdreamingdan's topic in News
https://wiki.multitheftauto.com/wiki/GetSoundLength this was also changed without any notice in the wiki it now returns seconds instead of milliseconds I had a setTimer based on this function and it wasn't working until I found out the change -
MTA:SA 1.1 Released: Harder, Better, Stronger, Faster
BinSlayer1 replied to darkdreamingdan's topic in News
https://community.multitheftauto.com/index.php?p= ... ils&id=586 ^ used to work fine in 1.0.5. In 1.1, the FPS is reduced to 15-25 when using it PS: this fps issue was in 1.0.5 too when using dxscoreboard PS2: You can't reproduce it alone, need to be like 30+ players when drawing race progress bar -
Yeah but he may have an old 1.0.5, that's what I mean. And if he does, he should update
-
well if the compiled scripts are 100% functional then it's simply your server acting weird, try the latest nightly from https://nightly.multitheftauto.com
-
--define theTeamElement first. local sum = 0 for i,j in ipairs(getPlayersInTeam(theTeamElement)) do local health = getElementHealth(j) sum = sum + health end --variable 'sum' holds the total health of the team now. Not sure if this is what you mean as you didn't explain it pretty well.
-
you almost got it right good job for trying, however you do have some bugs here and there, look at my code and if there's something you don't understand just ask. You should test it too first, because I didn't. gpickup = {} function takemoney ( thePlayer ) givePlayerMoney(thePlayer, getElementData(source, "moneyDropped")) destroyElement(source) end function givemoney(thePlayer, command, amount) if isElement(gpickup[thePlayer]) then return end local givingplayer = getPlayerFromName ( thePlayer ) local x,y,z = getElementPosition(thePlayer) local x = x + 5 local gpickup[thePlayer] = createPickup(x,y,z,3,1212) setElementData(gpickup[thePlayer], "moneyDropped", math.ceil(tonumber(amount))) takePlayerMoney (thePlayer, math.abs(math.ceil(tonumber(amount)))) addEventHandler('onPickupHit', gpickup[thePlayer], takemoney) end addCommandHandler ("givemoney", givemoney)
-
Starting a resource only for the player who wants it
BinSlayer1 replied to diegofkda's topic in Scripting
Oh I believe there's this thing where you can send a code snippet to be executed to a client I will point you in the right direction but I have no experience with using it: viewtopic.php?f=108&t=29990&p=337791#p337791 -
Starting a resource only for the player who wants it
BinSlayer1 replied to diegofkda's topic in Scripting
That's actually not possible as far as I know unless MTA 1.1 holds such a feature, because 1.0.5 doesn't -
function onGridClick() local row,col = guiGridListGetSelectedItem(guiGridList) if(tabname[row]) then guiSetText(memo,tabname[row]) else guiSetText(memo,"") end end looks like you had an extra end
-
At least he's helping someone. What are you doing? complaining about the way he helps.
-
I suppose you are right, assuming you run Pentium II.