Jump to content

Baseplate

Members
  • Posts

    1,417
  • Joined

  • Last visited

Everything posted by Baseplate

  1. marker = createMarker(314.20001220703, -133.69999694824, 998.59997558594, "cylinder", 1, 0, 100, 125, 255) setElementInterior(marker, 7) addEventHandler ( "onClientMarkerHit", marker, function(hitElement) -- Do the shit you need here end )
  2. Baseplate

    i wonder

    function restart() restartResource(getResourceFromName("resourcename")) -- change resourcename end setTimer(restart, 180000, 0)
  3. if (not getPlayerTeam(getTeamFromName("criminal"))) then outputChatBox("You aren't a criminal", 0, 250, 0)
  4. wlh 3elmi 3elmek , 9allek zidou topics se3a w emba3ed n7otou mods
  5. LAWL!!!! LOLOLOLOL ROFLMAO! Great job mate
  6. Your websites aren't working, next time advertise for your hosting solution after you've done your website.
  7. Baseplate

    Need Help

    marker = createMarker(2079.9399414063, 1007.7588500977,10.8203125, "cylinder", 10, 255, 255, 255, 0) function createTire(hitElement) createObject (id, 2079.9399414063, 1007.7588500977,10.8203125, 90, 0, 0 ) -- change id to the id you wanna add end addEventHandler("onMarkerHit", marker, createTire) Check the comment, you have to change id at createObject
  8. Alright, thanks and I apologize cause it's just my PC became a total shit.
  9. local myMarker = createMarker(x,y,z,type,size,r,g,b) function createCar() car = createVehicle(ID,x,y,z) addEventHandler("onMarkerHit",myMarker,lol) end addEvent("someEvent",true) addEvent("someEvent",root,createCar) function lol(hitElement) if (getElementModel(hitElement) == 522) then destroyElement(car) end end matesta3melech local variable fi functions o5ra.
  10. I don't have MTA as my PC is totally fucked and doesn't meet reqruitements to run GTA SA
  11. I was browsing MTA Forums when I got this PM. Mostly he's an asslicker and looking for troubles. I liked the part telling me to GTFO of the forums when he is: I'm not going to say lots of shit except to go and get a life and to have some maturity lessons xoxo <3.
  12. I dunno, as everyone is using those functions on login and logout only made me a bit confused. Thanks mate addEventHandler("onPlayerWasted", root, function() if (account) then setAccountData(account, "save-wep0", getPedWeapon(source, 0)) setAccountData (account, "save-ammo0", getPedTotalAmmo (source, 0)) setAccountData(account, "save-wep1", getPedWeapon(source, 1)) setAccountData (account, "save-ammo1", getPedTotalAmmo (source, 1)) setAccountData(account, "save-wep2", getPedWeapon(source, 2)) setAccountData (account, "save-ammo2", getPedTotalAmmo (source, 2)) setAccountData(account, "save-wep3", getPedWeapon(source, 3)) setAccountData (account, "save-ammo3", getPedTotalAmmo (source, 3)) setAccountData(account, "save-wep4", getPedWeapon(source, 4)) setAccountData (account, "save-ammo4", getPedTotalAmmo (source, 4)) setAccountData(account, "save-wep5", getPedWeapon(source, 5)) setAccountData (account, "save-ammo5", getPedTotalAmmo (source, 5)) setAccountData(account, "save-wep6", getPedWeapon(source, 6)) setAccountData (account, "save-ammo6", getPedTotalAmmo (source, 6)) setAccountData(account, "save-wep7", getPedWeapon(source, 7)) setAccountData (account, "save-ammo7", getPedTotalAmmo (source, 7)) setAccountData(account, "save-wep8", getPedWeapon(source, -- s8) -->) setAccountData (account, "save-ammo8", getPedTotalAmmo (source, -- s8) -->) setAccountData(account, "save-wep9", getPedWeapon(source, 9)) setAccountData (account, "save-ammo9", getPedTotalAmmo (source, 9)) setAccountData(account, "save-wep10", getPedWeapon(source, 10)) setAccountData (account, "save-ammo10", getPedTotalAmmo (source, 10)) setAccountData(account, "save-wep11", getPedWeapon(source, 11)) setAccountData (account, "save-ammo11", getPedTotalAmmo (source, 11)) setAccountData(account, "save-wep12", getPedWeapon(source, 12)) setAccountData (account, "save-ammo12", getPedTotalAmmo (source, 12)) end end end ) addEventHandler("onPlayerSpawn", root, function() local account = getPlayerAccount(source) if not (isGuestAccount (getPlayerAccount (source))) then local wep1 = getAccountData(theCurrentAccount, "save-wep1") local ammo1 = getAccountData(theCurrentAccount, "save-ammo1") local wep2 = getAccountData(theCurrentAccount, "save-wep2") local ammo2 = getAccountData(theCurrentAccount, "save-ammo2") local wep3 = getAccountData(theCurrentAccount, "save-wep3") local ammo3 = getAccountData(theCurrentAccount, "save-ammo3") local wep4 = getAccountData(theCurrentAccount, "save-wep4") local ammo4 = getAccountData(theCurrentAccount, "save-ammo4") local wep5 = getAccountData(theCurrentAccount, "save-wep5") local ammo5 = getAccountData(theCurrentAccount, "save-ammo5") local wep6 = getAccountData(theCurrentAccount, "save-wep6") local ammo6 = getAccountData(theCurrentAccount, "save-ammo6") local wep7 = getAccountData(theCurrentAccount, "save-wep7") local ammo7 = getAccountData(theCurrentAccount, "save-ammo7") local wep8 = getAccountData(theCurrentAccount, "save-wep8") local ammo8 = getAccountData(theCurrentAccount, "save-ammo8") local wep9 = getAccountData(theCurrentAccount, "save-wep9") local ammo9 = getAccountData(theCurrentAccount, "save-ammo9") local wep10 = getAccountData(theCurrentAccount, "save-wep10") local ammo10 = getAccountData(theCurrentAccount, "save-ammo10") local wep11 = getAccountData(theCurrentAccount, "save-wep11") local ammo11 = getAccountData(theCurrentAccount, "save-ammo11") local wep12 = getAccountData(theCurrentAccount, "save-wep12") local ammo12 = getAccountData(theCurrentAccount, "save-ammo12") setElementData(source, "Occupation", occupation) spawnPlayer(source, x, y, z, interior, dimension) setElementHealth(source, health) setElementModel(source, skin) setPlayerTeam(source, getTeamFromName(team)) setPlayerMoney(source, money) setPedArmor(source, armor) setPlayerWantedLevel(source, wanted) giveWeapon(source, wep1, ammo1) giveWeapon(source, wep2, ammo2) giveWeapon(source, wep3, ammo3) giveWeapon(source, wep4, ammo4) giveWeapon(source, wep5, ammo5) giveWeapon(source, wep6, ammo6) giveWeapon(source, wep7, ammo7) giveWeapon(source, wep8, ammo8) giveWeapon(source, wep9, ammo9) giveWeapon(source, wep10, ammo10) giveWeapon(source, wep11, ammo11) giveWeapon(source, wep12, ammo12) end end ) Will this work?
  13. Is it possible to use setAccountData and getAccountData on player's death? if no, then how can I save weapons on player's death
  14. addCommandHandler("ovp", function() guiSetVisible(GUIEditor.window[1], true) showCursor(true) end ) On another note: if you want to come on skype I can help.
  15. fadeCamera lel vehicle?? setTimer ( fadeCamera, 2500, 1, true, 2.5)
  16. Already edited my post slightly before you post that.
  17. createMarker(unpack ( fireLocations [ math.random ( #dropoffs ) ] ), "cylinder", 1.5, 255, 0, 0) or function unpackPos() return unpack ( fireLocations [ math.random ( #dropoffs ) ] ) end local x, y, z=unpackPos() createMarker(x, y, z, "cylinder", 1.5, 255, 0, 0)
  18. unpack(math.random(#dropoffs))
  19. BUMP! still in need of help.
×
×
  • Create New...