-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
that is not the original mabako paradise.. that is a edited version for their own server.
-
lol? i don't get you, that pastebin code are just commands of many resources.. also i'm not sure but does paradise rp has inventory drop?
-
SDK, thats why i wanted to know how he using it o_o
-
show us your whole code, where you get the player element, etc.
-
Why don't you try to help him? you are just fighting about what they do but we aren't Valhalla!
-
yeah, i think the best way of doing this would be a colshape, also you need to use: isElementWithinColShape to check if the player who types the command is in the colshape. https://wiki.multitheftauto.com/wiki/IsElementWithinColShape
-
well, at client side you had an error in triggerServerEvent which was giving bad argument, your error was: you was triggering some argument called "logger" which didn't exist in the script so i changed it to getLocalPlayer() and got fixed. in server side you was trying to call a function but your player element wasn't defined so i added some arguments as you can see and thats all.
-
server side: function spawnHandler(player) local x = 2028 local y = 1545 local z = 11 local r = 270 local s = 167 spawnPlayer(player, x, y, z, r, s) fadeCamera(player, true) setCameraTarget(player, player) end function joinHandler() spawnHandler(source) newPlayer = getPlayerName(source) outputChatBox("Welcome to John's Test Server, " ..newPlayer.. "!", source, 0, 255, 0, true) outputChatBox( newPlayer.. " has joined the server.", getRootElement(), 255, 0, 0, true) end function quitHandler(quitType) local quittingPlayerName = getPlayerName(source) outputChatBox(quittingPlayerName .. " has left the server [" .. quitType .. "]" ) end addEventHandler("onPlayerQuit", getRootElement(), quitHandler) --addEventHandler("onPlayerJoin", getRootElement(), joinHandler) function loginHandler(username, password) --This is the area where the trouble begins local account = getAccount(username, password) if ( account ~= false ) then outputChatBox("good pass",source,0,255,0) joinHandler() else outputChatBox ("bad pass",source,255,0,0) end end addEvent("submitLogin",true) addEventHandler("submitLogin",root,loginHandler) client side: 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) guiEditSetMaxLength(edtUser, 50) guiEditSetMaxLength(edtPass, 50) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 btnLogin = guiCreateButton(X, Y, Width, Height, "Log In", true, wdwLogin) addEventHandler("onClientGUIClick", btnLogin, clientSubmitLogin, false) guiSetVisible(wdwLogin, false) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function () createLoginWindow() if (wdwLogin ~= nil) then guiSetVisible(wdwLogin, true) else outputChatBox("An unexpected error has occurred and the log in GUI has not been created.") end showCursor(true) guiSetInputEnabled(true) end ) 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", getLocalPlayer(), username, password) guiSetInputEnabled(false) guiSetVisible(wdwLogin, false) showCursor(false) else outputChatBox("Please enter a username and password.") end end end
-
local pickup = createPickup (tonumber(x),tonumber(y),tonumber(z),3,1272,100) setElementData (pickup,"housenumber",tonumber(number)) else local pickup = createPickup (tonumber(x),tonumber(y),tonumber(z),3,1273,100) setElementData (pickup,"housenumber",tonumber(number)) end outputDebugString ("House " .. tostring(number) .. " loaded!") end but remember! you must change events onMarkerHit to onPickupUse
-
can you please use the f** "EDIT" button? you keep posting double without a reason.
-
you don't have argument "account" i'm guessing, as SDK said show us your code.
-
http://filebase.to/files/1955830/mabako-mta-paradise-6d4a852.zip
-
just do, data = getAccountData(account,"my_data") if data then outputChatBox("Data is exist") else outputChatBox("Data doesn't exist") end
-
impossible.. i made a test command and worked, addCommandHandler("spawn", function (thePlayer) spawna(thePlayer) end)
-
as i said it doens't has a GUI panel.
-
HOW?! with a COMMAND OR WHAT?
-
... i'm asking how you use: if (skinID == bronezombies )then
-
i think Paradise game mode doesn't has a built-in admin panel.
-
where is your compare function?
-
function spawna (player) if source then thePlayer = source else thePlayer = player end spawnPlayer ( thePlayer, -2650.2561035156, 22.383113861084, 27.414619445801, 90, 26 ) fadeCamera(thePlayer, true) setCameraTarget(thePlayer, thePlayer) end addEventHandler( "makePlayerSpawn", getRootElement(), spawna ) function onLogin ( player, user, pass ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then triggerClientEvent ( player,"hideLoginWindow", getRootElement() ) spawna(player) else outputChatBox ( "Login error!", player, 255, 255, 0 ) -- Output they got the details wrong. end else outputChatBox ( "Wrong username or password!", player, 255, 255, 0 ) -- Output they got the details wrong. end end
-
look, if you want that you can script it yourself because i won't do it.
-
setTimer(autoRestart,1800000,0) what do you think is that? 1800000 = 30 minutes
-
server.lua: function autoRestart() restartResource(getResourceFromName("carsmap")) end setTimer(autoRestart,1800000,0) meta.xml: <meta> <script src="server.lua" type="server"/> </meta> you have to give the resource admin rights because restartResource requires them to work.
-
I'm not sure but i think this is impossible.
