Legend<3

Members
  • Content count

    84
  • Joined

  • Last visited

Community Reputation

6 Neutral

3 Followers

About Legend<3

  • Rank
    Transformer
  • Birthday January 7

Details

  • Gang
    TN STAFF
  • Location
    Tunisia
  • Occupation
    TN Zombie Infection Server
  • Interests
    mtasa://145.239.73.189:22003
  1. [QUESTION] Download Resources.

    Well, I Don't know if this the right section but anyway ... I'm trying to make Client Download some resources before The others .. i mean Download Shops.zip before anyone else . there is any idea how to do ? i heared function or smth. 'DownloadPropreites' but i don't find nothing in Wiki ! IF THERE IS NO SOLUTION .. How Can I make player ( New ) when he join ... Spawn and above of him there is marker ( to buy weapons ) anyway look when i delete files and join the game again to download etc .. spawn .. give weapons .. everything is okey .. but markers not found .. ( is acceptable to be in MAP ? included in MAP FILE )
  2. dxDrawText

    Did not work ( the both of your codes but i fix it ) markers = { {1177.26, -1324.92, 14.06 }, --Hospital {2029.25, -1419.17, 16.99 }, -- Hospital {-320.21, 1055.96, 20 }, --Hospital {-2654,632,14.4 }, --Hospital {-2644.37, 633.05, 14.45 }, --Hospital {-2201.14, -2292.66, 30.63 }, --Hospital {-1514.47, 2527.25, 55.74 } --Hospital } for i, k in pairs(markers) do HospitalHeal = createMarker(k[1], k[2], k[3],"cylinder", 2, 255, 255, 0,250) end
  3. dxDrawText

    i don't know about that .. but read this maybe you will understand what i mean ... --#Client --#i found this in community local alpha = 0 local r, g, b = 255, 255, 255 local size = 1.5 local typem = "cylinder" local posx, posy, posz = 1976.0625, -1251.630859375, 22.8203125 local entradaB = createMarker (posx, posy, posz, typem, size, r, g, b, alpha) addEventHandler( "onClientRender", root, function ( ) local x, y, z = getElementPosition( entradaB ) local Mx, My, Mz = getCameraMatrix( ) if ( getDistanceBetweenPoints3D( x, y, z, Mx, My, Mz ) <= 30 ) then local WorldPositionX, WorldPositionY = getScreenFromWorldPosition( x, y, z +1, 0.07 ) if ( WorldPositionX and WorldPositionY ) then dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX - 1, WorldPositionY - 1, WorldPositionX - 1, WorldPositionY - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX + 1, WorldPositionY - 1, WorldPositionX + 1, WorldPositionY - 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX - 1, WorldPositionY + 1, WorldPositionX - 1, WorldPositionY + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX + 1, WorldPositionY + 1, WorldPositionX + 1, WorldPositionY + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("Entrada\nBase S.W.A.T.", WorldPositionX, WorldPositionY, WorldPositionX, WorldPositionY, tocolor(255, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end end end ) This will create something like this .. So .. i'm trying to put the dx Text in the table of markers ... damn i have bad english sorry
  4. dxDrawText

    So .. i'm trying to make table wich is create markers .. and put a description in the top of it .. like this #CLIENT SIDE markers = createMarker{ {1187,-1313,-13.5,"cylinder", 2, 0, 255, 255, 0}, --Hospital {2035,-1429,16.9,"cylinder", 2, 0, 255, 255, 0}, -- Hospital {-2192,-2291,30.6,"cylinder", 2, 0, 255, 255, 0}, --Hospital {-2654,632,14.4,"cylinder", 2, 0, 255, 255, 0}, --Hospital {-1505,2533,55.68,"cylinder", 2, 0, 255, 255, 0}, --Hospital {-326,1063,19.7,"cylinder", 2, 0, 255, 255, 0}, --Hospital {1608,1838,10.8,"cylinder", 2, 0, 255, 255, 0} --Hospital } addEventHandler ( "onClientRender", root, function ( ) local pX, pY, pZ = getElementPosition ( localPlayer ) local pedX, pedY, pedZ = getElementPosition ( markers ) local distance = getDistanceBetweenPoints3D ( pX, pY, pZ, pedX, pedY, pedZ ) if ( distance <= 12 ) then local x, y = getScreenFromWorldPosition ( pedX, pedY, pedZ ) if ( x and y ) then dxDrawText( "Free Vehicle", x, y+1.5, _, _, tocolor( 0, 255, 255, 255 ), 1, "default-bold-small", "center", "center" ) end end end ) AnyHelp ? by the way there is another script create markers .. this only create them with 0 alpha . Thanks #EDIT: Line 13 local pedX, pedY, pedZ = getElementPosition [ #markers ] But nothing
  5. BotWasted

    Thank you a lot...
  6. BotWasted

    Hello, so i'm trying to make Bot kills set +1 only if skin is 107 or 108 addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function ( killer ) addPlayerBossKills ( killer ) end ) So .. How i can do that ??! i have something maybe can help --# THIS IS NOT TESTED addEvent ( "onBotWasted", true ) addEventHandler ( "onBotWasted", root, function ( killer ) -- local id = getElementModel ( --[[ i don't know what bot is exactly]] ) local id = getElementModel ( Bot ) if id == 107 or id == 108 then addPlayerBossKills ( killer ) end end ) #EDIT .. change id to 107 & 108
  7. Blips

    Thanks Works <3
  8. Blips

    Hello, I'm trying to Create Blip Table .. Can Someone Help me ? ! #Server Side Hospital = { {1177.26, -1324.92, 14.06}, {2029.25, -1419.17, 16.99}, {1607.06, 1825.09, 10.82}, {-320.21, 1055.96, 20, -302.87}, {-2644.37, 633.05, 14.45}, {-2201.14, -2292.66, 30.63}, {-1514.47, 2527.25, 55.74} } HospitalBlips = createBlipAttachedTo ( [ #Hospital ], 22 ) setBlipVisibleDistance (HospitalBlips,200) Help
  9. Dx-Timer

    Thanks You Helped me a lot <3
  10. Dx-Timer

    This is Awsome .. Actually i used only Client side .. and change line 24 from minutes to 20 in server side i used only triggerClientEvent(getRootElement(), "createBagTimer", getRootElement(), minutes) Thank You A lot Bro <3 -- SOLVED
  11. Dx-Timer

    Thanks .. that did not work actually .. Thanks <3 .. i noticed that .. maybe triggerServerEvent will solv that .. or two timers ... one to start next event ( will be in server side . ) the other to start DX timer .. ------- *
  12. Dx-Timer

    Thanks .. that was helpful .. the timer should be in Client Side ... Because only Client side accept DX functions .. i will give you an example ( photo ) Thanks <3
  13. Dx-Timer

    Hello .. So i'm trying to add timer .. dx timer .. it's suppost to be like this #Server Side. addEvent("onBotWasted",true) addEventHandler("onBotWasted",getRootElement(), function (killer) if (source == nemesilv) then destroyElement(BlipNemesislv) startCase = setTimer (createBag, (60*1000*20), 1 ) -- startdxtimer = ( i don't know what suppost to be exactly ... but it's will be triggleevent ( dx in client side always ) end end) #Client Side. --i have no idea .. )= Help please !! --it should be 20Min counting down .. Sorry but i'm so bad at Dx and specially timer
  14. how to block vehcile?

    is better if he need to remove ak .. search for line and add -- so the line skiped .. ( for no copy and that long .. idk x'D is just a suggestion ) function forbeed( _,aMyWeapon ) if ( aMyWeapon == 38 or aMyWeapon == 35 ) then toggleControl( source,'fire',false ) toggleControl( source,'aim_weapon',false ) outputChatBox ("#FF0000You Cannot Use This Weapon!",source, 255, 255, 255, true ) else toggleControl( source,'fire',true ) toggleControl( source,'aim_weapon',true ) end end addEventHandler( "onPlayerWeaponSwitch",root,forbeed) Use TESTED and WORK FINE .. just remove or remplace the old one ! @sami2277
  15. RAM

    :~# ps auxf USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 2 0.0 0.0 0 0 ? S Jun29 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S Jun29 0:05 \_ [ksoftirqd/ root 5 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [kworker/0: root 6 0.0 0.0 0 0 ? S Jun29 0:06 \_ [kworker/u2 root 7 0.0 0.0 0 0 ? S Jun29 2:13 \_ [rcu_sched] root 8 0.0 0.0 0 0 ? S Jun29 2:45 \_ [rcuos/0] root 9 0.0 0.0 0 0 ? S Jun29 0:00 \_ [rcu_bh] root 10 0.0 0.0 0 0 ? S Jun29 0:00 \_ [rcuob/0] root 11 0.0 0.0 0 0 ? S Jun29 0:00 \_ [migration/ root 12 0.0 0.0 0 0 ? S Jun29 0:02 \_ [watchdog/0 root 13 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [khelper] root 14 0.0 0.0 0 0 ? S Jun29 0:00 \_ [kdevtmpfs] root 15 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [netns] root 16 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [writeback] root 17 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [kintegrity root 18 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [bioset] root 20 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [kblockd] root 21 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [ata_sff] root 22 0.0 0.0 0 0 ? S Jun29 0:00 \_ [khubd] root 23 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [md] root 24 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [devfreq_wq root 25 0.0 0.0 0 0 ? S Jun29 2:31 \_ [kworker/0: root 27 0.0 0.0 0 0 ? S Jun29 0:00 \_ [khungtaskd root 28 0.0 0.0 0 0 ? S Jun29 0:01 \_ [kswapd0] root 29 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [vmstat] root 30 0.0 0.0 0 0 ? SN Jun29 0:00 \_ [ksmd] root 31 0.0 0.0 0 0 ? SN Jun29 0:05 \_ [khugepaged root 32 0.0 0.0 0 0 ? S Jun29 0:00 \_ [fsnotify_m root 33 0.0 0.0 0 0 ? S Jun29 0:00 \_ [ecryptfs-k root 34 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [crypto] root 46 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [kthrotld] root 48 0.0 0.0 0 0 ? S Jun29 0:48 \_ [vballoon] root 49 0.0 0.0 0 0 ? S Jun29 0:00 \_ [scsi_eh_0] root 50 0.0 0.0 0 0 ? S Jun29 0:00 \_ [scsi_eh_1] root 71 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [deferwq] root 72 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [charger_ma root 114 0.0 0.0 0 0 ? S Jun29 0:00 \_ [scsi_eh_2] root 115 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [kpsmoused] root 116 0.0 0.0 0 0 ? S Jun29 0:00 \_ [kworker/0: root 185 0.0 0.0 0 0 ? S Jun29 1:06 \_ [jbd2/sda1- root 186 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [ext4-rsv-c root 440 0.0 0.0 0 0 ? S< Jun29 1:06 \_ [kworker/u3 root 549 0.0 0.0 0 0 ? S< Jun29 0:00 \_ [kvm-irqfd- root 2009 0.0 0.0 0 0 ? S Jun29 0:00 \_ [kauditd] root 10000 0.0 0.0 0 0 ? S Jun30 0:02 \_ [kworker/u2 root 16047 0.0 0.0 0 0 ? S< Jul04 0:42 \_ [kworker/u3 root 1 0.0 0.1 35928 3212 ? Ss Jun29 0:03 /sbin/init root 398 0.0 0.0 21532 584 ? S Jun29 0:00 upstart-udev-br root 403 0.0 0.0 52384 1784 ? Ss Jun29 0:00 /lib/systemd/sy root 538 0.0 0.0 17316 616 ? S Jun29 0:00 upstart-socket- root 705 0.0 0.1 12284 2884 ? Ss Jun29 0:00 dhclient -1 -v message+ 890 0.0 0.1 43848 3772 ? Ss Jun29 0:18 dbus-daemon --s root 968 0.0 0.1 336504 3044 ? Ssl Jun29 0:00 /usr/sbin/Modem root 990 0.0 0.0 45504 1808 ? Ss Jun29 0:01 /lib/systemd/sy syslog 1016 0.0 0.4 258092 8612 ? Ssl Jun29 0:04 rsyslogd root 1027 0.0 0.2 346940 4196 ? Ssl Jun29 0:16 NetworkManager root 1038 0.0 0.3 286056 7356 ? Sl Jun29 0:45 /usr/lib/policy avahi 1052 0.0 0.0 34400 1460 ? S Jun29 0:00 avahi-daemon: r avahi 1059 0.0 0.0 34276 400 ? S Jun29 0:00 \_ avahi-daemo root 1147 0.0 0.0 17464 836 ? S Jun29 0:00 upstart-file-br root 1276 0.0 0.1 77416 2632 ? Ss Jun29 0:00 /usr/sbin/cups- root 1455 0.0 0.0 17076 924 tty4 Ss+ Jun29 0:00 /sbin/getty -8 root 1460 0.0 0.0 17076 928 tty5 Ss+ Jun29 0:00 /sbin/getty -8 root 1473 0.0 0.0 17076 920 tty2 Ss+ Jun29 0:00 /sbin/getty -8 root 1474 0.0 0.0 17076 920 tty3 Ss+ Jun29 0:00 /sbin/getty -8 root 1476 0.0 0.0 26760 1000 ? Ss Jun29 0:00 kdm root 1569 0.0 2.9 237988 59988 tty7 Ss+ Jun29 4:41 \_ /usr/bin/X root 1781 0.0 0.1 86020 2128 ? S Jun29 0:00 \_ -:0 root 9576 0.0 0.0 15020 704 ? Ss Jun30 0:00 \_ /usr/bi root 9723 0.0 0.0 12680 316 ? Ss Jun30 0:02 \_ /us root 9727 0.0 0.0 6500 736 ? S Jun30 0:00 \_ /bi root 10062 0.0 0.0 6388 348 ? S Jun30 0:00 \_ root 1478 0.0 0.0 17076 920 tty6 Ss+ Jun29 0:00 /sbin/getty -8 root 1556 0.0 0.0 6424 592 ? Ss Jun29 0:00 acpid -c /etc/a root 1558 0.0 0.0 25708 952 ? Ss Jun29 0:01 cron daemon 1559 0.0 0.0 21192 160 ? Ss Jun29 0:00 atd whoopsie 1581 0.0 0.1 364776 3784 ? Ssl Jun29 0:00 whoopsie kernoops 1654 0.0 0.0 39200 972 ? Ss Jun29 0:04 /usr/sbin/kerne root 1688 0.0 0.0 63436 1916 ? Ss Jun29 0:04 /usr/sbin/sshd root 30871 0.0 0.2 113916 4500 ? Ss 02:09 0:03 \_ sshd: root@ root 30979 0.0 0.1 25296 3932 pts/3 Ss 02:10 0:00 | \_ -bash root 18594 0.0 0.0 21140 1420 pts/3 R+ 03:21 0:00 | \_ ps root 5447 0.0 0.2 114064 4488 ? Ss 02:35 0:00 \_ sshd: root@ root 5528 0.0 0.0 15016 904 ? Ss 02:35 0:00 | \_ /usr/li root 18478 0.0 0.1 112700 3860 ? Ss 03:20 0:00 \_ sshd: unkno sshd 18498 0.0 0.0 64860 1528 ? S 03:21 0:00 | \_ sshd: u root 18497 0.0 0.1 64780 3076 ? Ss 03:21 0:00 \_ sshd: [acce sshd 18499 0.0 0.0 64780 1368 ? S 03:21 0:00 \_ sshd: [ root 1702 0.0 0.6 55444 12048 ? S Jun29 3:13 /usr/bin/perl / root 1748 0.0 0.0 17076 920 tty1 Ss+ Jun29 0:00 /sbin/getty -8 root 1754 0.0 0.0 14840 844 ttyS0 Ss+ Jun29 0:00 /sbin/getty -L root 2011 0.0 0.1 595224 3860 ? Sl Jun29 0:07 /usr/sbin/conso root 9730 0.0 0.0 26492 584 ? S Jun30 0:00 /usr/bin/dbus-l root 9731 0.0 0.0 41692 1692 ? Ss Jun30 0:48 //bin/dbus-daem root 9830 0.0 0.1 373196 3792 ? Sl Jun30 0:01 /usr/lib/udisks root 9863 0.0 0.0 6252 88 ? S Jun30 0:00 /usr/lib/kde4/l root 9864 0.0 0.7 371272 14480 ? Ss Jun30 0:00 kdeinit4: kdein root 9865 0.0 0.5 374824 10276 ? S Jun30 0:06 \_ kdeinit4: k root 10063 0.0 1.0 547460 20336 ? Sl Jun30 0:17 \_ kdeinit4: k root 3836 0.0 0.6 200472 13724 ? S Jul02 0:00 \_ /usr/lib/kd root 9867 0.0 2.8 1236876 57028 ? Sl Jun30 1:04 kdeinit4: kded4 root 9880 0.0 0.7 288752 15340 ? S Jun30 0:00 /usr/bin/kgloba root 9919 0.0 1.2 994552 25776 ? Sl Jun30 0:00 /usr/bin/knotif root 9936 0.0 0.1 241396 3572 ? Sl Jun30 0:01 /usr/lib/upower root 10048 0.0 0.9 918544 19468 ? Sl Jun30 0:05 /usr/bin/kactiv colord 10065 0.0 0.3 301400 6372 ? Sl Jun30 0:00 /usr/lib/colord root 10077 0.0 0.1 180048 2060 ? Sl Jun30 0:00 /usr/lib/x86_64 root 10090 0.0 9.6 3612008 192444 ? Sl Jun30 2:19 /usr/bin/plasma root 10092 0.0 1.9 2808264 39304 ? Sl Jun30 0:33 /usr/bin/kwin - root 10110 0.1 1.0 407964 20624 ? SNl Jun30 20:06 /usr/bin/baloo_ root 10112 0.0 0.3 313840 6192 ? Sl Jun30 0:10 /usr/lib/telepa root 10123 0.0 0.8 283772 16120 ? S Jun30 0:00 /usr/bin/kuiser root 10222 0.0 0.8 388604 17572 ? Sl Jun30 0:00 /usr/lib/kde4/l root 10225 0.0 0.8 302836 17340 ? S Jun30 0:00 /usr/bin/klippe root 10229 0.0 2.1 1231496 42020 ? Sl Jun30 0:03 /usr/bin/krunne root 10231 0.0 1.4 723408 28092 ? Sl Jun30 0:12 /usr/bin/kmix root 10267 0.0 0.4 78364 8732 ? S Jun30 0:00 /usr/bin/python root 27408 0.0 0.0 28596 1636 ? Ss Jul02 3:55 SCREEN -dmS mta root 27409 5.1 15.5 1041856 311076 pts/5 Ssl+ Jul02 543:41 \_ ./mta-serve root 30849 0.0 0.1 54164 2052 ? S Jul02 0:01 /usr/lib/x86_64 root 30851 0.0 0.2 265648 4608 ? Sl Jul02 0:00 /usr/lib/at-spi root 4774 0.0 0.0 41184 1760 ? S Jul02 0:00 \_ /bin/dbus-d root 3740 0.0 0.1 221332 2960 ? Sl Jul02 0:04 /usr/bin/gnome- root 3838 0.0 0.7 304320 15516 ? S Jul02 0:00 /usr/bin/kwalle root 4780 0.0 0.1 127076 3000 ? Sl Jul02 0:00 /usr/lib/at-spi root 25772 0.0 0.1 78916 3852 ? Ss Jul09 0:00 /usr/sbin/cupsd lp 25775 0.0 0.0 65220 2000 ? S Jul09 0:00 \_ /usr/lib/cu #EDIT This is what i got ...