Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Castillo

    Discussion

    You may not care, but we do. Now, I'll talk a bit: That's a lie, you insulted me when I told you the script was stolen.
  2. Castillo

    Stop votes

    Stop the resource: "votemanager".
  3. You can do it with the weapon creation functions: https://wiki.multitheftauto.com/wiki/Cli ... _functions
  4. En mi servidor lo hice cuando disparan, pero no funciona al golpear.
  5. onVehicleDamage no tiene argumento especificando quien le quito vida.
  6. Crea una tabla y pone la musica dentro, luego empeza la primera de la tabla y al terminar, anda a la siguiente, y asi seguis.
  7. Do you have permission to use that code?
  8. But, is it the only script on that resource? or it has many scripts on it?
  9. That code is either a mess of client and server functions, or you got client and server but you didn't separate them when posted.
  10. This is the only script on your resource?
  11. You must put the zip file itself inside resources folder.
  12. That doesn't make any sense, this is the only script code on your resource? because it shouldn't prevent damage to zombies.
  13. No. You need to add: addEvent ( "onClientMapStarting", true ) Above: addEventHandler ( 'onClientMapStarting', root, zaa) Every event that isn't a default MTA event must be added using addEvent. I used this same event handler WITHOUT addEvent for a map info script. Topic locked.
  14. validPedModels = { bfori = 9, bfost = 10, vbfycrp = 11, bfyri = 12, bfyst = 13, bmori = 14, bmost = 15, bmyap = 16, bmybu = 17, bmybe = 18, bmydj = 19, bmyri = 20, bmycr = 21, bmyst = 22, wmybmx = 23, wbdyg1 = 24, wbdyg2 = 25, wmybp = 26, wmycon = 27, bmydrug = 28, wmydrug = 29, hmydrug = 30, dwfolc = 31, dwmolc1 = 32, dwmolc2 = 33, dwmylc1 = 34, hmogar = 35, wmygol1 = 36, wmygol2 = 37, hfori = 38, hfost = 39, hfyri = 40, hfyst = 41, hmori = 43, hmost = 44, hmybe = 45, hmyri = 46, hmycr = 47, hmyst = 48, omokung = 49, wmymech = 50, bmymoun = 51, wmymoun = 52, ofori = 53, ofost = 54, ofyri = 55, ofyst = 56, omori = 57, omost = 58, omyri = 59, omyst = 60, wmyplt = 61, wmopj = 62, bfypro = 63, hfypro = 64, bmypol1 = 66, bmypol2 = 67, wmoprea = 68, sbfyst = 69, wmosci = 70, wmysgrd = 71, swmyhp1 = 72, swmyhp2 = 73, swfopro = 75, wfystew = 76, swmotr1 = 77, wmotr1 = 78, bmotr1 = 79, vbmybox = 80, vwmybox = 81, vhmyelv = 82, vbmyelv = 83, vimyelv = 84, vwfypro = 85, vwfyst1 = 87, wfori = 88, wfost = 89, wfyjg = 90, wfyri = 91, wfyro = 92, wfyst = 93, wmori = 94, wmost = 95, wmyjg = 96, wmylg = 97, wmyri = 98, wmyro = 99, wmycr = 100, wmyst = 101, ballas1 = 102, ballas2 = 103, ballas3 = 104, fam1 = 105, fam2 = 106, fam3 = 107, lsv1 = 108, lsv2 = 109, lsv3 = 110, maffa = 111, maffb = 112, mafboss = 113, vla1 = 114, vla2 = 115, vla3 = 116, triada = 117, triadb = 118, triboss = 120, dnb1 = 121, dnb2 = 122, dnb3 = 123, vmaff1 = 124, vmaff2 = 125, vmaff3 = 126, vmaff4 = 127, dnmylc = 128, dnfolc1 = 129, dnfolc2 = 130, dnfylc = 131, dnmolc1 = 132, dnmolc2 = 133, sbmotr2 = 134, swmotr2 = 135, sbmytr3 = 136, swmotr3 = 137, wfybe = 138, bfybe = 139, hfybe = 140, sofybu = 141, sbmyst = 142, sbmycr = 143, bmycg = 144, wfycrk = 145, hmycm = 146, wmybu = 147, bfybu = 148, wfybu = 150, dwfylc1 = 151, wfypro = 152, wmyconb = 153, wmybe = 154, wmypizz = 155, bmobar = 156, cwfyhb = 157, cwmofr = 158, cwmohb1 = 159, cwmohb2 = 160, cwmyfr = 161, cwmyhb1 = 162, bmyboun = 163, wmyboun = 164, wmomib = 165, bmymib = 166, wmybell = 167, bmochil = 168, sofyri = 169, somyst = 170, vwmybjd = 171, vwfycrp = 172, sfr1 = 173, sfr2 = 174, sfr3 = 175, bmybar = 176, wmybar = 177, wfysex = 178, wmyammo = 179, bmytatt = 180, vwmycr = 181, vbmocd = 182, vbmycr = 183, vhmycr = 184, sbmyri = 185, somyri = 186, somybu = 187, swmyst = 188, wmyva = 189, copgrl3 = 190, gungrl3 = 191, mecgrl3 = 192, nurgrl3 = 193, crogrl3 = 194, gangrl3 = 195, cwfofr = 196, cwfohb = 197, cwfyfr1 = 198, cwfyfr2 = 199, cwmyhb2 = 200, dwfylc2 = 201, dwmylc2 = 202, omykara = 203, wmykara = 204, wfyburg = 205, vwmycd = 206, vhfypro = 207, omonood = 209, omoboat = 210, wfyclot = 211, vwmotr1 = 212, vwmotr2 = 213, vwfywai = 214, sbfori = 215, swfyri = 216, wmyclot = 217, sbfost = 218, sbfyri = 219, sbmocd = 220, sbmori = 221, sbmost = 222, shmycr = 223, sofori = 224, sofost = 225, sofyst = 226, somobu = 227, somori = 228, somost = 229, swmotr5 = 230, swfori = 231, swfost = 232, swfyst = 233, swmocd = 234, swmori = 235, swmost = 236, shfypro = 237, sbfypro = 238, swmotr4 = 239, swmyri = 240, smyst = 241, smyst2 = 242, sfypro = 243, vbfyst2 = 244, vbfypro = 245, vhfyst3 = 246, bikera = 247, bikerb = 248, bmypimp = 249, swmycr = 250, wfylg = 251, wmyva2 = 252, bmosec = 253, bikdrug = 254, wmych = 255, sbfystr = 256, swfystr = 257, heck1 = 258, heck2 = 259, bmycon = 260, wmycd1 = 261, bmocd = 262, vwfywa2 = 263, wmoice = 264, laemt1 = 274, lvemt1 = 275, sfemt1 = 276, lafd1 = 277, lvfd1 = 278, sffd1 = 279, lapd1 = 280, sfpd1 = 281, lvpd1 = 282, csher = 283, lapdm1 = 284, swat = 285, fbi = 286, army = 287, dsher = 288 } That's a table with all the skin ID's and the names you need to use, example: if you want to replace skin 15, you name it "bmost.txd", "bmost.dff".
  15. That version will do. Read this manual: https://wiki.multitheftauto.com/wiki/Ser ... our_server
  16. And you are sure that it's this script the cause? tried stopping this resource?
  17. Your first script should work.
  18. You can try this resource: https://community.multitheftauto.com/ind ... ls&id=5993
  19. function creatingLoginWindow ( ) local X = 0.375 local Y = 0.375 local Width = 0.25 local Height = 0.25 modernWNDLogin = guiCreateWindow ( X, Y, Width, Height, "Welcome To Modern Freeroam !", true ) X = 0.0825 Y = 0.23 Width = 0.25 Height = 0.25 guiCreateLabel ( X, Y, Width, Height, "Username", true, modernWNDLogin ) Y = 0.53 guiCreateLabel ( X, Y, Width, Height, "Password", true, modernWNDLogin ) X = 0.415 Y = 0.2 Width = 0.5 Height = 0.15 editUsername = guiCreateEdit ( X, Y, Width, Height, "", true, modernWNDLogin ) Y = 0.5 editPassword = guiCreateEdit ( X, Y, Width, Height, "", true, modernWNDLogin ) guiEditSetMaxLength ( editUsername, 50 ) guiEditSetMaxLength ( editPassword, 50 ) X = 0.415 Y = 0.7 Width = 0.25 Height = 0.2 loginBtn = guiCreateButton ( X, Y, Width, Height, "Log In", true, modernWNDLogin ) showCursor ( true ) guiSetInputEnabled ( true ) end addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) creatingLoginWindow ( ) outputChatBox ( "Welcome to My MTA:SA Server, please log in." ) end )
  20. addEventHandler ( "onClientPlayerDamage", localPlayer, function ( ) if ( getPlayerTeam ( source ) and getTeamName ( getPlayerTeam ( source ) ) == "STAFF" ) then cancelEvent ( ) end end ) If you are using this with zombies, you'll get hit because they set your health with setElementHealth.
  21. You must use this resource: https://community.multitheftauto.com/ind ... ls&id=3016
×
×
  • Create New...