Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Chatbox

    lol i dint even understand a word of what they saying
  2. lol, do /register password then /login yourpassword and then add that account name to admin group at acl.xml and should work
  3. Did u added to acl and then when u in-game loged in as admin and then press O?
  4. function createAllCols() medicsphere1 = createColSphere(-2601.9345703125, 590.7041015625, 14.453125, 10) medicsphere2 = createColSphere(-2566.6650390625, 578.083984375, 14.459202766418, 15) addEventHandler("onColShapeHit", medicsphere1, openMedicGate1) end addEventHandler("onResourceStart", getRootElement(), createAllCols) --addEventHandler("onColShapeHit", medicsphere2, openMedicGate2) local openFence = false local openFence2 = false function openMedicGate1 (element, dimension) outputChatBox("HIT HIT HIT") local account = getPlayerAccount(element) --if (getElementType(element) == "player") and (getAccountData(account, "job") == "medic") then (you don't need it this is just for me to check whether the player is a medic!) if (openFence == false) then moveObject(elec1, 5000, -2602.3181152344, 594.03961181641, 13.603122711182, 0, 0, 0) openFence = true outputChatBox("SHOULD BE OPEN") if (openFence == true) then setTimer(moveObject, 9000, 1, elec1, 7000, -2602.3239746094, 585.18743896484, 13.603122711182, 0, 0, 0) setTimer(setOpenFenceToFalse, 16000, 1) end end --end end function setOpenFenceToFalse() openFence = false end
  5. put in the resources folder at your server directory, is for any version of 1.0
  6. lol scripters [APR]PrinceOfHell that isnt a scripter, that is a kid that tryes to steal scripts from servers haha
  7. hey there, i got a problem in my send money function, all works fine but when i send to someone -2222 or -9999 it gives to me that money also, here is my code. function ( playerNick, amount ) local cash = getPlayerMoney(source) if (cash > tonumber(amount)) then toWho = getPlayerFromName(playerNick) if (toWho ~= false) then givePlayerMoney(toWho,amount) name = getPlayerName(source) takePlayerMoney(source,amount) outputChatBox("You've given money amount of: " .. amount .. "$ to: " .. playerNick,source,255,255,150) outputChatBox(name .. " has given you money amount of: " .. amount .. "$!",toWho,255,255,245) else outputChatBox("Player did not exist",source,255,0,0) end else outputChatBox("Insufficient founds!",source,255,0,0) end end) btw, i have the GUI part in client side where i trigger user and amount
  8. Uniqu3, Im not 14 years old, but yes i love MGS series . i had to put this nick cause i cant find another one
  9. i just made an example of how to do it.
  10. here it is, should work ( at least in my server did ) server.lua function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local c1 = nil local c2 = nil local c1,c2,c3,c4 = getVehicleColor (getPedOccupiedVehicle(source)) setAccountData (playeraccount, "carcolor1", c1) setAccountData (playeraccount, "carcolor2", c2) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) function onPlayerLogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local c1 = nil local c2 = nil local c1 = getAccountData ( playeraccount, "carcolor1" ) local c2 = getAccountData ( playeraccount, "carcolor2" ) if c1 and c2 then veh = getPedOccupiedVehicle(source) if veh then setVehicleColor ( veh, c1, c2, 0, 0 ) end end end end addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin )
  11. yes, start to learn by yourself some time
  12. Hmm, maybe make a guided version? you know i guess, a nice gui that opens with a key or a command, i think would be nice
  13. When you look at the publishing date i was earlier o,o And it's not stolen because I don't watched his script he just has dont it better :'] so what o,o lol for me yours is better.
  14. edit your zombie reward script
  15. U using the admin panel to find the resources right?
  16. done i solved it myself
  17. What settings.db are you talking about? Since 1.0.4 all accounts are saved in interval.db and all SQLite data (saved with SQL functions) is saved in registry.db. sorry, i missunderstood the name
  18. you must get "sqliteberowser" program and open settings.db
  19. since i dont really have any project in mind i would like to help u cause i love to create GUI stuff
  20. Castillo

    ban serial

    you forgot a "end" but that wasnt a problem , thank you very much it works
  21. Castillo

    ban serial

    hey i just got stuck while trying to ban players serial, the triggers and stuff works fine but the function addBan dosnt seem to work =( here is my code. server: function banNoobSerial( serialToBan ) if ( serialToBan ) then addBan( serialToBan, source, "Bye bye" ) outputChatBox ( "C-Panel: " .. serialToBan .. " was successfully Banned.", source, 34, 35, 250 ) else outputChatBox ( "C-Panel: Invalid serial", source, 255, 12, 15 ) end end
  22. I wont do this, why? just cause i want to make my own and not just edit lil toady one. i know that the original admin panel is much better than mine but im still learning.
  23. a complete new gui and more functions.
×
×
  • Create New...