Zokan
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by Zokan
-
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
-
thanks it work
-
now come an error message: WARNING: test/test.lua:28: Access denied @ 'startResource'
-
No it not work it come an error message: ERROR: test/test:28: attempt to ca ll global 'getResoruceFromName' (a nil value)
-
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 = startResource ( mil_protection ) elseif (toxogletb == 1) then stopResource(mil_protection) end end end end addEventHandler ("onMarkerHit", marker, tooglelstart)
-
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 )
-
You can start or stop a resource if you go into a marker? MFG Zokan
-
yes and he would then no longer get into the area only if he can back out
-
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
-
it come an error message: WARNING: test/ad_base_s.lua:51: Bad argument @ ' addEventHandler' [Expected element at argument 2, got function]
-
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 ( thePlayer ) end end end addEventHandler ( "onClientRender", ColShapeHit )
-
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 )
-
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 )
-
thanks it works does it also somehow you can not then get the jetpack as long as you are in the Col? MFG Zokan
-
That does not work with the jetpack he does not get it taken away Here's my script: function hit ( pla, source ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then outputChatBox ( "Welcome, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) if ( doesPedHaveJetPack ( source ) ) then removePedJetPack ( source ) outputChatBox ( "***Admin Area***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." has entered the Admin Area!", g_root, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla).." please left the Admin Area!", pla, 255, 0, 0 ) end end end end addEventHandler ( "onColShapeHit", g_base_col, hit ) error message: Warning: test/test.lua:42: Bad argument @ ´doesPedHaveJetPack`
-
Hello people I have a few questions 1.I am looking for a script that takes away someone's jetpack when he flies into a specific area or as long as he's in there also may get none at all .... Is there such a script? 2. I've created a script. It should create a Col or delete the Col with a command. The delete works but does not create the why? Here's the script: g_base_col = createColCuboid ( 130.09884643555, -2079.8127441406, -10, 250, 300, 500 ) function colhin ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then destroyElement ( g_base_col ) end end end addCommandHandler ( "set", colhin ) function colhin1 ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then g_base_col = createColCuboid ( 130.09884643555, -2079.8127441406, -10, 250, 300, 500 ) end end end addCommandHandler ( "set1", colhin1 ) MFG Zokan
-
Hello I have a problem it can no longer join on my Hamachi network (I already own)! 2 days ago it did not work out. What should I do! LG Zokan