Jump to content

BriGhtx3

Members
  • Posts

    378
  • Joined

  • Last visited

Everything posted by BriGhtx3

  1. Do you use it on a local server?
  2. BriGhtx3

    Moon

    WRONG You can replace it with images, just set the same name. I didn't download the resource, so i couldn't know that he wants to replace the pictures IN it.
  3. No. Just delete the editor_dump and editor_test in the resources folder and everything works fine.
  4. BriGhtx3

    need scripter

    how much are you willing to pay?
  5. I think its the getAccountName part, because now its a string
  6. BriGhtx3

    Moon

    You cant replac it with an image. You have to use txd.
  7. Just use onVehicleExplode and spawn it again oO
  8. Fixed it. Sorry, I always type it in the browser and dont check it afterwards.
  9. function reloadHouses() file = xmlLoadFile("XML/houseData.xml") for i,v in ipairs(xmlNodeGetChildren(file)) do posX = xmlNodeGetAttribute(v, "markerPosX") posY = xmlNodeGetAttribute(v, "markerPosY") posZ = xmlNodeGetAttribute(v, "markerPosZ") owner = xmlNodeGetAttribute(v, "owner") houseIcon = createPickup(posX, posY, posZ, 3, 1273, 1000) end end Sorry my error You have to replace the file in the for tags with v.
  10. first file : function abc() number1 = 60 end addEventHandler("onClientResourceStart",getRootElement(),abc) second file : function bbc() outputChatBox(tostring(number1)) end addCommandHandler("text",bbc)
  11. xmlFile = xmlLoadFile("XML.xml") for i,v in ipairs(xmlNodeGetChildren(xmlFile)) posX = xmlNodeGetAttribute(xmlFile, "markerPosX") posY = xmlNodeGetAttribute(xmlFile, "markerPosY") posZ = xmlNodeGetAttribute(xmlFile, "markerPosZ") owner = xmlNodeGetAttribute(xmlFile, "owner") outputChatBox("X : "..posX.." Y : "..posY.." Z : "..posZ.." Owner : "..owner) end
  12. function txdClient () tekstura = engineLoadTXD("textures/vgEhshade01_lvs.txd") engineImportTXD(tekstura, 8838 ) tekstura2 = engineLoadTXD("textures/vgncarshade1.txd") engineImportTXD(tekstura2, 3458 ) end addEventHandler( "onClientResourceStart", resourceRoot, PAwloClient)
  13. Use global variables and settings files
  14. function putplayerteamneu( ) local serial = getPlayerSerial (source ) if isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Member" ) ) then setPlayerTeam ( source, getTeamFromName( "Members" ) ) setElementData( source, "pptts.acl", "Members") elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Moderator" ) ) then setPlayerTeam ( source, getTeamFromName( "Moderators" ) ) setElementData( source, "pptts.acl", "Moderator") elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Owner" ) ) then setPlayerTeam ( source, getTeamFromName( "Server Owners" ) ) setElementData( source, "pptts.acl", "Owner") setElementData( source, "pptts.canusemakeadmin", true) elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "Admin" ) ) then setPlayerTeam ( source, getTeamFromName( "Admins" ) ) setElementData( source, "pptts.acl", "Admin") elseif isObjectInACLGroup ( "serial." .. serial, aclGetGroup ( "VIP" ) ) then setPlayerTeam ( source, getTeamFromName( "VIP" ) ) setElementData( source, "pptts.acl", "VIP") else setPlayerTeam ( source, getTeamFromName( "Players" ) ) end end addEventHandler ( "onPlayerJoin", getRootElement(), putplayerteamneu )
  15. for i,v in ipairs(xmlNodeGetChildren(xmlFile)) xmlNodeGetAttribute(xmlFile, v) end
  16. Kenix Ah, you mean you create it via a map file and get the elementdata by the type.
  17. And why do you use getElementData without setting it?
  18. Kenix he wants to have a xml file
  19. Yeah you can fix it. Just fix the MySQL_Connection >.
×
×
  • Create New...