Ride1234 Posted July 31, 2010 Share Posted July 31, 2010 Hello, i have a problem with melee weapons. When i'm in the interior (lobby in my script) they works fine, but when i'm on the my map (created using mta editor) melee weapons doesn't work (there is animation, but no damage). Other weapons such as pistols, machineguns, shotguns, flamethorews, etc works fine. There are no canceled events in my code. Why its happens? Here is my onPlayerSpawn code: if(started == true) then if(skin[source] == 0 and var3[player] == nil ) then setElementPosition(source,x,y,z) setElementModel(source,skin1) else setElementPosition(source,x,y,z) setElementModel(source,skin2) end if(var3[source] ~= nil) then -- pb var3 if(var3[source] == 1) then setElementPosition(source,x,y,z) setElementModel(source,model2) setTimer(giveWeapon,1000,1,source,9,1,true) elseif(var3[source] == 2) then setElementPosition(source,x,y,z) setElementModel(source,model2) setTimer(giveWeapon,1000,1,source,8,1,true) elseif(var3[source] == 3) then setElementPosition(source,x,y,z) setElementModel(source,model2) setTimer(giveWeapon,1000,1,source,36,50000,true) end triggerClientEvent(source,"dxSpawnText",getRootElement()) setElementData(source, "status", "In Game") end setElementInterior(source,0) else -- not started (lobby) if(skin[source] == 0) then setElementPosition(source,x,y,z) setElementModel(source,skin1) else setElementPosition(source,x,y,z) setElementModel(source,skin2) end setElementInterior(source,3) setElementData(source, "status", "In Lobby") end setPlayerNametagShowing(source, false) setCameraTarget(source) setPedFrozen(source,false) toggleAllControls (source, true) Link to comment
Slothman Posted July 31, 2010 Share Posted July 31, 2010 is your custom map located outside the boundaries of san andreas? Link to comment
Ride1234 Posted July 31, 2010 Author Share Posted July 31, 2010 is your custom map located outside the boundaries of san andreas? Yes it is.. btw, i solved the problem by moving my map to san andreas'es boundaries. it was about -3500 on X and now its about -1600. Link to comment
Slothman Posted August 11, 2010 Share Posted August 11, 2010 that's what i was getting at. It's always best to put your maps inside the san andreas boundaries. Link to comment
morgan Posted January 19, 2011 Share Posted January 19, 2011 Hello, i have a problem with melee weapons.When i'm in the interior (lobby in my script) they works fine, but when i'm on the my map (created using mta editor) melee weapons doesn't work (there is animation, but no damage). Other weapons such as pistols, machineguns, shotguns, flamethorews, etc works fine. There are no canceled events in my code. Machineguns, shotguns, flamethorews are those belong to melee weapons? Link to comment
Slothman Posted January 23, 2011 Share Posted January 23, 2011 no, melee weapons are weapons you use to smak your opponents with, ie :sword, bat, golf club, etc Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now