Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. Cadu12

    buy skin

    addEventHandler("onClientGUIClick",getRootElement(), function (player) if (source == buyleon) then money = getPlayerMoney (getLocalPlayer()) if (money >= 500000) then playSound ( "sounds/shop/thx.mp3", false ) triggerServerEvent ("leon",getLocalPlayer()) else playSound ( "sounds/shop/nocash.mp3", false ) end end end) function leon () setElementModel ( source, 25,true ) takePlayerMoney(source,500000) end addEvent("leon",true) addEventHandler("leon",getRootElement(),leon) Edit: Updated code.
  2. You can do with script (LUA).
  3. MySQL: mysql = dbConnect("mysql", "dbname=test", "host=localhost", "root", "") outputServerLog("[MySQL] Connected!\n") if(mysql ~= nil) then outputServerLog("[MySQL] Disconnected...\n") destroyElement(mysql) end Restart: function restartServer() local hour, mins = getTime() local allResources = getResources() if(hour == 12) and (mins == 00) then for index, res in ipairs(allResources) do if getResourceState(res) == "running" then restartResource(res) outputDebugString("GameMode restarted!", 3, 0, 224, 0) end end end end setTimer(restartServer, 1000, 0)
  4. I found it for you: http://www.mediafire.com/?oyizy3om2yt It is VC:MC and Open Source, but still old
  5. Just use code of Solidsnake14. Did you used login? Did you leave server? ( You can back server )
  6. I tinhk it is possible. Example code (Untested): local number = 0 local numberB = false function onRenderCustomEvent() number = number + 1 if number <= 150 then numberB = true number = 0 end triggerEvent("onCustomRender", getRootElement(), number, numberB) -- and so end addEventHandler("onClientRender", getRootElement(), onRenderCustomEvent) function onCustomRender(arg, arg2) outputChatBox(tostring(arg .. " : " .. arg2)) -- PS: It will spammer chat, just for example end addEvent("onCustomRender", true) addEventHandler("onCustomRender", getRootElement(), onCustomRender)
  7. Porn skins: https://community.multitheftauto.com/index.php?p= ... &id=318419
  8. Cadu12

    Problem get()

    get() is only server-side
  9. https://wiki.multitheftauto.com/wiki/Scr ... troduction
  10. And custom gamemode are missing .
  11. Feche1320, it works at all, map too.
  12. Agree with Sniper, im still learning PHP, CSS, and JQuery, i am still creating site. Also I have moved get/setAccountData(not SQLite) to MySQL.
  13. It works for me, client-side.
  14. You have to edit race_client.lua
  15. Pay scripter = scripter low skilled. So better to learn scripting = good scripter.
  16. Do you mean PHP? If so then no, I can't find it.
  17. Yeah, I did used that GameQ, and doesnt work.
  18. viewtopic.php?f=148&t=38344&start=15#p418117
  19. What are you talking about? Text Width?
  20. Happy birthday Lil Toady!
  21. viewtopic.php?f=91&t=26541 To learn here: https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
  22. Better you use OnPlayerConnect event and cancelEvent. https://wiki.multitheftauto.com/wiki/OnPlayerConnect
×
×
  • Create New...