Jump to content

SoiiNoob

Members
  • Posts

    72
  • Joined

  • Last visited

Everything posted by SoiiNoob

  1. I want 2 markers , one sets the skin to "111" and the other to "112"
  2. WARNING: xxxxxxxx.lua:89: Bad argument @ 'setElementModel' setElementModel ( hitElement, pickup2, 112 ) I want 2 markers, with 2 differents skins with the same weapon,same team. one skin 111 and the second 112 sorry
  3. I have local pickup = createMarker ( 1978.5877685547, 1026.3675537109, 993.50002441406, "cylinder", 1, 100, 100, 100, 170 ) setElementInterior (pickup, 10) function mafiamarker (hitElement, matchingDimension) local elementType = getElementType( hitElement ) if (elementType == "player") then setElementModel ( hitElement, 111 ) setPlayerTeam ( hitElement, teammaffia ) takeAllWeapons ( hitElement ) giveWeapon ( hitElement, 8, 1, true ) giveWeapon ( hitElement, 32, 550, true ) giveWeapon ( hitElement, 16, 100, true ) giveWeapon ( hitElement, 24, 207, true ) setPedArmor ( hitElement, 0 ) end end addEventHandler( "onMarkerHit", pickup, mafiamarker ) and i want to make multiples markers with diferent functions, like local pickup = createMarker ( 1978.5877685547, 1026.3675537109, 993.50002441406, "cylinder", 1, 100, 100, 100, 170 ) local pickup2 = createMarker ( 1978.5877685547, 1026.3675537109, 993.50002441406, "cylinder", 1, 100, 100, 100, 170 ) setElementInterior (pickup, pickup2, 10) function mafiamarker (hitElement, matchingDimension) local elementType = getElementType( hitElement ) if (elementType == "player") then setElementModel ( hitElement, 111 ) setElementModel ( hitElement, pickup2, 111 ) setPlayerTeam ( hitElement, teammaffia ) takeAllWeapons ( hitElement ) giveWeapon ( hitElement, 8, 1, true ) giveWeapon ( hitElement, 32, 550, true ) giveWeapon ( hitElement, 16, 100, true ) giveWeapon ( hitElement, 24, 207, true ) setPedArmor ( hitElement, 0 ) end end addEventHandler( "onMarkerHit", pickup, pickup2, mafiamarker ) To don't do this local pickup = createMarker ( 1978.5877685547, 1026.3675537109, 993.50002441406, "cylinder", 1, 100, 100, 100, 170 ) setElementInterior (pickup, 10) function mafiamarker (hitElement, matchingDimension) local elementType = getElementType( hitElement ) if (elementType == "player") then setElementModel ( hitElement, 111 ) setPlayerTeam ( hitElement, teammaffia ) takeAllWeapons ( hitElement ) giveWeapon ( hitElement, 8, 1, true ) giveWeapon ( hitElement, 32, 550, true ) giveWeapon ( hitElement, 16, 100, true ) giveWeapon ( hitElement, 24, 207, true ) setPedArmor ( hitElement, 0 ) end end addEventHandler( "onMarkerHit", pickup, mafiamarker ) local pickup2 = createMarker ( 1978.5877685547, 1023.3675537109, 993.50002441406, "cylinder", 1, 100, 100, 100, 170 ) setElementInterior (pickup2, 10) function mafiamarker (hitElement, matchingDimension) local elementType = getElementType( hitElement ) if (elementType == "player") then setElementModel ( hitElement, 111 ) setPlayerTeam ( hitElement, teammaffia ) takeAllWeapons ( hitElement ) giveWeapon ( hitElement, 8, 1, true ) giveWeapon ( hitElement, 32, 550, true ) giveWeapon ( hitElement, 16, 100, true ) giveWeapon ( hitElement, 24, 207, true ) setPedArmor ( hitElement, 0 ) end end addEventHandler( "onMarkerHit", pickup2, mafiamarker ) in resumed words i want a multiple markers with diferent functions in one, to don't get a big size of file.
  4. you are right , thanks again.
  5. yep , thanks =) fixed local mafiapickup3 = createMarker ( 1977.460937, 1026.2985839844, 994.46875, "cylinder", 2.0, 255, 255, 0, 170 ) setElementInterior (mafiapickup3 , 10, 1977.4609375, 1026.2985839844, 994.46875) setElementDimension (mafiapickup3 , 0)
  6. thanks ! now it works , but i want the marker in a interior and don't show
  7. I want to make a marker when you are inside , change you to the team Mafia (teammaffia) I tryed local mafiapickup3 = createMarker ( 1991.4399414063, 1018.1683959961, 994.890625, "cylinder", 2.0, 255, 255, 0, 170 ) function mafiamarker (hitElement, matchingDimension) local elementType = getElementType( hitElement ) setPedSkin ( thePlayer, 127 ) setPlayerTeam ( thePlayer, teammaffia ) takeAllWeapons ( thePlayer ) giveWeapon ( thePlayer, 8, 1, true ) giveWeapon ( thePlayer, 32, 9999, true ) giveWeapon ( thePlayer, 16, 100, true ) giveWeapon ( thePlayer, 24, 300, true ) setPedArmor ( thePlayer, 0 ) addEventHandler( "onMarkerHit", mafiapickup3, mafiamarker ) end
  8. Client function Peds () mafia = createPed ( 111, 0, 0, 0 ) setElementInterior (mafia , 10, 1994.0821533203, 1017.4099121094, 994.890625 ) setPedVoice(mafia, "PED_TYPE_DISABLED") setPedFrozen (mafia , true ) setElementDimension (mafia , 0) end addEventHandler('onClientResourceStart', getResourceRootElement(), Peds) http://img813.imageshack.us/img813/1262/mtascreen20120303210717.png I tryed a lot of things but it keeps dont working Tryed createPed ( model, x, y, z, RotX, RotY, RotZ ) setElementRotation(localname,rotX,rotY,rotZ) setPedRotation (localname,rotZ)
  9. I'm still getting "ERROR: call: failed to call 'customblips:createCustomBlip' [string "?"] can you bring me the fixed resource? =(
  10. http://www.mediafire.com/?3ahiogf50awcjgp
  11. You resource blips NOT RUNNING! Type cmd /refresh in chat.( if in console then , no slash ) And start resource. http://img252.imageshack.us/img252/9955/mtascreen20120225182617.png Server log : [2012-02-25 18:25:03] ADMIN: Resource 'customblips' restarted by [C]ristian([GM]SoiiNoob) [2012-02-25 18:25:03] Stopping customblips [2012-02-25 18:25:04] Starting customblips [2012-02-25 18:25:04] customblips restarted successfully
  12. New Error ERROR: call: failed to call 'customblips:createCustomBlip' [string "?"]
  13. nope yep http://img35.imageshack.us/img35/4651/dasqk.png http://img11.imageshack.us/img11/9679/sinttulootx.png I forgot the debugscript sorry ppl ERROR: exports: call to non-running client resource (blips) [string "?"]
  14. I renamed it to "customblips" ,stopped and started but it still don't working
  15. Yep http://img403.imageshack.us/img403/5210/94658339.png
  16. I tried all to make it work but nothing happens I did everything that said in this post but didn't work https://forum.multitheftauto.com/viewtopic.php?f=91&t=38430 Script addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), function() exports.customblips:createCustomBlip ( 2487.6000976563, -1668.4000244141, 20, 20, "taxi.png" ) end ) Meta "soiinoob" name="customblips" version="1.0" type="script"/> Any help? PD : Bad english
  17. Solved. Solution : https://forum.multitheftauto.com/viewtopic.php?f=91&t=26009
  18. Login By XenoMTA : https://community.multitheftauto.com/index.php?p=resources&s=details&id=3393 When I click "Register" i get a error. == Error == "client triggered serverside event submitregister, but event is not added serverside" == Client == local localPlayer = getLocalPlayer() local playerName = getPlayerName(localPlayer) local sx,sy = guiGetScreenSize() wnd_window = {} local guiSkinShop = guiCreateWindow(0.37*sx,0.80*sy,0.3*sx,0.15*sy,"Choose a skin!",false) done = guiCreateButton(0.25,0.60,0.50,0.30,"Done",true,guiSkinShop) left = guiCreateButton(0.07,0.60,0.15,0.30,"<-",true,guiSkinShop) right = guiCreateButton(0.78,0.60,0.15,0.30,"->",true,guiSkinShop) guiWindowSetSizable(guiSkinShop,false) guiSetVisible(guiSkinShop, false) --label skinLabel = guiCreateLabel(0.05,0.30,0.90,0.17,"Skins can be bought once ingame",true,guiSkinShop) guiSetAlpha(skinLabel,1) guiLabelSetColor(skinLabel,255,255,255) guiCreateStaticImage( 0.0001, 0.49, 0.99, 0.02, "red.png", true, guiSkinShop ) guiCreateStaticImage( 0.0001, 0.25, 0.99, 0.02, "red.png", true, guiSkinShop ) guiLabelSetHorizontalAlign(skinLabel,"center",false) guiSetFont(skinLabel,"default-bold-small") function createLoginWindow(title, logo, content) local xml = xmlLoadFile( "server.xml" ) local content = xmlNodeGetValue( xml ) windowLogin = guiCreateWindow(0.02*sx,0.05*sy,0.4*sx,0.8*sy,"Xeno's Login System",false) guiSetSize(windowLogin, 270, 400, false) guiWindowSetSizable(windowLogin,false) guiCreateMemo(01,170,500,220,content,false,windowLogin) guiSetAlpha(windowLogin,1) labelUsername = guiCreateLabel(10,52,59,24,"Username:",false,windowLogin) guiSetAlpha(labelUsername,1) guiLabelSetColor(labelUsername,255,255,255) guiLabelSetVerticalAlign(labelUsername,"center") guiLabelSetHorizontalAlign(labelUsername,"left",false) labelPassword = guiCreateLabel(10,86,59,24,"Password:",false,windowLogin) guiSetAlpha(labelPassword,1) guiLabelSetColor(labelPassword,255,255,255) guiLabelSetVerticalAlign(labelPassword,"center") guiLabelSetHorizontalAlign(labelPassword,"left",false) labelInfo = guiCreateLabel(10,26,250,17,"Please login or register.",false,windowLogin) guiSetAlpha(labelInfo,1) guiLabelSetColor(labelInfo,255,255,255) guiLabelSetVerticalAlign(labelInfo,"top") guiLabelSetHorizontalAlign(labelInfo,"center",false) guiSetFont(labelInfo,"default-bold-small") editUsername = guiCreateEdit(79,52,181,25,"",false,windowLogin) guiSetAlpha(editUsername,1) guiEditSetMaxLength(editUsername, 50) editPassword = guiCreateEdit(79,86,181,25,"",false,windowLogin) guiSetAlpha(editPassword,1) guiEditSetMasked(editPassword, true) guiEditSetMaxLength(editPassword, 50) buttonLogin = guiCreateButton(10,121,117,21,"Log in",false,windowLogin) guiSetAlpha(buttonLogin,1) buttonRegister = guiCreateButton(149,121,117,21,"Register",false,windowLogin) guiSetAlpha(buttonRegister,1) guiCreateStaticImage( 0.0001, 0.370, 0.99, 0.006, "red.png", true, windowLogin ) guiCreateStaticImage( 0.0001, 0.415, 0.99, 0.006, "red.png", true, windowLogin ) newsLabel = guiCreateLabel(0.35,0.372,0.300,0.17,"Server News",true,windowLogin) guiSetAlpha(newsLabel,1) guiLabelSetColor(newsLabel,255,255,255) guiCreateStaticImage( 0.0001, 0.11, 0.99, 0.006, "red.png", true, windowLogin ) guiCreateStaticImage( 0.0001, 0.06, 0.99, 0.006, "red.png", true, windowLogin ) guiLabelSetHorizontalAlign(newsLabel,"center",false) guiSetFont(newsLabel,"default-bold-small") guiSetVisible(windowLogin, false) showChat(false) addEventHandler("onClientGUIClick", buttonLogin, clientSubmitLogin, false) addEventHandler("onClientGUIClick", buttonRegister, showReg, false) end regMenu = guiCreateWindow(0.357*sx,0.05*sy,0.33*sx,0.3*sy,"Register Menu",false) guiCreateStaticImage( 0.0001, 0.13, 0.99, 0.010, "red.png", true, regMenu ) guiCreateStaticImage( 0.0001, 0.25, 0.99, 0.010, "red.png", true, regMenu ) guiWindowSetSizable(regMenu,false) guiSetAlpha(regMenu,1) regUsername = guiCreateLabel(10,52,59,24,"Username:",false,regMenu) guiSetAlpha(regUsername,1) guiLabelSetColor(regUsername,255,255,255) guiLabelSetVerticalAlign(regUsername,"center") guiLabelSetHorizontalAlign(regUsername,"left",false) editRegUsername = guiCreateEdit(70,52,181,25,"",false,regMenu) guiSetAlpha(editRegUsername,1) guiEditSetMaxLength(editRegUsername, 50) regPassword = guiCreateLabel(10,86,59,24,"Password:",false,regMenu) guiSetAlpha(regPassword,1) guiLabelSetColor(regPassword,255,255,255) guiLabelSetVerticalAlign(regPassword,"center") guiLabelSetHorizontalAlign(regPassword,"left",false) --editRegPassword = guiCreateEdit(79,86,181,25,"",false,regMenu) editRegPassword = guiCreateEdit(70,86,181,25,"",false,regMenu) guiSetAlpha(editRegPassword,1) guiEditSetMasked(editRegPassword, true) guiEditSetMaxLength(editRegPassword, 50) regComPassword = guiCreateLabel(10,122,59,24,"*Email:",false,regMenu) guiSetAlpha(regComPassword,1) guiLabelSetColor(regComPassword,255,255,255) guiLabelSetVerticalAlign(regComPassword,"center") guiLabelSetHorizontalAlign(regComPassword,"left",false) editEmail = guiCreateEdit(70,120,181,25,"",false,regMenu) --editEmail = guiCreateEdit(60,120,190,25,"",false,regMenu) guiSetAlpha(editEmail,1) guiEditSetMasked(editEmail, true) guiEditSetMaxLength(editEmail, 50) buttonReg = guiCreateButton(10,150,120,21,"Register",false,regMenu) guiSetAlpha(buttonReg,1) buttonCan = guiCreateButton(143,150,117,21,"Cancel",false,regMenu) guiSetAlpha(buttonCan,1) labelRegister = guiCreateLabel(10,26,250,17,"Register with a user and pass here.",false,regMenu) guiSetAlpha(labelRegister,1) guiLabelSetColor(labelRegister,255,255,255) guiLabelSetVerticalAlign(labelRegister,"top") guiLabelSetHorizontalAlign(labelRegister,"center",false) guiSetFont(labelRegister,"default-bold-small") guiSetVisible(regMenu, false) function cancelWindow() guiSetVisible(regMenu, false) end function resourceStart() createLoginWindow() if (windowLogin ~= nil) then guiSetVisible(windowLogin, true) else outputChatBox("An error has occurred.") end showCursor(true) guiSetInputEnabled(true) end function changePw() createPasswordWindow() guiSetVisible(windowChangepw, true) showCursor(true) guiSetInputEnabled(true) end function clientSubmitLogin(button, state) if button == "left" and state == "up" then local username = guiGetText(editUsername) local password = guiGetText(editPassword) if username and password then showChat(true) triggerServerEvent("submitLogin", getRootElement(), localPlayer, username, password) else guiSetText(labelInfo, "Enter username and password.") end end end function showReg(button, state) guiSetVisible(regMenu, true) --if button == "left" and state == "up" then -- local username = guiGetText(editUsername) -- local password = guiGetText(editPassword) -- if username and password then --showChat(false) -- -- -- triggerServerEvent("submitRegister", getRootElement(), localPlayer, username, password) -- else -- guiSetText(labelInfo, "Enter username and password.") -- end --end end function clientSubmitRegister(button, state) if button == "left" and state == "up" then local username = guiGetText(editRegUsername) local password = guiGetText(editRegPassword) if username and password then showChat(false) triggerServerEvent("submitRegister", getRootElement(), localPlayer, username, password) else -- guiSetText(labelRegister, "User/pass in use.") end end end function clientSubmitChangepw(button, state) if button == "left" and state == "up" then local oldpassword = guiGetText(editOldpw) local newpassword = guiGetText(editNewpw) if oldpassword and newpassword then triggerServerEvent("submitChangepw", getRootElement(), localPlayer, oldpassword, newpassword) else outputChatBox("Enter old and new password.") end end end function hideLoginWindow() guiSetInputEnabled(false) guiSetVisible(windowLogin, false) showCursor(false) guiSetVisible(regMenu, false) setTimer(guiSetVisible, 3100, 1, guiSkinShop, true) showCursor(true) end function hideLoginWindow1() guiSetInputEnabled(false) guiSetVisible(windowLogin, false)
×
×
  • Create New...