Jump to content

WASSIm.

Members
  • Posts

    1,412
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. you can make table like this local vehicleNames = {[549] = "Toyota Supra", [497] = "Police Huey"}
  2. WASSIm.

    New logo MTA :D

    change personage CJ and hope use it to MTA 1.4
  3. https://community.multitheftauto.com/in ... ils&id=488
  4. i think you need to use: createColPolygon
  5. why and how ? change rotation? you don't need it
  6. hi guys i have problem on replace texture, texture "wmyclot" staff skin don't change local textures = { {"wmyclot", "wmyclot.png"}, {"bloodpool_64", "bloodpool.png"} } addEventHandler( "onClientResourceStart", resourceRoot, function ( ) for i, textureNew in ipairs(textures) do local textureName, file = unpack(textureNew) local texture = dxCreateTexture("textures/"..file, "dxt5") local shader = dxCreateShader("shader.fx") if (texture) and (shader) then dxSetShaderValue(shader, "gTexture", texture) engineApplyShaderToWorldTexture(shader, textureName) else outputChatBox("The texture "..textureName.." do not replace file: "..file, 255, 0, 0) end end end)
  7. you can use: interpolateBetween
  8. hi guys, how i can make info server show in SMF forum like this
  9. WASSIm.

    Question SQL

    debug show me this: dbPoll failed near "SHOW": syntax error
  10. WASSIm.

    Question SQL

    i use sqlite with dbConnect and SHOW TABLES not working addEventHandler("onResourceStart", resourceRoot, function ( ) connection = dbConnect("sqlite", "database.db") if (connection) then outputDebugString("Successfully connected to database.db") else outputDebugString("Failed to connect to database.db", 3) end end) addEvent("onPlayerLoadDatabase", true) addEventHandler("onPlayerLoadDatabase", root, function( ) local query = dbQuery(connection, "SELECT * SHOW TABLES") local data = dbPoll(query, -1) triggerClientEvent(source, "onClientPlayerLoadDatabase", source, data) end)
  11. WASSIm.

    Question SQL

    hi guys, i working for Sqlite browser panel but i don't know get all data from sql with tables please if anyone know it tell me
  12. this script use command to create weapon attach vehicle and can shot exmple: /vehweapon 38. to create minigun... it's still on developing Server: addCommandHandler("vehweapon", function(thePlayer, cmd, id) local theVehicle = getPedOccupiedVehicle(thePlayer) if (theVehicle) and (getVehicleController(theVehicle) == thePlayer) then triggerClientEvent("onCreateWeaponVehicle", theVehicle, id) end end) addEventHandler("onResourceStart", root, function( ) for i, player in ipairs(getElementsByType("player")) do bindKey(player, "vehicle_secondary_fire", "down", keyFire) bindKey(player, "vehicle_secondary_fire", "up", keyStopFire) end end) function keyFire(source) local theVehicle = getPedOccupiedVehicle(source) if (theVehicle) and (getVehicleController(theVehicle) == source) then triggerClientEvent("onWeaponVehicleFiring", theVehicle) end end function keyStopFire(source) local theVehicle = getPedOccupiedVehicle(source) if (theVehicle) and (getVehicleController(theVehicle) == source) then triggerClientEvent("onWeaponVehicleReady", theVehicle) end end Client: local weapon = {sound = {}} addEvent("onCreateWeaponVehicle", true) addEventHandler("onCreateWeaponVehicle", root, function (weaponID) local theVehicle = source if not weaponID then weaponID= 38 end if (getElementType(theVehicle) == "vehicle") and not (weapon[theVehicle]) then local x, y, z = getElementPosition(theVehicle) weapon[theVehicle] = createWeapon(weaponID, x, y, z) attachElements(weapon[theVehicle], theVehicle, 2, 0, 0) setElementData(theVehicle, "VehicleMG", weapon[theVehicle]) --setWeaponClipAmmo(weapon[theVehicle], 99999) end end) addEvent("onWeaponVehicleFiring", true) addEventHandler("onWeaponVehicleFiring", root, function( ) local theVehicle = source if (theVehicle) and (weapon[theVehicle]) then setWeaponState(weapon[theVehicle], "firing") --[[local x, y, z = getElementPosition(theVehicle) local xm, ym, zm = getElementPosition(weapon[theVehicle]) if not (weapon.sound[theVehicle]) then weapon.sound[theVehicle] = playSound3D("minigun.wav", xm, ym, zm, true) setSoundMaxDistance(weapon.sound[theVehicle], 100) --setSoundEffectEnabled(weapon.sound[theVehicle], "gargle", true) attachElements(weapon.sound[theVehicle], weapon[theVehicle]) end]] end end) --[[addEvent("onWeaponVehicleReady", true) addEventHandler("onWeaponVehicleReady", root, function ( ) local theVehicle = source if (theVehicle) and (weapon[theVehicle]) then setWeaponState(weapon[theVehicle], "ready") if (weapon.sound[theVehicle]) then stopSound(weapon.sound[theVehicle]) weapon.sound[theVehicle] = nil end end end)]] --[[bindKey("r", "up", function( ) local theVehicle = getPedOccupiedVehicle(localPlayer) if (theVehicle) and (getVehicleController(theVehicle) == thePlayer) then setWeaponState(weapon[theVehicle], "reloading") end end)]] addEventHandler("onClientWeaponFire", getRootElement(), function (element) local theVehicle = getPedOccupiedVehicle(localPlayer) if (theVehicle) and (weapon[theVehicle]) then if (element == theVehicle) then cancelEvent() end end end) addEventHandler("onElementDestroy", root, function ( ) local theVehicle = source if (getElementType(theVehicle) == "vehicle") and (weapon[theVehicle]) then destroyElement (weapon[theVehicle]) weapon[theVehicle] = nil setElementData(theVehicle, "VehicleMG", false) end end)
  13. createWeapon attachElements
  14. WASSIm.

    Hud problem

    he can just do that showPlayerHudComponent(source,"all",false)
  15. WASSIm.

    MTA/GTA don't opened

    its worked just after download first link, thank you
  16. hi mta team i buy new computer and installe GTA:SA and MTA but them don't working and i use MTA Diag... http://pastebin.mtasa.com/319440440
  17. WASSIm.

    Move object

    if create pickup will turn around with not other funtion
  18. WASSIm.

    Move object

    use createPickup
  19. guys i got problem, if type command on chat that will put on chat...
  20. debian-6.0-x86_64 is better
  21. yeah i used other event name and thanks
×
×
  • Create New...