Jump to content

Perfect

Members
  • Posts

    563
  • Joined

  • Last visited

Everything posted by Perfect

  1. MTA, again and again, convincing and proving everyone, its not a just a GAME! but more than a GAME!! Great work there as usual. With this, they are even new possibilities which are certainly going to extend its long life even more. (Immortal ? maybe) Thanks MTA and its whole team for providing best gaming experience for free.
  2. I agree with you on people can do whatever they want with community resources as long as credit is given to real author. And the thing people hate the community resources is because of that (according to me), server's owner( who download more than 90% of resources from community seems to have no knowledge of scripting, thus making users to think, he/she is not hardworking, he/she can't run server and server will be shut down soon and there's no point in wasting time on it. Another thing is that when people see a server with community resources (> 90%), they think that they can also easily create such type of server with no hard effort. whereas people with non-community resources seems to be hard working and will try their best to keep the server running as they don't want to waste their hard work. Also, some popular servers also run SOME community resources but not MOST, thus making the server's owner(s) to seem somewhat hardworking and making them promising.
  3. It doesn't matter as long as majority supports it, (To me) insult is something which is said 'intentionally' or not to something/someone specifically or not by someone and the 2nd person, who got insulted often feel offended/angry. which is not (mostly?) happening in this case. It is a bit complex definition. You can try making a voting in this topic to see how many people support you and I am sure, if majority does, the MTA Team will change the ranks name. (btw,I am getting a feeling that this topic will soon be locked or deleted)
  4. Thanks, I fixed setPedCameraRotation and sendTableData but still same errors occur in debugscript. Debugscript:- WARNING: MTrigger\script_c.lua:15: Bad argument @ 'getElementPosition' [Expected elemant at argument 1, got nil] ERROR: MTrigger\script_c.lua:16: attempt to perform arithmetic on global 'posx' (a boolean value)
  5. It looks like you didn't read my scripts as i want position of ped not a player, so maybe localplayer will not work.
  6. Oh, sorry. that was a typo. still the same error/warning.
  7. @TAPL, thanks,It solved the problem. @WhoIAm,I already solved the problem with TAPL's solution but your solution may also work so thank you too. @Walid,I tried that but it is a bit complicated for me but thanks for replying. But now, i am in new problem. I made a simple script which gets table data from server side and use it in client side but it is not working It gives errors/warnings debuscript. scripts:- server: --tables Pos = { {-2.73642, 24.87629, 114.14844}, {12.32154, 51.76832, 14.14844}, {-13.67212, -15.60738, 14.14844} } myPed = {} for i=1,10 do myPed[i] = createPed(0,Pos[i][1],Pos[i][2],Pos[i][3]) setElementHealth(myPed[i], 50) end --trigger function triggerIt() for i=1,10 do triggerClientEvent("sendTableData", resourceRoot, myPed[i]) end end function delayStart() addEventHandler("onResourceStart", resourceRoot, triggerIt) end addEventHandler("onResourceStart", resourceRoot, function() setTimer(delayStart, 10000, 1) end ) client: addEvent("sendTableData", true) function movePedForward(ped) local players = getElementsByType('player') local vehicles = getElementByType('vehicle') for pi,p in pairs(players) do setElementCollidableWith(ped, p, false) end for vi,v in pairs(vehicles) do setElementCollidableWith(ped, v, false) end end function pedRender(ped) posx,posy = getElementPosition(ped) setPedCameraRotation(ped, (posx+posy+180)) end --Event Handlers setTimer (function() addEventHandler("onClientRender", root, pedRender) end, 15000, 1 ) addEventHandler("sendTableData", root, pedRender) addEventHandler("sendTableData", root, movePedForward) debugscript: WARNING: MTrigger\script_c.lua:15: Bad argument @ 'getElementPosition' [Expected elemant at argument 1, got nil] ERROR:MTrigger\script_c.lua:16: attempt to perform arithmetic on global 'posx' (a boolean value) Can someone please help me in solving this problem ?
  8. You mean, i need to do something like this ? scripts:- server: addEvent("sendMessageAgain", true) myMessages = { "Message 1", "Message 2", "Message 3" } function sendMessageBack() for i=1,3 do triggerClientEvent(resourceRoot, "sendMessage", resourceRoot, myMessages[i]) end outputChatBox("Resource started") end addEventHandler("sendMessageAgain", resourceRoot, sendMessageBack) client: addEvent("sendMessage", true) function myMessage(message) outputChatBox(message) end addEventHandler("sendMessage",resourceRoot,myMessage) function startIt() triggerServerEvent("sendMessageAgain", resourceRoot) end addEventHandler("onClientResourceStart", resourceRoot, startIt)
  9. Oh, thanks for info. If i am right, then it can be fix with setTimer() but still there are any other ways to solve it ?
  10. Hello Everyone, Since few hours i am trying to run this simple script which uses 'trigerClientEvent'. scripts:- server: myMessages = { "Message 1", "Message 2", "Message 3" } function startIt() for i=1,3 do triggerClientEvent(resourceRoot, "sendMessage", root, myMessages[i]) --I tried replacing 'root' with resourceRoot,source,v(looping getElementsByType('player') end outputChatBox("Resource started") end addEventHandler("onResourceStart", resourceRoot, startIt) client: addEvent("sendMessage", true) function myMessage(message) outputChatBox(message) end addEventHandler("sendMessage",resourceRoot,myMessage) The problem is when i start the resource nothing happened except 'Resource Started' message was showed and there were/are no errors/warnings in debugscript 3. I tried removing 1st argument from 'triggerClientEvent' but that causes an error: Event is not added client side. Hope you guys can help me in solving this.
  11. The message 'You stepped on a Mine!' is showing ? Try this(I missed an 'end' in my last post):- function Object ( name ) setElementCollisionsEnabled(createObject ( 1211, -1467.2827, -1287.6701, 99.1, 0, 0, 0 ), false) -- this creates an object colShape = createColSphere ( -1746, -1743, 28, 3) end addEventHandler ( "onResourceStart", resourceRoot, Object ) function Mine(thePlayer, matchingDimension) if getElementType ( thePlayer ) == "player" then if source == colShape then local pX, pY, pZ = getElementPosition ( thePlayer ) -- get the player's position createExplosion ( pX, pY, pZ, 6, thePlayer ) -- and create an explosion there local theHealth = getElementHealth(thePlayer); if ( theHealth <= 100 ) then setElementHealth(thePlayer, 1); outputChatBox("You stepped on a Mine!",thePlayer,255,109 ,109 ) -- outputs a chatbox else killPed(thePlayer) outputChatBox("Looks like you have 100+ health!",thePlayer,255,109 ,109 ) -- outputs a chatbox end end end end
  12. That is code(function,variable, whatever you call it) in my script which i think is not necessary so i just replace it with '...' instead. ----------Edit---------- The problem is solved. Just have to put 'myPed' before the render event.
  13. Hello Everyone, after a long time. I just found my old script somewhere deep inside my computer. I am trying to modify it such that it can create as many peds as i want. but the problem is when i run it, my game almost froze and there are no errors/warnings debugscript. Script: --Table Pos = { {-1375.30627, -234.72827, 14.14844}, {-1375.30627, -234.72827, 14.14844}, {-1375.30627, -234.72827, 14.14844}, {-1375.30627, -234.72827, 14.14844}, ... } ... --Event addEventHandler("onClientRender", root, function() ... for i=...,... do local _i = i*(math.pi/180) for Ri=1,10 do --This thing is maybe calling on every frame, How to fix it ? local myPed = createPed(23,Pos[Ri][1],Pos[Ri][2],Pos[Ri][3]) setPedCameraRotation(myPed, ....+Pos[Ri][1], ...+Pos[Ri][2],Pos[Ri][1], Pos[Ri][2])) end end end) Can someone please help me ?
  14. function Object ( name ) setElementCollisionsEnabled(createObject ( 1211, -1467.2827, -1287.6701, 99.1, 0, 0, 0 ), false) -- this creates an object colShape = createColSphere ( -1746, -1743, 28, 3) end addEventHandler ( "onResourceStart", resourceRoot, Object ) function Mine(thePlayer, matchingDimension) if getElementType ( thePlayer ) == "player" then if source == colShape then local pX, pY, pZ = getElementPosition ( thePlayer ) -- get the player's position createExplosion ( pX, pY, pZ, 6, thePlayer ) -- and create an explosion there local theHealth = getElementHealth(thePlayer); if ( theHealth <= 100 ) then setElementHealth(thePlayer, theHealth - 70); outputChatBox("You stepped on a Mine!",thePlayer,255,109 ,109 ) -- outputs a chatbox end end end *lua tag added*
  15. Heres Mine:- Long time back, if i am right, it was summer holidays in 2011 and i have brought a new CD of GTA VC, as i was installing the game from cd, i notice there was some other installer named "MTA vc" or something. And i was curious and after searching a bit i found this site and came to know that MTA vc has came to next stage known as MTA sa. at first i didn't understand any thing (Yeah, i was new to gta series and to be honest, overall gaming things) and leave it and after a week or so, i install gta and then mta. Mta was my first mmo game and one of my favorites too.
  16. Everybody have their own perspective/experience. Yeah, they are some scammers, lazies and liars out there but still many are not. They are script selling businesses, most of those are going fine and thus, you can trust someone in mta for sure. Take a month or 2, but don't forgot to post it!
  17. Thats Awesome! Good work you did there!
  18. No need to make it more complex as some users are still struggling on using the tag [lua] and also as Miki wrote, users can specify which code it is above the [lua] code, leave it as it is.
  19. Or MTA can modify Its Ban System itself. Though i don't think checking(spying) on the server player list can be a huge issue.
  20. And then MTA update appears, Good job MTA! Keep going!
  21. MTA come with kill messages preloaded but if you need SA-MP kill messages in mta then you can find it here:- https://community.multitheftauto.com/in ... ls&id=1926
  22. Hello Everybody, After all those years of MTA:SA, i have experienced so many great things as well as bad but mostly good. I just wanna share my history and epic moments with you guys. You guys can also post your MTA thingies on here like how you got here, funny moment (with screenshot/video or not), How was your journy and anything related to MTA:SA which you feel you need to share! (I will soon post mine)
  23. MTA has really came so much further and still it is progressing, Thanks MTA Team(Contributors included) for it. Hope this year will be better than the previous ones (But still it can't beat those freaking amazing memories!) Wish a very happy new year to the awesome MTA crew and its community!
  24. Haha, Happy new year to you and everybody else!
×
×
  • Create New...