-
Posts
2,608 -
Joined
-
Last visited
Everything posted by 12p
-
WHATEVER! This gamemode is dead, use another or create it
-
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.
-
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)
-
F^^K Yeah! Thanks again Aiboforcen
-
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
-
If I'm right, no, you can't. Server-side vehicles doesn't matter to client-side.
-
Can't he investigate, man?!?! Can't he discover it by himself and learn more about it in Wiki?!?!
-
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.
-
I don't know. Investigate wiki functions maybe? I'll give you a clue: triggering =)
-
He meant "hipnotize" Haha, he meant a band/singer, I'm sure.
-
If I'm right, the problem is that your resource has spaces in its name... I guess that is...
-
Dont doublepost... getLocalPlayer is a CLIENT value, NOT SERVER
-
I just want to know if it exists and/or the name of the function. Thanks ^^
-
I just deleted the file by removeResourceFile. Thanks Aiboforcen.
-
Isn't supposed I can?
-
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?
-
You should investigate by yourself.
-
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 >.<
-
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
-
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
-
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
-
LOL, that was the problem! Thanks a lot, mate =)
-
Then you're spamming EDIT: Minecraft Alpha is now in 0.3a!!! Uploading new video so you can check out my updates!
-
first, get GUI Editor. Then, do anything you want with the GUI.