Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. Because of one mistake, It's nonsense !! I don't think that what he meant ..
  2. May i ask why ?
  3. Edit : Ok, Let him learn
  4. Not Tested ! function draw ( ) dxDrawText ( tostring(loss), 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) end addEventHandler ( 'onClientPlayerDamage', root, function ( attacker, weapon, _, loss ) if attacker and attacker ~= source then addEventHandler ( 'onClientRender', root, draw ); messageTimer = setTimer ( removeEventHandler, 5000, 1, 'onClientRender', draw ); end end )
  5. dx functions requires onClientRender event so they work ..
  6. PaiN^

    Need help

    No one in this forum will help you to decompile scripts ..
  7. local restriction = {} function fck ( player, cmd ) accountname = getAccountName ( getPlayerAccount ( player ) ); if not isObjectInACLGroup ( 'user.' .. accountname, aclGetGroup ( 'vip' ) ) then return end if not restriction[player] then restriction[player] = {} end if not restriction[player][cmd] then outputChatBox ( '#FFFFFF'.. getPlayerName(player) ..'#5DACD1 says: F*ck You! ', root, 255, 255, 255, true ); restriction[player][cmd] = true setTimer ( function ( ) restriction[player][cmd] = false end, 5000, 1 ); else outputChatBox ( '#FF0000[Commands]: You must wait #FFFFFF5 seconds#FF0000 to write this command again.', player, 255, 255, 255, true ); end end addCommandHandler( 'fu', fck );
  8. Show us what you have done ..
  9. function drawText() -- A function to draw the text we want dxDrawText("Start", 30, 100, 500, 306, tocolor(255, 255, 255, 255), 1.5, "bankgothic", "left", "top", _, _, _, true ); end addEventHandler("onClientRender",root,drawText);
  10. You're welcome
  11. [lua]You can see the settings in the admin panel in game ..
  12. Yep = صح = يب
  13. createMarker 'onMarkerHit' setElementPosition or spawnPlayer
  14. In the game folder, Go to : Multi Theft Auto San Andres\server\MTA server Double click on MTA Server and your local server will start, And you can set the server name and max players and password ( if you want ) etc.. from : Multi Theft Auto San Andres\server\mods\dethmatch\mtaserver.conf open it with Notepad or Notepad++, And modify it as you like ..
  15. No, There isn't ..
  16. قصدك الجنوط ؟
  17. You are using triggerServerEvent in the server file + Mr.Pres[T]ege's way is much easier and better ..
  18. guiCreateStaticImage
  19. Client Side scripts are dose not start until all files are downloaded in the client's PC, Try To make a trigger from the server with the event onPlayerJoin to draw that text, And then use the event onClientResourceStart to remove the text ones all files are downloaded on the clients PC ... @Sasuke : You should use resourceRoot with the events onResourceStart & onClientResourceStart
  20. What are you trying to do ..?
  21. Not sure : CountSlap = 0 addCommandHandler("slap", function ( plr ) if CountSlap == 0 then setElementHealth ( plr, getElementHealth(plr) - 90 ); CountSlap = CountSlap - 90 outputChatBox("True"); else outputChatBox("False"); end end )
  22. ,, الله يعافيكـ
  23. !! دحين كل ذا النقاش اللي نتناقشه وما تعلم شي
  24. إنت شقلبت الموضوع تقريبا get > معناها أخذ set > معناها وضع أو عين أو حدد setElementData > نستخدمها لمن يلمس الماركر عشان نحدد إنه لمس الماركر getElementData >او لآ setElementData برضوا نستخدمها لمن يلمس الماركر بس عشان نشوف هل هو لامس الماركر من أول, يعني هل هو محدد بـ + يميدك تسمي الداتا أي شي من ارسكـ
×
×
  • Create New...