Jump to content

12p

Members
  • Posts

    2,608
  • Joined

  • Last visited

Everything posted by 12p

  1. WHATEVER! This gamemode is dead, use another or create it
  2. Weapons and peds can't be replaced yet, only TXD. I suggest you to create a TXD for the brassnuckles, but you won't be able to replace it for a cigar or any DFF yet.
  3. addEvent( "onPlayerPickUpRacePickup", true ) function onPlayerPickUpRacePickup(pickupID,pickupType,vehicleModel) if pickupType == "vehiclechange" and vehicleModel == 425 then car_id = getVehicleModelFromName(getVehicleName(getPedOccupiedVehicle(source))) --getPlayerName is a string, not a ped element! if car_id ~= 425 then outputChatBox(getPlayerName(source).." got the hunter!") outputChatBox("#38ff06Disabling Ghostmode in 10 seconds...") setTimer(gmoff, 10000, 1) g_SToptimesManager:playerFinished( source, exports.race:getTimePassed()) gmoff() end end end addEventHandler( "onPlayerPickUpRacePickup", getRootElement(), onPlayerPickUpRacePickup)
  4. I don't know how to do this easier... I have made this but isn't working as I want: local intX,decX = math.modf(posX) local intY,decY = math.modf(posY) if decX >= -0.6 then if decY >= -0.6 then block = createObject (model,intX,intY,posZ+0.5) table.insert(blocks,block) setElementID (block,tostring(table.getn(blocks)+1)) addObjectToMap(block) elseif decY < -0.6 then block = createObject (model,intX,intY+1,posZ+0.5) table.insert(blocks,block) setElementID (block,tostring(table.getn(blocks)+1)) addObjectToMap(block) end elseif decX < -0.6 then if decY >= -0.6 then block = createObject (model,intX+1,intY,posZ+0.5) table.insert(blocks,block) setElementID (block,tostring(table.getn(blocks)+1)) addObjectToMap(block) elseif decY < -0.6 then block = createObject (model,intX+1,intY+1,posZ+0.5) table.insert(blocks,block) setElementID (block,tostring(table.getn(blocks)+1)) addObjectToMap(block) end end
  5. If I'm right, no, you can't. Server-side vehicles doesn't matter to client-side.
  6. Can't he investigate, man?!?! Can't he discover it by himself and learn more about it in Wiki?!?!
  7. function createLoginWindow() local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 wdwLogin = guiCreateWindow (X, Y, Width, Height, "Please log in.", true) X = 0.0825 Y = 0.2 Width = 0.25 Height = 0.25 guiCreateLabel(X, Y, Width, Height, "Username", true, wdwLogin) Y = 0.5 guiCreateLabel(X, Y, Width, Height, "Password", true, wdwLogin) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 edtUser = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) Y = 0.5 edtPass = guiCreateEdit(X, Y, Width, Height, "", true, wdwLogin) guiEditSetMaxLenght(edtUser, 50) guiEditSetMaxLenght(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.025 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Log in.", true, wdwLogin) guiSetVisible(wdwLogin, false) guiSetInputEnabled(true) end createLoginWindow() outputChatBox("Welcome to Fun Flight Server. Please log in.") if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else outputChatBox("An unexpected error has ocurred. Please visit funflightserver.webs.com and report this error.") end showCursor(true) addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) function clientSubmitLogin(button,state) if button == "left" and state == "up" then local username = guiGetText(edtUser) local password = guiGetText(edtPass) if username and password then triggerServerEvent("submitLogin", getRootElement(), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else outputChatBox("Please enter wanted username and password.") end end end Now use those lines in your script. Maybe it will fix the "t" problem.
  8. I don't know. Investigate wiki functions maybe? I'll give you a clue: triggering =)
  9. He meant "hipnotize" Haha, he meant a band/singer, I'm sure.
  10. If I'm right, the problem is that your resource has spaces in its name... I guess that is...
  11. Dont doublepost... getLocalPlayer is a CLIENT value, NOT SERVER
  12. I just want to know if it exists and/or the name of the function. Thanks ^^
  13. I just deleted the file by removeResourceFile. Thanks Aiboforcen.
  14. function eraseMap () stopResource(getResourceFromName("minecraftmap")) if xmlLoadFile (":minecraftmap/map.map") then outputDebugString ("Minecraft: Map loaded for erasing.") end --[[local node = xmlFindChild (mapFile,"map",1) if xmlDestroyNode (node) then outputDebugString ("Minecraft: Map erased.") else outputDebugString ("Minecraft: Error erasing map.") end ]]-- end It isn't the problem. If the problem is "xmlLoadFile" then my debug message shouldn't appear. PS: Maybe MTA inside error?
  15. 12p

    Basemode Definition

    You should investigate by yourself.
  16. Can anybody stop using this? It's awful so many scripters waste time trying to help zero-lua-knowledge brains to make this resource works. Use the search bar! PS: Sorry my treatment but I'm a bit angry >.<
  17. But xmlLoadFile returns a XML Node, it should work. Whatever, I used function eraseMap () stopResource(getResourceFromName("minecraftmap")) local mapFile = xmlLoadFile (":minecraftmap/map.map") local node = xmlFindChild (mapFile,"map",1) if xmlDestroyNode (node) then outputDebugString ("Minecraft: Map erased.") else outputDebugString ("Minecraft: Error erasing map.") end end and still don't work. But it tells me this error: "ERROR: bad argument "xmlDestroyNode". ps: the filepath is OK, isn't that
  18. 12p

    No idea.

    Why don't u investigate on wiki, Lazy-Ass?
  19. Why can't I delete this XML node? It should work but it doesn't, everything I try shows me my debug error: "error erasing map". function eraseMap () stopResource(getResourceFromName("minecraftmap")) local mapFile = xmlLoadFile (":minecraftmap/map.map") if xmlDestroyNode (mapFile) then outputDebugString ("Minecraft: Map erased.") else outputDebugString ("Minecraft: Error erasing map.") end end
  20. 12p

    Fuel script ;]

    first, you're not creating, you're asking us, so don't act like if you're. second, please check out wiki. This time I'll tell you, but next time search them! setElementData getElementData guiCreateProgressBar guiProgressBarSetProgress setVehicleEngineState
  21. LOL, that was the problem! Thanks a lot, mate =)
  22. Then you're spamming EDIT: Minecraft Alpha is now in 0.3a!!! Uploading new video so you can check out my updates!
  23. 12p

    GUI images

    first, get GUI Editor. Then, do anything you want with the GUI.
×
×
  • Create New...