Jump to content

Al3grab

Members
  • Posts

    431
  • Joined

Everything posted by Al3grab

  1. Anti AFK [ Away From Keyboard ] For War Modes Hi, This is My Anti-AFK System For War Modes - BaseMode , it kills the Player if he didnt moved for 50 sec [ can be changed from settings ] and it kick the player if he was afk for 5 times [ can be changed from settings ] You Can Edit Settings From Admin Panel or meta.xml File . Settings To Edit : Time To Check Player State - in Seconds : Time To Check Player State if He Is AFK Or Not Enter The Number in Seconds. Times To Kick Player : Times To Kick Player After Being AFK . Number To Count : Number To Count Before Killing The Player. Message To Show On AFK : Message To Show to the Player if He is AFK. Credits goes to: - JR10 : Helped Me With Counting. - MTASA Fourm Members : For Helping Me. Community URL : https://community.multitheftauto.com/ind ... ls&id=3114 Download URL : https://community.multitheftauto.com/index.php?p= ... ource=3114 Enjoy!
  2. thanks , but its already works now =D ,thx to JR10
  3. You Are Smart ! Thanks , but ! , count should be like this "0" , so i edited it and now it works local n = 0 local count = ""..n.."" addEventHandler ( "onClientRender" , root , function() dxDrawText( count, 44, sh-450, sw, sh, tocolor ( 255, 0, 0, 255 ), 4, "default" ) end) setTimer ( function() n = n + 1 count = ""..n.."" end, 1000 , 50 )
  4. Hi , i want to make a counting by dxDrawText like : 1 2 3 4 5 , i made it using setTimer : my code : function Count() local sw, sh = guiGetScreenSize() function txt1 ( ) dxDrawText( "1", 44, sh-450, sw, sh, tocolor ( 255, 255, 0, 255 ), 4, "default" ) end function txt2() dxDrawText( "2", 44, sh-450, sw, sh, tocolor ( 255, 150, 0, 255 ), 4, "default" ) end function txt3() dxDrawText( "3", 44, sh-450, sw, sh, tocolor ( 255, 100, 0, 255 ), 4, "default" ) end function txt4() dxDrawText( "4", 44, sh-450, sw, sh, tocolor ( 255, 50, 0, 255 ), 4, "default" ) end function txt5() dxDrawText( "5", 44, sh-450, sw, sh, tocolor ( 255, 0, 0, 255 ), 4, "default" ) end addEventHandler("onClientRender",getRootElement(), txt1) setTimer(function() removeEventHandler("onClientRender",getRootElement(), txt1) addEventHandler("onClientRender",getRootElement(), txt2) end,1000,1,true) setTimer(function() removeEventHandler("onClientRender",getRootElement(), txt2) addEventHandler("onClientRender",getRootElement(), txt3) end,2000,1,true) setTimer(function() removeEventHandler("onClientRender",getRootElement(), txt3) addEventHandler("onClientRender",getRootElement(), txt4) end,3000,1,true) setTimer(function() removeEventHandler("onClientRender",getRootElement(), txt4) addEventHandler("onClientRender",getRootElement(), txt5) end,4000,1,true) setTimer(function() removeEventHandler("onClientRender",getRootElement(), txt5) end,5000,1,true) end it works fine but if i want to count much than 5 maybe 50 or 40 ! is there an easier way ?
  5. تفضل : wiki.multitheftauto.com/wiki/AR/مقدمه_في_البرمجه وحالياً أنا اقوم بتطويره ولم انتهي منه
  6. This Should Work ingang1 = createObject ( 980, 1588, -1637, 14, 0, 0, 0 ) ingangmarker = createMarker (1588, -1635, 12, "cylinder",2) teams = getTeamFromName("Police") function moveGate1 ( hitElement, matchingDimension ) if getElementType ( hitElement ) == "player" and ( getPlayerTeam ( hitElement ) == teams ) then moveObject ( ingang1, 3000,1598, -1637, 14 ) end end addEventHandler("onMarkerHit", ingangmarker, moveGate1) function moveGate1Back ( leaveElement, matchingDimension ) if getElementType ( leaveElement ) =="player" and ( getPlayerTeam ( leaveElement )== teams ) then moveObject ( ingang1, 3000, 1588, -1637, 14 ) end end addEventHandler ("onMarkerLeave", ingangmarker, moveGate1Back)
  7. hi , is there a function to call , to add a player to round ?
  8. =D , are you an English teacher ?
  9. ok , now from the whole post you just sow that word !
  10. - All Players Send | By Al3grab - Hello , this is the 2nd Release of the Script , its now more easy with GUI window [ check photos ] and the Command is : /sa - Opens the GUI Window [ Send All ] * added: - Easy GUI Window - Showing Your Name * How to ? - Download , Upload to server , run it ! - use Command /sa , the Window Will be opened - type your amount in the Edit box and if you want to show your name click on [ Show My Name ] checkbox , click Send to send Money or Fake To output Fake Message that admin has sent ! Community : https://community.multitheftauto.com/index.php?p= ... ls&id=2682 Download : https://community.multitheftauto.com/index.php?p= ... ource=2682 -- Credit For [ JR10 ] For Helping Me in The 1st Release Best Wishes
  11. ok , now i'll try to make an OpenID acc. brb EDIT: i made an OpenID account and registered in Wiki , thank you
  12. hi , i want to edit a page in the Wiki , wich is : Introduction to Scripting in Arabic Language .. i want to make it better .. here is the link : https://wiki.multitheftauto.com/wiki/AR/ ... 8%AC%D9%87 any idea about how to editing this ? thx =D
  13. use : --- Client Side addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()), function() bindKey ( "l", "down", lock) end )
  14. https://community.multitheftauto.com/ind ... ls&id=2973 stealer
  15. But seriously, how can you guiSetText something you didn't define? this: guiSetText ( playerSrLabel, "Your serial: " ..tostring(srs).. " " ,true,tab1) becomes: guiSetText ( playerSrLabel, "Your serial: " .."nil".. " " ,true,tab1) instead of: guiSetText ( playerSrLabel, "Your serial: " .."1hdfjsfdsfdsfdsfds".. " " ,true,tab1) because: local srs = getElementData ( getLocalPlayer(), "srs") --is defined after the text is set. It's probably the 3rd time I'm saying this and get ignored lol well , i think because the code he posted is mine , and he stole it
  16. --client function damageCheck(attacker, weapon) local playeraccount = getPlayerAccount ( source ) if ( getElementData(getLocalPlayer(),"carshow") == true ) then if(weapon == 5)then local x, y, z = getElementPosition(getLocalPlayer()) setElementPosition(getLocalPlayer(), x + 20, y + 50, z + 80) end end end addEventHandler( "onClientPlayerDamage", getLocalPlayer ( ), damageCheck ) --server addEventHandler("onPlayerLogin",root, function() local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount(playeraccount) then if ( getAccountData ( playeraccount, "carshow" ) == true ) then setElementData(source,"carshow",true) end end end )
  17. tab1 = guiCreateTab("Info",tabPanel) playerPingLabel = guiCreateLabel(8,165,320,18,"Your Ping:",false,tab1) guiLabelSetColor(playerPingLabel,255,255,0) playerIPLabel = guiCreateLabel(8,190,320,18,"Your IP: ",false,tab1) guiLabelSetColor(playerIPLabel,255,255,0) playerSrLabel = guiCreateLabel(8,211,320,18,"Your Serial: ",false,tab1) guiLabelSetColor(playerSrLabel,255,255,0) -------------------------------------------------------------------- guiSetText ( playerSrLabel, "Your serial: " ..tostring(srs).. " " ,true,tab1) guiSetText ( playerPingLabel, "Your Ping: " ..tostring(ping).. " " ,true,tab1) guiSetText ( playerIPLabel, "Your ip: " ..tostring(ips).. " " ,true,tab1) local ping = getElementData ( getLocalPlayer(), "ping") local ips = getElementData ( getLocalPlayer(), "ips") local srs = getElementData ( getLocalPlayer(), "srs") addEventHandler("onPlayerJoin",root, function() setElementData(source,"ping",getPlayerPing(source)) setElementData(source,"money",getPlayerMoney(source)) setElementData(source,"ips",getPlayerIP(source)) setElementData(source,"srs",getPlayerSerial(source)) end )
  18. function like this ... function() local pC= getPlayerCount() if ( pC >= 8 ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do givePlayerMoney ( player, tonumber ( 1000 ) ) end end
  19. -- i think it should be like this setAccountData(playerAccount, "dollars", cash -1) -- and cash well be cash = getPlayerMoney(source)
  20. hi , -- Client Side function moneyTab() exports.scoreboard:scoreboardAddColumn("Money") setElementData(getLocalPlayer(),"Money",tostring (getPlayerMoney(getLocalPlayer))) setTimer( function () setElementData(getLocalPlayer(),"Money",tonumber(getPlayerMoney(getLocalPlayer))) end ,5000,0) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), moneyTab) Money Updates each 5 sec ..
  21. .. وين نفلح اذا تبون كل شي جاهز وبالراحة !
  22. Al3grab

    Crash MTA 1.1

    idk. what is this mod , but try to remove it doesnt help. this has never happened in the previous mta versions, just 1.1 wait for coming updates
  23. Al3grab

    Crash MTA 1.1

    idk. what is this mod , but try to remove it
  24. Al3grab

    Crash MTA 1.1

    +1 I have many runtime errors as well. Very unplayable, i crash every 2 minutes or so but no codes pop up so that I may copy and paste it on to here. it just tells me i have a runtime error and closes my game is your GTA:SA game modfied ? , then install a fresh new one
×
×
  • Create New...