Jump to content

iFoReX

Members
  • Posts

    1,708
  • Joined

  • Last visited

Everything posted by iFoReX

  1. iFoReX

    Help ME

    MiX u need use 'triggerClientEvent' or 'triggerServerEvent' and create a event with it 'addEvent' example sv-side(EXAMPLE) addEvent("example",true) addEventHandler("example", getRootElement(), function() ----Here the complement-------- end ) CL-SIDE(eXAMPLE) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() triggerServerEvent("example", getLocalPlayer()) end ) ---A example
  2. iFoReX

    Help ME

    he already try with guiGridListAddColumn guiGridListAddRow guiGridListSetItemText
  3. iFoReX

    Help ME

    U need use 'trigger'
  4. Yes But a event for know if a map is started RANDOM MAP
  5. I done a gui for my server and I want if a map is Started , the GUI Can Open it is my code cl-side GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Grid = {} GUIEditor_Window[1] = guiCreateWindow(0.2988,0.2633,0.4137,0.39,"GUI Shop Panel",true) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(11,23,311,174,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Armas",GUIEditor_TabPanel[1]) GUIEditor_Grid[1] = guiCreateGridList(7,8,153,139,false,GUIEditor_Tab[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) columnA = guiGridListAddColumn(GUIEditor_Grid[1],"Armas",0.4) columnP = guiGridListAddColumn(GUIEditor_Grid[1],"$",0.4) row1 = guiGridListAddRow(GUIEditor_Grid[1]) row2 = guiGridListAddRow(GUIEditor_Grid[1]) row3 = guiGridListAddRow(GUIEditor_Grid[1]) row4 = guiGridListAddRow(GUIEditor_Grid[1]) row5 = guiGridListAddRow(GUIEditor_Grid[1]) GUIEditor_Button[1] = guiCreateButton(188,98,111,42,"Comprar",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Autos",GUIEditor_TabPanel[1]) GUIEditor_Button[2] = guiCreateButton(85,59,75,30,"Repair",false,GUIEditor_Tab[2]) GUIEditor_Button[3] = guiCreateButton(168,59,75,30,"Nitro",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("Skills",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(165,201,157,27,"BaseMode Server By ElMota",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Label[1],"default-bold-small") guiSetVisible(GUIEditor_Window[1],false) showCursor(false) bindKey("F5","down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() guiGridListSetItemText(GUIEditor_Grid[1], row1, columnA, "M4", false, false) guiGridListSetItemText(GUIEditor_Grid[1], row2, columnP, "4000", false, false) end ) addEventHandler ( 'onClientGUIClick', guiRoot, function ( ) if ( source == GUIEditor_Button[1] ) then if ( row1 and columnA and row1 ~= -1 and colA ~= -1 ) then triggerServerEvent("DarArmas", getLocalPlayer()) guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) end end end ) Im doing the Sv-side
  6. no funciono D: me compre un blip reconecte y ya no tenia el blip D: -------------Server--------- function cb1 ( ) local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) destroyElement(blip5) blip1 = createBlipAttachedTo( source, 58 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) destroyElement(blip5) blip1 = createBlipAttachedTo( source, 58 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip1", true ) addEventHandler( "comprarBlip1", getRootElement(), cb1 ) function cb2() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement("blip1") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip2 = createBlipAttachedTo( source, 59 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement("blip1") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip2 = createBlipAttachedTo( source, 59 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip2", true ) addEventHandler( "comprarBlip2", getRootElement(), cb2 ) function cb3() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip1) destroyElement(blip2) destroyElement(blip4) destroyElement(blip5) blip3 = createBlipAttachedTo( source, 60 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip1) destroyElement(blip2) destroyElement(blip4) destroyElement(blip5) blip3 = createBlipAttachedTo( source, 60 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip3", true ) addEventHandler( "comprarBlip3", getRootElement(), cb3 ) function cb4() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip5) blip4 = createBlipAttachedTo( source, 61 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip5) blip4 = createBlipAttachedTo( source, 61 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip4", true ) addEventHandler( "comprarBlip4", getRootElement(), cb4 ) function cb5() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) blip5 = createBlipAttachedTo( source, 62 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) blip5 = createBlipAttachedTo( source, 62 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip5", true ) addEventHandler( "comprarBlip5", getRootElement(), cb5 ) function cb6() destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) destroyElement(blip5) end addEvent( "comprarBlip6", true ) addEventHandler( "comprarBlip6", getRootElement(), cb6 ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() executeSQLQuery("CREATE TABLE IF NOT EXISTS blips (Cuenta STRING,blipN NUMBER)") end ) addEventHandler("onPlayerQuit", getRootElement(), function() obtenerB = getBlipIcon( source ) local account = getPlayerAccount(thePlayer) executeSQLQuery("INSERT INTO blips (Cuenta, blipN) VALUES ('"..getAccountName( account).."', '"..obtenerB.."')") end ) addEventHandler("onPlayerLogin", getRootElement(), function() local consulta = executeSQLQuery("SELECT * FROM blips WHERE Cuenta = '"..getPlayerName(source).."'") local consulta2 = executeSQLQuery("SELECT * FROM blips WHERE blipN = '"..attachElements( source, obtenerB ).."'") end )
  7. 1. dont create 3 posts 2. with 'guiCreateGridList' , 'guiGridListAddColumn' , 'guiGridListAddRow', and 'guiGridListSetItemText' it is for start
  8. iFoReX

    Esta bien esto?

    Plate aunque sea le ubieras cambiado los nombres para que pasara mas piola xDD, ademas esta mal porque las variables tienen los mismos nombres se mesclaran
  9. Yakusa lo vi y no ahy ninguna coordenada solo IDs el nombre DFF y el nombre TXD D:
  10. Ook lo voy a probar y digo que tal, es que es mi primera vez creando codigos con SQL D:
  11. ahh Ok pero mi codigo estaba bueno verdad ?
  12. Edikosh entonces que coloco ? getPlayerName( source ) ?
  13. que esta mal ? me sale error cerca del INTO expected near ')' linea 146 aqui los codes -------------Server--------- function cb1 ( ) local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) destroyElement(blip5) blip1 = createBlipAttachedTo( source, 58 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) destroyElement(blip5) blip1 = createBlipAttachedTo( source, 58 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip1", true ) addEventHandler( "comprarBlip1", getRootElement(), cb1 ) function cb2() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement("blip1") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip2 = createBlipAttachedTo( source, 59 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement("blip1") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip2 = createBlipAttachedTo( source, 59 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip2", true ) addEventHandler( "comprarBlip2", getRootElement(), cb2 ) function cb3() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip1) destroyElement(blip2) destroyElement(blip4) destroyElement(blip5) blip3 = createBlipAttachedTo( source, 60 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip1) destroyElement(blip2) destroyElement(blip4) destroyElement(blip5) blip3 = createBlipAttachedTo( source, 60 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip3", true ) addEventHandler( "comprarBlip3", getRootElement(), cb3 ) function cb4() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip5) blip4 = createBlipAttachedTo( source, 61 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip5) blip4 = createBlipAttachedTo( source, 61 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip4", true ) addEventHandler( "comprarBlip4", getRootElement(), cb4 ) function cb5() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) blip5 = createBlipAttachedTo( source, 62 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) blip5 = createBlipAttachedTo( source, 62 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip5", true ) addEventHandler( "comprarBlip5", getRootElement(), cb5 ) function cb6() destroyElement(blip1) destroyElement(blip2) destroyElement(blip3) destroyElement(blip4) destroyElement(blip5) end addEvent( "comprarBlip6", true ) addEventHandler( "comprarBlip6", getRootElement(), cb6 ) addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), function() executeSQLQuery("CREATE TABLE IF NOT EXISTS blips (Cuenta STRING,blipN NUMBER)") end ) addEventHandler("onPlayerQuit", getRootElement(), function() obtenerB = getBlipIcon( source ) executeSQLInsert(INSERT INTO 'blips' ('Cuenta', 'blipN') VALUES ('..getAccountName( source )..', '..obtenerB..')) end ) addEventHandler("onPlayerLogin" getRootElement(), function() local consulta = executeSQLQuery("SELECT * FROM blips WHERE Cuenta = '"..getPlayerName(source).."'") local consulta2 = executeSQLQuery("SELECT * FROM blips WHERE blipN = '"..attachElements( source, obtenerB ).."'") end ) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.36,0.225,0.2412,0.6017,"GUI Blips",true) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(34,63,31,26,"images/Blip58.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(69,63,105,28,"Buy Blip58",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(33,106,32,30,"images/Blip59.png",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(69,108,105,28,"Buy Blip59",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(33,151,32,32,"images/Blip60.png",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(69,157,105,28,"Buy Blip60",false,GUIEditor_Window[1]) GUIEditor_Image[4] = guiCreateStaticImage(33,204,32,31,"images/Blip61.png",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(69,208,105,28,"Buy Blip61",false,GUIEditor_Window[1]) GUIEditor_Image[5] = guiCreateStaticImage(33,253,32,27,"images/Blip62.png",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(69,255,105,28,"Buy Blip62",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(31,292,149,18,"GUI Blips by ElMota",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) GUIEditor_Button[6] = guiCreateButton(68,322,108,28,"Usar el de defecto",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) bindKey("F7","down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientMouseEnter", root, function() if source == GUIEditor_Button[1] then guiSetText(GUIEditor_Label[1], "Price : 6000") guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) elseif source == GUIEditor_Button[2] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") elseif source == GUIEditor_Button[3] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") elseif source == GUIEditor_Button[4] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") elseif source == GUIEditor_Button[5] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") end end ) addEventHandler("onClientMouseLeave", root, function() if source == GUIEditor_Button[1] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[2] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[3] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[4] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[5] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") end end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[1] then triggerServerEvent("comprarBlip1", getLocalPlayer()) elseif source == GUIEditor_Button[2] then triggerServerEvent("comprarBlip2", getLocalPlayer()) elseif source == GUIEditor_Button[3] then triggerServerEvent("comprarBlip3", getLocalPlayer()) elseif source == GUIEditor_Button[4] then triggerServerEvent("comprarBlip4", getLocalPlayer()) elseif source == GUIEditor_Button[5] then triggerServerEvent("comprarBlip5", getLocalPlayer()) elseif source == GUIEditor_Button[6] then triggerServerEvent("comprarBlip6", getLocalPlayer()) end end ) gracias de antemano
  14. mmm... Podria ser con un evento de onPlayerLogin lo triggeas, o podrias añadirlo a la GUI en donde elige skins
  15. iFoReX

    Se puede??

    creo que quiere que el player pueda tener 1 arma en cada Mano
  16. iFoReX

    Se puede??

    Plate para hacer shops necesitas como dijo edikosh aprender a programar
  17. function quitarreja() ---te falto el parentesis xDD removeWorldModel( 16094 ,8192, 0, 0, 0) addEventHandler ("onResourceStart", quitarreja) EDIT Y EL END TAMBIEN Y 1 ARGUMENTO EN EL ADDEVENTHANDLER function quitarreja() removeWorldModel( 16094 ,8192, 0, 0, 0) end addEventHandler ("onResourceStart", getRootElement(), quitarreja) ai ta funciona perfecto gracias soren
  18. my button doesnt work , the element doesnt destroy D: ---------Client------------ GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(0.36,0.225,0.2412,0.6017,"GUI Blips",true) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(34,63,31,26,"images/Blip58.png",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(69,63,105,28,"Buy Blip58",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(33,106,32,30,"images/Blip59.png",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(69,108,105,28,"Buy Blip59",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(33,151,32,32,"images/Blip60.png",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(69,157,105,28,"Buy Blip60",false,GUIEditor_Window[1]) GUIEditor_Image[4] = guiCreateStaticImage(33,204,32,31,"images/Blip61.png",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(69,208,105,28,"Buy Blip61",false,GUIEditor_Window[1]) GUIEditor_Image[5] = guiCreateStaticImage(33,253,32,27,"images/Blip62.png",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(69,255,105,28,"Buy Blip62",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(31,292,149,18,"GUI Blips by ElMota",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) GUIEditor_Button[6] = guiCreateButton(68,322,108,28,"Usar el de defecto",false,GUIEditor_Window[1]) guiSetVisible(GUIEditor_Window[1],false) showCursor(false) bindKey("F7","down", function() guiSetVisible(GUIEditor_Window[1], not guiGetVisible(GUIEditor_Window[1])) showCursor(guiGetVisible(GUIEditor_Window[1])) end ) addEventHandler("onClientMouseEnter", root, function() if source == GUIEditor_Button[1] then guiSetText(GUIEditor_Label[1], "Price : 6000") guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) elseif source == GUIEditor_Button[2] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") elseif source == GUIEditor_Button[3] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") elseif source == GUIEditor_Button[4] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") elseif source == GUIEditor_Button[5] then guiLabelSetColor(GUIEditor_Label[1], 0, 0, 255) guiSetText(GUIEditor_Label[1], "Price : 6000") end end ) addEventHandler("onClientMouseLeave", root, function() if source == GUIEditor_Button[1] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[2] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[3] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[4] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") elseif source == GUIEditor_Button[5] then guiLabelSetColor(GUIEditor_Label[1], 255, 255, 0) guiSetText(GUIEditor_Label[1], "GUI Blips by ElMota") end end ) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor_Button[1] then triggerServerEvent("comprarBlip1", getLocalPlayer()) elseif source == GUIEditor_Button[2] then triggerServerEvent("comprarBlip2", getLocalPlayer()) elseif source == GUIEditor_Button[3] then triggerServerEvent("comprarBlip3", getLocalPlayer()) elseif source == GUIEditor_Button[4] then triggerServerEvent("comprarBlip4", getLocalPlayer()) elseif source == GUIEditor_Button[5] then triggerServerEvent("comprarBlip5", getLocalPlayer()) elseif source == GUIEditor_Button[6] then triggerServerEvent("comprarBlip6", getLocalPlayer()) end end ) -------------Server--------- function cb1 ( ) local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement("blip2") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip1 = createBlipAttachedTo( source, 58 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement("blip2") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip1 = createBlipAttachedTo( source, 58 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip1", true ) addEventHandler( "comprarBlip1", getRootElement(), cb1 ) function cb2() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement("blip1") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip2 = createBlipAttachedTo( source, 59 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement("blip1") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") blip2 = createBlipAttachedTo( source, 59 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip2", true ) addEventHandler( "comprarBlip2", getRootElement(), cb2 ) function cb3() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement("blip1") destroyElement("blip2") destroyElement("blip4") destroyElement("blip5") blip3 = createBlipAttachedTo( source, 60 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement("blip1") destroyElement("blip2") destroyElement("blip4") destroyElement("blip5") blip3 = createBlipAttachedTo( source, 60 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip3", true ) addEventHandler( "comprarBlip3", getRootElement(), cb3 ) function cb4() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement("blip1") destroyElement("blip2") destroyElement("blip3") destroyElement("blip5") blip4 = createBlipAttachedTo( source, 61 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement("blip1") destroyElement("blip2") destroyElement("blip3") destroyElement("blip5") blip4 = createBlipAttachedTo( source, 61 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip4", true ) addEventHandler( "comprarBlip4", getRootElement(), cb4 ) function cb5() local money = getPlayerMoney ( source ) local name = getPlayerName ( source ) if name == "~ElMota~" then destroyElement("blip1") destroyElement("blip2") destroyElement("blip3") destroyElement("blip4") blip5 = createBlipAttachedTo( source, 62 ) else if ( money >= 6000 ) then takePlayerMoney ( source, 6000 ) destroyElement("blip1") destroyElement("blip2") destroyElement("blip3") destroyElement("blip4") blip5 = createBlipAttachedTo( source, 62 ) else outputChatBox ( "No Tienes Suficiente Dinero", source ) end end end addEvent( "comprarBlip5", true ) addEventHandler( "comprarBlip5", getRootElement(), cb5 ) function cb6() destroyElement("blip1") destroyElement("blip2") destroyElement("blip3") destroyElement("blip4") destroyElement("blip5") end addEvent( "comprarBlip6", true ) addEventHandler( "comprarBlip6", getRootElement(), cb6 ) please help me
  19. es que cree una GUI pero no es nada relacionado con el gamemode de Mate_ no ahy evento o funcion para saber si un map CUALQUIERA este ON ?
  20. with 'bindKey' and 'unbindKey' and events 'onClientGUIClick'
  21. a friend said to me , the european people have a bad ping
  22. mmm... entonces no hago el loop y hago el removeWorldModel haci simple ? EDIT: No me funciono DD: haciendolo simple
  23. soren ',' expected near 'do'
×
×
  • Create New...