Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. https://community.multitheftauto.com/index.php?p=resources&s=details&id=14257 uploaded mistakely, im the author
  2. Check the first post of it, you should get to know everything.
  3. https://wiki.multitheftauto.com/wiki/DbConnect You will need to use almost all functions on that page. @NeXuS™ lol you forgot to add the table
  4. try guiBringToFront on the combobox and see
  5. Job to help him, not to copy paste and write everything for him. The way you have to do this by making a colshape and using getElementsWithinColShape "vehicle" and then it s hould be done it is our duty to help him as long as he learns not blindly give codes all time
  6. Models are used in many cities combined, so it would be a risk. You could create a collision rectangle (createColRectangle) around LV and then if anyone enters just throw them out and not let them enter or you could use zones too getZoneName, getElementPosition
  7. [/lua]function resetKillingstreak (player) local killstreaks = getElementData( player, "killstreaks" ) if tonumber( killstreaks ) then if ( killstreaks >= 0 ) then --They have a killingstreak higher than 0 --We will want to reset the element data back to its default (that being false) setElementData ( player, "killstreaks", false ) end else return end end addEventHandler("onPlayerWasted", getRootElement(), resetKillingstreak)[/lua]
  8. This looks kinda weird, but it looks awesome. Just that I'm not used to it. Great job! (I never expected MTA:SA to use IPS, :$) keep it up! w_w
  9. It is not compiled, also $5 is a bit to expensive for such a simple simple script, maybe 3$
  10. you can't do that. You either remove the whole object from everywhere in SA. Also you could map such a base that it would make a colshape, and if you enter it, you will go out of it. Why would you want to remove LV? My bad, you can. I just realized how dumb I am.
  11. function SetJailTime() for theKey,thePlayer in ipairs(getElementsByType ( "player" )) do local acc = getPlayerAccount( thePlayer ) if not isGuestAccount( acc ) and tonumber( getAccountData(getPlayerAccount(thePlayer), "Jailtime") ) then local jailtime = getAccountData(getPlayerAccount(thePlayer), "Jailtime" ) if tonumber(jailtime) > 0 then setAccountData ( getPlayerAccount(thePlayer), "Jailtime", jailtime - 1 ) elseif tonumber(jailtime) == 0 then portoutjail(thePlayer) setAccountData(getPlayerAccount(targetplayer), "Jailtime", nil) end end end end setTimer ( SetJailTime, 60000, 0 )
  12. Are you alive in this world? Do you even know how to script? Don't you see his (if) statement, line 3? If it is set to something, it will go on. Just that you can't notice, don't help pls.
  13. Wow, but does this still show in top 7 while searching and sorting servers?
  14. I'm pretty sure he's talking about MTA. You're right, my bad. I did not read it properly.
  15. Anubhav

    Question

    You are triggering to server side. Just the source will be the localPlayer in this case because server side does for everyone, it syncs with all players. SO YOU will need to triggerClientSide to make it not sync with the other players, basically then it won't show to others.
  16. Anubhav

    Question

    No, you have to trigger it back to client side and like this: triggerClientEvent( source, "someEvent", source )
  17. Are you doing this for that 600 V.I.P hours? CIT is not a open source project, who in world told you that?
  18. Thanks for explaining , I always was confused of these tricks in some scripts.
  19. Anubhav

    Animation joke

    LMFAO! What we did is: http://imgur.com/a/BYp8u PRANK! EDIT: ASSLICKING TEAM, HAHAHAHAH http://imgur.com/a/35X5B This was done at AUR, join now. It's fun!
  20. That helped me a lot. Thanks for the effort. What about metatables? What's the use of them?
  21. [quote name=..&G:..] dbConnect( "sqlite", "file.db" ) Don't forget to create a .db file in the script. It will create a file automatically.
  22. fetchRemote the image. Take the data recieved in the call back function to client side (triggerClientEvent) and then use dxCreateTexture out of it. Then you can use it on dxDrawImage.
×
×
  • Create New...