Jump to content

Deepu

Members
  • Posts

    354
  • Joined

  • Last visited

Everything posted by Deepu

  1. function posRender () x, y, z = getElementPosition(localPlayer) vx, vy, vz = getElementPosition(veh) end addEventHandler("onClientRender", root, posRender) local veh = createVehicle(441, x+3, y, z+1) local mini = createWeapon("minigun", vx, vy, vz+2) function attaching () if not isElement(mini) then mini = createWeapon("minigun", vx, vy, vz + 2) veh = getPedOccupiedVehicle(localPlayer) else destroyElement(mini) end end addCommandHandler("attach", attaching) -- do /attach to make minigun or destroy it... function wepFire() if isElement(mini) then fireWeapon(mini) end end addCommandHandler("fire", wepFire)
  2. Thats easy, I'll make it if you want just kidding, its your work so u release it
  3. guys guys, he is not wanting a weapon, he is trying to make a mounted vehicle, example like a rhino or a hydra.. I hope you understood and for that he has to make a weapon, attach it to a vehicle and then use it.. and yeah he has to make it all both in server and in client side he has to trigger a lot of things if he needs to work with the position of the player or a ped... ike this x, y, z = getElementPosition(localPlayer) or something like that. and he has to render it if he is using it globally.. This should work for him.
  4. Currently, just I am working with it and MrBrutus said he will join me when he has time, I asked him for help so yea, it will be totally different, Coolest scripts will be installed, I just need help with ideas, suggestions, and database I suck at database lol
  5. Noooo ! do not setWeaponState to firing, that will keep it firing infinite times, even if you are innocent lol.. just use my code, it works perfect, create weapon, fireWeapon(attach to a command) then it should work remove the setWeaponState("firing")
  6. Well I am sorry, you see, I am still not fighting yet, and i never will fight, except at my house... I keep programming, mom comes and shouts at me and closes my laptop.. I hate that, I love programming, and when I make something I used to get offended if someone criticises me. I am sorry for that, I wont do that again I promise
  7. well no Noki... please dont think like that, my C/C++ game will not be like Halo 4 or something like that, to make something like that I have to build an engine first and thats the hardest part, anyway, its not advertising, its called when player's ping is high, and when player doesnt have internet.. he/she can just you know... play my game thru MTA
  8. alright @ castillo Sure, try it and if there is any bug or problem, feel free to tell it here
  9. I'll give the source code to others, I dont think anyone will join my server duh...
  10. Well Yeah Aeon's my own acc, but the thing is Castillo is hating me, and the whole community just hates me, exceppt JR10, ccw, and 2-3 guys, so I thought of starting a new account and living a new community life. but What happened is.. I wanted to Release this resource with Aeon account, but I was stupid and instead of Aeon gave Deepu and logged in, and posted, so i had to comment to make sure Aeon is not me.. Sorry guys, please forgive me, I won't fight here after, please do not hate me castillo and every1, I'll never fight again, promise.
  11. Look I'll show you an example code of how this works.. function attaching () if not isElement(mg) then mg = createWeapon(write the minigun things and all) veh = getPedOccupiedVehicle(localPlayer) attachElement(veh, position on the veh where u want to attach) else destroyElement(mg) end end addCommandHandler("attach", attaching) function wepFire () if isElement(mg) then fireWeapon(mg, or something like that) end end addCommandHandler("fire", wepFire)
  12. well, to me the code looks correct syntactically, means you have written the correct arguments and correct functions but depends what your logic was.. Anyways, try using setElementHealth() and use the vehicle's variable in the parantheses.
  13. Holidays coming soon wisam, thanks for suggesting, I am very serious about this, and this holidays gonna make this free gamemode, or should I make a server of myself? or should I give it to community?
  14. It's pathetic to give feedback in your own work. why insulting me like that? give a warning to yourself and show me the screenshots here.
  15. k, I'll fix it as soon as possible, but I am busy for 2 days... Thanks for helping and commenting tho, did u like the resource? I mean my logics and?
  16. can you tell me how I can make this resource better? should I make it fit in all resoulutions?
  17. well in this context, bridging means connecting. Like I mean like adding my game to MTA SA. example: in the MTA SA main menu, you see server browser and other buttons, so i meant like adding my game to that place but currently I only know to make single player games, bad at multiplayer thingies..
  18. well, I forgot to mention that... the community has some bugs. I can't login with my Deepu account... it says Invalid account or something like that. so I am not able to upload the resources to the community
  19. Hey guys, uhmm... I was planning to make a game with C/C++ (not the big and better ones) and then bridge it to mta sa.. Is that possible? Like create the game using openGL and then bridging it to MTA SA. I thought we will get more player base in MTA SA. (I mean the total).. So if it can be done then can you tell how I do it?
  20. hey guys I was just thinking about it and look, Is it useful in creating another survival based gamemode like Dayz? Is it needed in the community? If any such gamemode is required then what gamemode is needed? I can code it and give it for free? Comments welcome. Suggestion answers will be very much appreciated.
  21. you can use these functions for reducing offsets interpolateBetween getDistanceBetweenPoints3D -- uses pythagoras theorem. getCameraMatrix getElementPosition -- for both localPlayer and object and if you want all objects to do this, then loop it using... -- a new function.. function getElementsByModel (modelID) vehicles = getElementsByType("objects") for i=dakndakd dkasdnka end -- make something like that
  22. if (not wrong) then if (money ~= nil) and (tonumber(amount) <= money) then if (tonumber(amount) > 0) then local bankBalance = guiGridListGetItemText(accountList, selectedRow, 3) bankBalance = "$".. tostring( bankBalance + amount ) bankBalance is a string right? you have to first convert it to a number token, then you have to do the respective arithmetic operations. you cant do arithmetic operations with a string. So, try using tonumber( ) and try to convert the bankBalance to a number first.. If it still doesnt work then pls tell. Btw you can check if its a number.. using the same tonumber ()
  23. Alright, I'll upload screens, but did u download then started the resource and tried? I guess its a no... idk why, any way I'll add screens then I'll delete MTA. This is the last resource I made.
  24. Yeah Bonsai, I'll surely fix that thingy how is the resource btw? bad or TOOOOOOOOOOOOO BAD? I'd never say its good And 54 views on this topic and just one single reply? Why is many of them hating me? I didnt come here to fight.. I came here to give a free open source resource so everyone can play, and read the codes.. so they can edit it for their server if they want to. Not to show the anger on you guys... I hate this.. so pathetic.. Thanks Bonsai for replying, it helped me a lot.
×
×
  • Create New...