Jump to content

MatXpl

Members
  • Posts

    180
  • Joined

  • Last visited

Everything posted by MatXpl

  1. hi community! How can i create the object witch my nick in name get my nick = createObject... Pls help!
  2. Hi community! I have script 3d text from mta: paradise maboko gamemode, and can i replace this: exports.sql:..... For something different, not requiring mysql ?
  3. in my opinion mysql connection is good, i setup mysql connection in /mods/deathmatch/settings.xml <settings> <!-- MySQL Configuration --> <setting name="@sql.user" value="[b]here i add my username[/b]"/> <setting name="@sql.password" value="[b]here i add my password[/b]"/> <setting name="@sql.database" value="[b]here i add my database name[/b]"/> <setting name="@sql.hostname" value="localhost"/> <setting name="@sql.port" value="3306"/> <!-- Only use this on Linux if the normal connection does fail even though using the correct username & password. --> <setting name="@sql.socket" value="/var/run/mysqld/mysqld.sock"/> </settings> and i setup in script sql/mysql.lua local function connect( ) -- retrieve the settings local server = get( "server" ) or "localhost" local user = get( "user" ) or "[b]here i add my username[/b]" local password = get( "password" ) or "[b]here i add my passworld[/b]" local db = get( "database" ) or "[b]here i add my database name[/b]" local port = get( "port" ) or 3306 local socket = get( "socket" ) or nil -- connect connection = mysql_connect ( server, user, password, db, port, socket )
  4. it work thanks!, but i have next problem Server stop all scripts. Debug: [2010-12-17 09:13:09] ERROR: Unable to start resource sql; Start up of resource cancelled by script [2010-12-17 09:13:09] ERROR: Unable to start resource irc; Start up of resource cancelled by script [2010-12-17 09:13:09] ERROR: Unable to start resource players; Start up of resource cancelled by script ...
  5. Hi all! I have problem in mta:paradise gamemode, i upload all files and configure other files, but i can't start my server later... This is console debug: [2010-12-16 15:07:02] Resources: 131 loaded, 0 failed [2010-12-16 15:07:02] Querying game-monitor.com master server... success! [2010-12-16 15:07:02] MODULE: Unable to find modules/mta_mysql.dll (/home/maxrate/gaz23/mods/deathmatch/modules/mta_mysql.dll: invalid ELF header)! [2010-12-16 15:07:02] MODULE: Unable to find modules/sha.dll (/home/maxrate/gaz23/mods/deathmatch/modules/sha.dll: invalid ELF header)! Server can't find modules but i upload all in mods/deathmatch/modules/ Pls help!
  6. thanks! I had not thought about it x]
  7. Hi! Can i create a 3dmusic in interior ?
  8. ok thanks 4 all, i create this script ;D
  9. ok i save object in a map file: and how to create this object ? (load)
  10. ok thanks! I created file but how to put id, x, y and z from server-side script to file ?
  11. Hi! I have question. I in script get element id, x, y and z. And how i can save it in a map file ?
  12. Hi I have one question: It is possible to get current Player weapon, no in equipment, but in hand ? Pls help me if it is possible .
  13. Hi! I has problem in scripting tigger event this is client code: function logterror ( source ) guiSetVisible(gew,false) triggerServerEvent("loginTerror", getLocalPlayer()) end addEventHandler ( "onClientGUIClick", terrorbt, logterror ) and this is server code: function loginTerror (source) spawnPlayer (source, 0, 0, 5, 0, math.random (0,288), 0, 0, trTeam) -- spawns player with random skin end addEvent("loginTerror", true) addEventHandler("loginTerror", getRootElement(), loginTerror) When i click gui button "terrorbt" it debug error: " Bad argument @ 'spawnPlayer' " Please help me
  14. MatXpl

    NPC

    Hi! I looking for script which bots atacks players and 1 bots team atack 2 bots team. I'm ask for short code
  15. thanks !! I understand my errors now !
  16. local marker1 = createMarker( 1599.6259765625, 1815.3583984375, 10.026741409302, 'cylinder', 2.0, 0, 250, 0, 150 ) function duty(thePlayer, matchingDimension) if isElementWithinMarker(thePlayer, leczenie1) then outputChatBox("/cm", thePlayer, 0, 255, 0) addCommandHandler ("cm", bad) end end function bad ( thePlayer ) setElementHealth ( thePlayer, 200 ) end It shows marker, but command dosn't work...
  17. Hi! I have script 'Pay Day' And i wont make this script only to acl group "workers" pls help! Script code: function allPlayersPayDay() local allPlayers = getElementsByType("player") for index,value in ipairs(allPlayers) do givePlayerMoney ( value, 1000 ) outputChatBox ( "You have 1000$ !", value ) end end function onResourceStart(thisResource) setTimer ( allPlayersPayDay, 3600000, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), onResourceStart )
  18. Hi All! I have problem... I looking for a means to destroy command. Command create if i enter marker, and command is disable when i leave the marker... Sory for my bad english
  19. Hi! I have question. How to make command "/command" only if player is in the marker Sory for my bad english Pls help
  20. I edit a script paintball and i wont usa a paint balls only to sniper! delay = 5000 r = math.random (0,255) g = math.random (0,255) b = math.random (0,255) sniper = { [34]=true } function onSpawn (team) if ( sniper[getElementModel ( player )] ) if (team) then removeCommandHandler ("color") command = false r, g, b = getTeamColor ( team ) elseif command == false then command = addCommandHandler ( "color", setColor) end end function setColor (cmd, r2, g2, b2) if r2 then if tonumber (r2) >= 0 and tonumber (r2) <= 255 then r = tonumber (r2) end end if g2 then if tonumber (g2) >= 0 and tonumber (g2) <= 255 then g = tonumber (g2) end end if b2 then if tonumber (b2) >= 0 and tonumber (b2) <= 255 then b = tonumber (b2) end end end function weaponfired (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement ) local marker = createMarker ( hitX, hitY, hitZ, "corona", 0.1, r, g, b, 255 ) setTimer ( destroyElement, delay, 1, marker ) end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), onSpawn ) command = addCommandHandler ( "color", setColor) addEventHandler ( "onClientPlayerWeaponFire", getRootElement(), weaponfired ) and this dosn't work Help! Sory of my bed english i'm from Poland
  21. thx 2. How to replace ped.ifp ? ?
  22. Hi all ! How to replace model (dff) and texture (txt) I create model and texture for ped skin id 254 plase H E L P !!!!!!!
×
×
  • Create New...