Jump to content

abdalbaset

Members
  • Posts

    170
  • Joined

  • Last visited

Posts posted by abdalbaset

  1. hello guys i have been workin lately on skin and it was my first time so i import GTA SA DFF file (skin num=230)and got some object from player.img and add it them to the skin that i made using 3Ds max but whene i add the skin to my gta file MTA keep crashing whene i get the skin

  2.   
      
    kills 
    addEventHandler( "onPlayerWasted", getRootElement(), 
           function( killer ) 
               givePlayerMoney( killer, 100 ) 
             kills=kills+1 
           end 
    ) 
      
      
    

    like that?

  3.   
    marker =createMarker(-23.4414,-55.150,1002.5468,"cylinder", 1.5, 250,0,0, 255 ) 
    setElementInterior( marker,6,-23.4414,-55.150,1003.5468) 
      
    function output() 
      
    outputChatBox ( "*To Rob this shop use /robshop", getRootElement(), 255, 0, 0, true ) 
      
    end 
    addEventHandler( "onMarkerHit", marker, output ) 
      
      
    function rober(thePlayer, matchingDimension) 
        if isElementWithinMarker(thePlayer, marker) then 
         outputChatBox ( "robbery attempt success", getRootElement(), 0, 255, 0, true ) 
        givePlayerMoney (thePlayer , 15000) 
        setPlayerWantedLevel (  thePlayer, 6 )  
        destroyElement ( marker ) 
     else 
        outputChatBox("get in the marker to rob this shop", thePlayer, 255, 0, 0) 
     end 
    end 
    addCommandHandler("robshop", rober) 
      
      
      
      
    

    here is my code i want the player to be able to rob the shop once every 5min,

  4. another question how can i make the function restart witht timer example i created function that works whene you hit marker after you hit the marker ,the marker got destroyed and the function will restarted after 10sec

  5. local Col = createColCuboid(1290.5771,2100,11.0156, 300, 100, 30) 
    local pArea1 = createRadarArea( 1290.5771,2100,200, 150, 32, 32,32) 
    bool = false 
      
    function shapeHit( thePlayer ) 
        givePlayerMoney (thePlayer , 1000 ) 
    end  
    addEventHandler('onColShapeHit', Col,shapeHit) 
      
    function onWasted() 
        if isElementWithinColShape( source, Col )  
            bool = true 
        end 
    end 
    addEventHandler ( "onPlayerWasted", getRootElement(), onWasted ) 
      
    function onSpawn() 
        if bool then 
        --setElementPosition 
        end 
    end 
    addEventHandler ( "onPlayerSpawn", getRootElement(), onSpawn ) 
    

    it's not working i cant see the colshape on the map anymore

  6.   
    local Col = createColCuboid(1290.5771,2100,11.0156, 300, 100, 30) 
    local pArea1 = createRadarArea( 1290.5771,2100,200, 150, 32, 32,32) 
    bool = false 
      
    function shapeHit( thePlayer ) 
        givePlayerMoney (thePlayer , 1000 ) 
    end 
    addEventHandler('onColShapeHit', Col,shapeHit) 
      
    function onWasted() 
        if isElementWithinColShape( source, Col ) 
            bool = true 
        end 
    end 
    addEventHandler ( "onPlayerWasted", getRootElement(), onWasted ) 
      
      
    function onSpawn() 
        if bool then 
        setElementPosition (--here??,1369.93,2194.938,9.757) 
        end 
    end 
    addEventHandler ( "onPlayerSpawn", getRootElement(), onSpawn ) 
      
      
    

    what should i put instead of "--here??" ,is that serverside or client side ,thanx for your help :)

  7.   
    local Col = createColCuboid(1290.5771,2100,11.0156, 300, 100, 30) 
    local pArea1 = createRadarArea( 1290.5771,2100,200, 150, 32, 32,32) 
      
      
    function shapeHit ( thePlayer )  
      
     givePlayerMoney (thePlayer , 1000 ) 
    end 
      
    addEventHandler('onColShapeHit', Col,shapeHit) 
      
      
    

    that all what i made

×
×
  • Create New...