Jump to content

MatXpl

Members
  • Posts

    180
  • Joined

  • Last visited

Everything posted by MatXpl

  1. It's posible to add something like this to MTA v x.x.x ?
  2. but i see only this bug with flamethrover
  3. nope local playerWeapons = { } function respawn() local p = source if ( not playerWeapons [ p ] ) then playerWeapons [ p ] = { } end for slot = 0, 12 do local weapon = getPedWeapon ( p, slot ) if ( weapon > 0 ) then local ammo = getPedTotalAmmo ( p, slot ) if ( ammo > 0 ) then playerWeapons [ p ] [ weapon ] = ammo end end end setTimer(function(p) local skin = getElementModel(p) spawnPlayer(p,1607.3,1816.5,11,0,skin) local accName = getAccountName ( getPlayerAccount ( p) ) if ( playerWeapons [ p ] ) then for weapon, ammo in pairs ( playerWeapons [ p ] ) do giveWeapon ( p, tonumber ( weapon ), tonumber ( ammo ) ) end end playerWeapons [ p ] = nil end,4000,1,source) end addEventHandler("onPlayerWasted",getRootElement(),respawn)
  4. now i have this code, all works okay, but today i saw when i have 4 ammo of flamethrover after death it's giving me 49 ammo of flamethrover, but all other weapons work good. what's wrong?
  5. hi. i'm not good in tables. but can i please for code ? 1. get all player weapons to table 2. load them from table and give it just for learning
  6. Hi! For example.. how can i get a radom id from this table? vehicleIDS = { 602, 545, 496, 517, 401, 410, 518, 600, 527, 436, 589, 580, 419, 439, 533, 549, 526, 491, 474, 445, 467, 604, 426, 507, 547, 585, 405, 587, 409, 466, 550, 492, 566, 546, 540, 551, 421, 516, 529, 592, 553, 577, 488, 511, 497, 548, 563, 512, 476, 593, 447, 425, 519, 520, 460, 417, 469, 487, 513, 581, 510, 509, 522, 481, 461, 462, 448, 521, 468, 463, 586, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 485, 552, 431, 438, 437, 574, 420, 525, 408, 416, 596, 433, 597, 427, 599, 490, 432, 528, 601, 407, 428, 544, 523, 470, 598, 499, 588, 609, 403, 498, 514, 524, 423, 532, 414, 578, 443, 486, 515, 406, 531, 573, 456, 455, 459, 543, 422, 583, 482, 478, 605, 554, 530, 418, 572, 582, 413, 440, 536, 575, 534, 567, 535, 576, 412, 402, 542, 603, 475, 449, 537, 538, 441, 464, 501, 465, 564, 568, 557, 424, 471, 504, 495, 457, 539, 483, 508, 571, 500, 444, 556, 429, 411, 541, 559, 415, 561, 480, 560, 562, 506, 565, 451, 434, 558, 494, 555, 502, 477, 503, 579, 400, 404, 489, 505, 479, 442, 458, 606, 607, 610, 590, 569, 611, 584, 608, 435, 450, 591, 594 }
  7. i don't know why, but now it's working thanks!
  8. nope. everything should working. i used in another script SELECT * and INSERT and it's working.
  9. what is wrong here? i got x,y,z arguments handler is working but stiil dont chanage data in mysql. no debuging errors local query = "INSERT INTO accounts SET x='" .. x .. "', y='"..y.."', z='"..z.."' WHERE login='"..accName.."'" mysql_query(handler, query) x,y,z in accounts is definied as 0
  10. How can i get all rows from gridlist? (using in pairs)
  11. MatXpl

    dx edit

    How can i create a dx edit? something like this:
  12. hi. how can i load xml file from my mta server in another server php script?
  13. I saw it a while ago at a community but I can not now that find. It's something like that: The text in cloud has been set in element data. Pls help
  14. now uploading 4 fun easy-resources only when i have more time i gonna to do something better
  15. Haters Gonna hate, but they do not do a lot because do not much can. deals with this site from time to time which I have little - introducing changes slowly
  16. new resources! try! http://adf.ly/Uk4dd (click 'skip ad' in right top corner)
  17. MatXpl

    Bomb Car

    Bomb Car v0.1 If you damage the car, it activates bomb and after a second it explodes. This script works on all cars, where do you like I can add extra options in future versions. Lets' Give your idea Download: http://adf.ly/Uk0Xx My website with MTA scripts: http://www.mtasa.xn.pl
  18. Hi I just created a page where you can download the resources created by me links: http://adf.ly/Uk4dd (click 'skip ad' in right top corner) http://mtasa.xn.pl If you want to order also with me is a resource here are my contact information gmail: [email protected] http://adf.ly/Uk4dd This webpage is constantly being expanded!
  19. Witam! Mam na sprzedanie gamemoda RP/RPG! Gamemod jest napisany w 100% przeze mnie, a w nim: -System logowania/rejestracji -System ID -System SCORE -Tankowanie pojazdów na stacjach paliwowych (Truckerzy mogą uzupełniać paliwo na stacjach) -Truck System -System domków (kup/sprzedaj/opłać czynsz) -System samochodów (każdy samochód ma właściciela, paliwo, specjalny GUI wyświetlany podczas jazdy itp.) -System frakcji - Policja, Taxi, Pomoc Drogowa, Pogotowie, Salon, każda frakcja ma specjalny panel do zarządzania. Lider danej frakcji może dodawać do niej graczy, zwalniać, oraz dawać wypłatę. -System wypadków - przy mocnym uderzeniu autem, tracimy przytomność, jeżeli nie ma na serwerze nikogo w frakcji pogotowie czekamy 60 sekund. Gamemod posiada inne atrakcje, ale po szczegóły proszę pisać tu: gg: 11305574 email: [email protected] Jestem gotów udzielić kilku poprawek, a później aktualizacji jeżeli zdecydujesz się na ten gamemod ! POZDRAWIAM !
  20. please reupload files for website.
  21. meybe try: setPedLookAt (getLocalPlayer(), worldx, worldy, worldz, 1) any debug ?
  22. MatXpl

    send email

    can i send somthing with script to my email adress ?
×
×
  • Create New...