Jump to content

Wisam

Members
  • Posts

    168
  • Joined

  • Last visited

Everything posted by Wisam

  1. "Wisam" version="1.0" type="script" name="Scripts Startup" description ="Multi Scripts startup resource" /> resource="test_script" /> Just put in your script name you want to include in and then start the resource. Put an XML file only in a new resource and then put this script
  2. Thats very nice.. but if you add the ability to spawn/hide the cars you buy whenever you want with SQLite database it will be awesome
  3. I said that me and my friend made the script and i just did some little parts like getting locations outPutChatBox..etc And my friend currently can't help me so thats why im posting here And i made this post so people help me.. not judge me for the scripts
  4. Hey So i made this hijack script with my friend and it works good so far.. but i wanted to make tables for car spawns, delivery locations and car id so everytime a new hijack mission start there will be different locations and different vehicles so can you please help me with that because im not good with tables and stuff.. here's the script: local ca3 = { { 0, 0, 3 }, { 0, 0, 3 }, { 0, 0, 3 }, { 0, 0, 3 } } local marker = { --You can add more locations here { 102.0269241333, 54.090785980225, 0.44342550635338 }, { 11.605502128601, 58.490795135498, 1.6355142593384 } } local vehicle_ = {} local blip = {} local rand = {} local Markers = {} function CreatCarRandom () rand.random = ca3[math.random(#ca3)] vehicle_.car = createVehicle(411, -0.77234786748886, 0.1968837082386, 3.1171875) blip.blip1Car = createBlipAttachedTo(vehicle_.car, 53) outputChatBox("#B22222 automobile has been requsted and placed on your map , get it first !!", root, 255, 255, 255, true) end addEventHandler("onResourceStart", root, CreatCarRandom) addEventHandler("onPlayerVehicleEnter", root, function(vehicle) if(isElement(vehicle_.car))then if (vehicle == vehicle_.car) then local x,y,z = unpack(marker[math.random(#marker)]) Markers.Marker = createMarker(x, y, z, "cylinder", 5, 0, 0, 205, 170) blip.blipCar2 = createBlipAttachedTo(Markers.Marker, 51) setElementVisibleTo(Markers.Marker, root, false) setElementVisibleTo(Markers.Marker, source, true) end end end ) addEventHandler( "onMarkerHit", root, function(hitElement) if ( getElementType( hitElement ) == "player" ) then if( isPedInVehicle( hitElement ) )then givePlayerMoney ( hitElement, math.random(50000,70000) ) triggerClientEvent(hitElement, "playSoundC", hitElement) for i,v in pairs(vehicle_) do destroyElement(v) end for i,v in pairs(Markers) do destroyElement(v) end for i,v in pairs(blip) do destroyElement(v) end CreatCarRandom () end end end ) addEventHandler("onPlayerVehicleExit", root, function(vehicle) if( isElement( vehicle_.car ) )then if( vehicle == vehicle_.car )then for i,v in pairs(vehicle_) do destroyElement(v) end for i,v in pairs(Markers) do destroyElement(v) end for i,v in pairs(blip) do destroyElement(v) end end end end )
  5. wow i can't belive it worked.. im still a beginner And if i wanted skill to raise for every weapon and body part because it currently works on the pistol only (22)
  6. oh okay but would this work? addEventHandler( 'onZombieWasted', root, function ( killer, weapon, bodypart ) if (killer and killer ~= source) then if ( bodypart == 9 and weapon == 22) then setPedStat( killer, 69, getPedStat( killer, 69 ) + 50 ) end end end )
  7. Hello.. i want to make a script that when you kill a zombie your weapon skill that you killed the zombie with will raise +1 and im using zday zombie script.. i need zombie kill event but i dont know what to do because there is no zombie kill event in mta.. please help!
  8. HEy i just wanted to make a script that allows ADMINS to kick all the players in the server for a specific reason with a command like /kickall , so if you know somthing that could help me please tell me.. i don't mean the functions only myabe some hints too.. and if you could help me do it with a gui too that'd be great
  9. function disableVehicleCollisionsNearPlayer(thePlayer, maxDistance) local playerX, playerY, playerZ = getElementPosition(thePlayer) local vehicles = getElementsByType("vehicle") for k,v in ipairs(vehicles) do local vehicleX, vehicleY, vehicleZ = getElementPosition(v) -- get the distance between the player and the vehicle: local distance = getDistanceBetweenPoints3D(vehicleX, vehicleY, vehicleZ, playerX, playerY, playerZ) if (distance <= maxDistance) then -- disable collisions for the vehicle setElementCollisionsEnabled(v, false) end end end
  10. Wisam

    Cinematic mod

    I made this script becasuse im still learning step by step and im starting from the smallst script so dont laugh at me So this should trigger the cinematic mod on/off and outputs a message on the chat.. i didn't test it yet because my mta is broken at the moment.. can you please tell me if it would work and the player will be able to turn on/off the cinematic mod with the messages appeared? with the same command function cinema (source) local showChat (false) local showHud (false) outputChatBox("Cinematic mod on!" 0,255,0) elseif outputChatBox("Cinematic mod off!" 255,0,0) end addCommandHandler("cin" cinema )
  11. Wisam

    [Help] Ban

    where can i find it exactly? Open admin panel > resources > ACL > open the admins rights table and remove command.ban And do the same for moderator, super moderator.. etc or open your mta folder \server\mods\deathmatch > open acl.xml > search for command.ban > remove the line Can i see your script? becuase if you do this the script may not work too!
  12. Wisam

    [Help] Ban

    you can, just disable it in the admin resource
  13. You need to have a VPS for this resource to work on a hosted server. VPS?
  14. i used: addEvent( "onZombieWasted", true ); addEventHandler( "onZombieWasted", root, function ( killer, weapon, bodypart ) if killer and killer ~= source then if bodypart == 9 and weapon == 69 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 50 ); end end end ); but when i kill nothing happens (i got dxweaponstart scripts to show wep stats)
  15. Hello.. i want to make a script that when you kill a zombie your weapon skill that you killed with will raise +1 and im using zday zombie script.. i need zombie kill event but i dont know what to do because there is no zombie kill event in mta.. please help!
  16. so i cant get it to work on my hosted server? myabe you can make the download destination at a certain file like server\mods\deathmatch\resources\mods ?
  17. Nice one and i agree with Solidsnake, making the vehicles on xml file is the easist to edit/add vehicles and some suggestions: - a GUI for players to spawn/hide the vehicles and saved to the account - Ability to sell the cars the players bought for the half of the price - Make multiple shops that contain different kind of vehicles (e.g aircraft, bikes, cars..etc) I hope you add those in the future verison good luck
  18. In the company im hosting in i cant derictly edit the script but i tryed from the Smart FTP software but the script dont save and i cant type fresh in the online admin panel cause the console is uneditable.. can i refresh the resources ingame? I know all the console commands and as i said i cant do anything on the console in the online admin panel(host website) cause its uneditable .. and when i type /refresh ingame nothing happens, myabe i should add my account to console group in ACL?
  19. So i must just replace the resource i want to update with the one i edited? and i dont have to resatart the whole serveR?
  20. HEy.. So i have a zombie mod server and i wanted to do something important and its to update/change resources or scripts without the need to restart the server.. my friend used to do this and he said somthing about naming the resource i want to change as another resource running on the server but i didnt really understood, if you know any way to do this please tell me i need it.. becasue sometimes when i restart the server after i updated somthing and some accounts get their level rested or they lose their money. (P.S: Server is hosted) Thank you in advance
  21. No i dont think so, cause i saw more than one server have commands to spawn anything, and when they spawn it says like: Wisam has spawned a petrol station or Wisam has spawned a medic box
  22. Hello I wanted to ask you here about a simple commands in dayz gamemode. So i got the dayz gamemode and its working good but i dont know all the commands to spawn items and vehicles, i know the vehicle spawn its /spawnsanchez, /spawnmaverick...etc but i need the following things to spawn and i don't know the commands for it. - Petrol Station spawn - Health Box spawn (contains: medkit, bandage, bloodbag..etc) - Random Items - Helicopter crash sites - Player spawn points So if anyone knows the commands to spawn these things please tell me here i need it very badly. Thanks
  23. Wisam

    [HELP] Please

    No not setElementHealth, cause i think he need this for DayZ gamemode
  24. Wisam

    Prone Animation

    I though of somthing.. if i had the animation in my GTA SA and i joined a server and started the anim.. what the other player that dont have the anim will see?! the original one i replaced?
  25. Wisam

    Prone Animation

    Im sure its like that, because a few servers have this and you won't be able to join till you put this anim in the san andreas. But will it be possible? i heard that the mta community/developers are working on it?
×
×
  • Create New...