Jump to content

Zokan

Members
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Zokan

  • Rank
    Square
  1. Hello I am looking for a script for the minigun. I want to shoot a particular missile minigun. Instead of ball. Is this possible? MFG Zokan
  2. now come an error message: WARNING: test/test.lua:28: Access denied @ 'startResource'
  3. No it not work it come an error message: ERROR: test/test:28: attempt to ca ll global 'getResoruceFromName' (a nil value)
  4. I've tried it so. Please corrected me when something is wrong'm still new and do not understand how true ... Script: marker = createMarker (222, -1956, 1, "cylinder", 1.5, 38, 255, 0, 255, getRootElement()) toxogletb = 0 function tooglelstart( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then if (toxogletb == 0) then if ( mil_protection ) then local resource = getResourceFromName ( mil_protection ) local start = startResour
  5. I have it so, but it does not work marker = createMarker (222, -1956, 1, "cylinder", 1.5, 38, 255, 0, 255, getRootElement()) function startTheResource ( thePlayer, command, resourceName ) if ( mil_protection ) then local resource = getResourceFromName ( resourceName ) local start = startResource ( mil_protection ) end end addEventHandler ( "onMarkerHit", marker, startTheResource )
  6. You can start or stop a resource if you go into a marker? MFG Zokan
  7. Zokan

    2 question

    yes and he would then no longer get into the area only if he can back out
  8. Zokan

    2 question

    No one can come and get the jetpack and it just happens nothing: function ColShapeHit ( thePlayer, matchingDimension ) if getElementType ( pla ) == "player" then if isElementWithinColShape(pla,g_base_col) == true then if ( doesPedHaveJetPack ( pla ) ) then removePedJetPack ( pla ) end end end addEventHandler ( "onClientRender", g_base_col , ColShapeHit ) the other works
  9. Zokan

    2 question

    it come an error message: WARNING: test/ad_base_s.lua:51: Bad argument @ ' addEventHandler' [Expected element at argument 2, got function]
  10. Zokan

    2 question

    sry fabi who can get the jetpack over j function giveJP() if not doesPedHaveJetPack(g_Me) then server.givePedJetPack(g_Me) guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), true) else server.removePedJetPack(g_Me) guiCheckBoxSetSelected(getControl(wndMain, 'jetpack'), false) end end bindKey('j', 'down', giveJP) but it this script not work: function ColShapeHit ( thePlayer, matchingDimension ) if isElementWithinColShape(source,g_base_col) == true then if ( doesPedHaveJetPack ( thePlayer ) ) then removePedJetPack ( thePla
  11. Zokan

    2 question

    no it does not work
  12. Zokan

    2 question

    I have it now so I can still get a jetpack in the Col. Error messages are not ... function ColShapeHit ( thePlayer, matchingDimension ) local detection = isElementWithinColShape ( thePlayer, g_base_col ) if detection then if ( doesPedHaveJetPack ( thePlayer ) ) then removePedJetPack ( thePlayer ) end end end addEventHandler ( "onColShapeHit", g_base_col, ColShapeHit )
  13. Zokan

    2 question

    ok I have it now so every second but then comes an error message can someone help me pls would be nice:) Script: function jetweg( pla, source ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then else if ( doesPedHaveJetPack ( pla ) ) then removePedJetPack ( pla ) end end end end addEventHandler ( "onColShapeHit", g_base_col, jetweg ) setTimer( jetweg, 1000,0 )
  14. Zokan

    2 question

    thanks it works does it also somehow you can not then get the jetpack as long as you are in the Col? MFG Zokan
×
×
  • Create New...