Jump to content

iMr.3a[Z]eF

Members
  • Posts

    862
  • Joined

  • Last visited

Everything posted by iMr.3a[Z]eF

  1. Always check the community... https://community.multitheftauto.com/in ... ls&id=6400
  2. iMr.3a[Z]eF

    Question

    Did you did what 3ashq alshrq told you in description?
  3. addEventHandler ("onVehicleEnter", root, function ( ) local r2,g2,b2 = getVehicleColor ( source ) if r2,g2,b2 ~= 255, 255, 255 then setVehicleColor ( source, 255 ,255 ,255 ) end end )
  4. I'm not sure this will works, try it. function drawWindow() gui = {} gui["_root"] = guiCreateWindow(left, top, windowWidth, windowHeight, "Login/Register", false) gui["tabWidget"] = guiCreateTabPanel(0, 20, 251, 181, false, gui["_root"]) gui["tab_2"] = guiCreateTab("Register", gui["tabWidget"]) gui["registerUsernameEdit"] = guiCreateEdit(110, 10, 113, 20, "", false, gui["tab_2"]) guiEditSetMaxLength(gui["registerUsernameEdit"], 32767) gui["registerPasswordEdit"] = guiCreateEdit(110, 40, 113, 20, "", false, gui["tab_2"]) guiEditSetMaxLength(gui["registerPasswordEdit"], 32767) gui["registerPasswordEditRepeat"] = guiCreateEdit(110, 70, 113, 20, "", false, gui["tab_2"]) guiEditSetMaxLength(gui["lineEdit"], 32767) gui["registerButton"] = guiCreateButton(52,105, 131, 23, "Register", false, gui["tab_2"]) end addEventHandler("onClientResourceStart",getRootElement(),drawWindow) addEventHandler("onClientGuiClick", gui["registerButton"], function on_registerButton_clicked() username = guiGetText(gui["registerUsernameEdit"]) pw = guiGetText(gui["registerPasswordEdit"]) pw2 = guiGetText(gui["registerPasswordEditRepeat"]) outputChatBox(username) outputChatBox(pw) outputChatBox(pw2) end )
  5. Why not using this function getRealTime
  6. I think you have to merge the EXP system with Zombiegamemode
  7. What the event you used for this function?
  8. OK, after fixing that, what is output?
  9. So, why not use a script from the community?
  10. That's impossible, why not using onPlayerLogin Any player will logged he will addEventHandler("onPlayerLogin", root, function() spawnPlayer(source, x, y, z) end ) Replace: x, y, z with the grove position.
  11. I really don't know how but you can do this: hospitals = { [1] = 113,43294, 134,23849, 124.532, [2] = 123.324523, 3256.136373, 246.234265 } function autoRespawn ( ) if isPlayerDead(source) then spawnPlayer(source, math.random([1],[2])) end end addEventHandler( "onPlayerWasted", getRootElement(), autoRespawn) This code will spawn the player when he wasted to random hospitals, the position is random Change them to the hospital's position, and if you want to add one or tow more hospitals, tell me i'll show you how.
  12. Write in the console debugscript 3, and tell us what is it output.
  13. You mean spawn the player when he wasted to the nearest Hospital
  14. spawnPlayer "onPlayerWasted"
  15. function car ( ) local vehicle = getElementType( "vehicle") local r, g, b = 255, 255, 255 if not getVehicleColor ( vehicle ) == r, g, b then setVehicleColor ( vehicle, 255 ,255 ,255 ) end end addEventHandler ("onClientResourceStart", resourceRoot, car )
  16. https://community.multitheftauto.com/in ... ls&id=5832
  17. That because you attached them, try to remove all attachElement.
  18. No errors in debugscript?
×
×
  • Create New...