-
Posts
85 -
Joined
-
Last visited
Everything posted by [DemoN]
-
There are a lot of DD maps -.-
-
I can help you! Nah just kidding... As JR10 said: You should pay for scripts or make em yourself...
-
I've added a button to my FR Gui called 'icons'. When I click icons button, a window appears. Here is my code ( in fr_client.lua below the setskin command and setskin window): ---------------------------- -------- Icon window ------- ---------------------------- wndIcon = { 'wnd', text = 'Icon Window', width = 250, controls = { { 'lst', id='iconlist', width=230, height=280, columns={ {text='Icons', attr='name'} }, rows={xml='icons.xml', attrs={'id', 'name'}}, onitemdoubleclick=function(leaf) attachElements(leaf, g_Me, 0, 0, 1.5) end }, {'btn', id='Use', onclick=attachElements}, {'btn', id='Close', closeswindow=true} } } I have preapared an icons.xml file: <catalog type="icons"> <object id="1559" name="Arrow" /> <object id="954" name="Horse Shoe" /> <object id="1212" name="Money" /> <object id="1239" name="Newbie (Info Icon)" /> <object id="1240" name="Fall in Love" /> <object id="1241" name="Drug" /> <object id="1242" name="Safe" /> <object id="1247" name="I am popular" /> <object id="1254" name="Serial Killer" /> <object id="1274" name="Rich" /> <object id="1275" name="Poor" /> <object id="1276" name="Magic" /> <object id="2768" name="Hunger" /> <object id="2916" name="Strong" /> <object id="953" name="Searching Strange Things" /> </catalog> I want to make that: When I click an item in grid list, selected item will be attached to source (attachElementToElement(selectedItem, source, 0, 0, 1.5, 0, 0, 0)) and without collisions like that: but as you can see (look at first picture) there is no item in the grid list and i don't know where to put setElementCollisionsEnabled function -.- Please Help Me!
-
you can disable hunter missiles with onPlayerVehicleEnter and setPedControlState...
-
1) I want to learn if we can disable heli-killing. 2) How can I attach a name and a health bar to peds like normal players? (is there any command called createHealthBar )
-
Edit: I didn't make this video. just found on youtube and I have same problem...
-
Because it must be like this: local team = getPlayerTeam(hitPlayer) it's not Castillo's mistake. if you use [lua][/lua] it automatically turns it into: local team = getPlayerTeam" class="kw2">getPlayerTeam(hitPlayer)
-
just wait guys. I think he'll go away...
-
Stop Stealing Ideas and scripts! This command is from DKR! If you don't believe me, just go and type /attach in DKR! I checked help.xml and think what I have found; <help title="Attach" section="DKR"> Attach /attach - this brings up or hides the window. You attach any of the objects in the list by double clicking the list item. Double clicking the item again removes the object. The placement of the objects don't fit with all cars, but you can move the objects so they fit whatever car you are using. While you have the window open you select the object that you want to move (note it has to be attached) then you can move it using the numpad : 8 and 2 move the object up and down. 4 and 6 move the object left and right. 7 and 8 move the object front and back. 1 and 3 rotate the object on the z axis. Arrow keys rotate on the other axises. Any changes you make to the objects will be lost when you remove the object. Also note that there is a bug with the hydraulics upgrade. If you add the hydraulics upgrade while you have objects attached some might dissappear. You have been warned </help> says everything! And you didn't compile it. Stoney made this resource and He has compiled it...
-
function ejectTarget (source, command, targetPlayer) if isPedInVehicle(targetPlayer) then removePedFromVehicle(targetPlayer) else outputChatBox("Target is not in a vehicle.", source, 255, 255, 255, true) end end addCommandHandler ( "eject", getRootElement() ejectPlayer ) It says: Bad argument @ isPedInVehicle I don't know what to do...
-
I don't know how to use tables so i use alot of elseif command... and Thanks for helping....
-
Everything is fine but it still says: WARNING: scripts\serverTeams.lua:2: Bad argument @ 'getPlayerAccount'
-
local memberTeam = createTeam("Member", 0, 255, 0) local vipTeam = createTeam("V.I.P.", 0, 255, 255) local account = getPlayerAccount(source) function setTeams( source ) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then setPlayerTeam1( source, memberTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Moderator' ) ) then setPlayerTeam2( source, memberTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Member' ) ) then setPlayerTeam3( source, memberTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'V.I.P' ) ) then setPlayerTeam4( source, vipTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Scripter' ) ) then setPlayerTeam5( source, memberTeam ) else outputChatBox("You have successfully logged in.", source, 255, 0, 0) end end addEventHandler("onPlayerLogin", getRootElement(), setTeams) ok?
-
Do you mean that? local memberTeam = createTeam("Member", 0, 255, 0) local vipTeam = createTeam("V.I.P.", 0, 255, 255) local account = getPlayerAccount(source) function setTeams( source ) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then setPlayerTeam(source, memberTeam) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Moderator' ) ) then setPlayerTeam(source, memberTeam) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Member' ) ) then setPlayerTeam(source, memberTeam) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'V.I.P' ) ) then setPlayerTeam(source, vipTeam) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Scripter' ) ) then setPlayerTeam(source, memberTeam) else outputChatBox("You have successfully logged in.", source, 255, 0, 0) end end addEventHandler("onPlayerLogin", getRootElement(), setTeams)
-
I was making a script but It says: ERROR: scripts\serverTeams.lua:3: Bad argument @ 'getPlayerAccount' Here is my code; (EDIT: setPlayerTeam" class="kw6">setPlayerTeam( source, memberTeam ) ACTUALLY: setPlayerTeam(source, memberTeam) dunno why it is posting like that ) local memberTeam = createTeam("Member", 0, 255, 0) local vipTeam = createTeam("V.I.P.", 0, 255, 255) local account = getPlayerAccount(source) function setTeams( source ) if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) then setPlayerTeam1( source, memberTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Moderator' ) ) then setPlayerTeam2( source, memberTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Member' ) ) then setPlayerTeam3( source, memberTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'V.I.P' ) ) then setPlayerTeam4( source, vipTeam ) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Scripter' ) ) then setPlayerTeam5( source, memberTeam ) else outputChatBox("You have successfully logged in.", source, 255, 0, 0) end end addEventHandler("onPlayerLogin", getRootElement(), setTeams)
-
1-) I was making an invisible ped script but I can't make its shadow invisible. Is there any command make the shadow invisible? 2-) Is there any command warp any ped as a passenger to vehicles? Thanks in advance...
-
Thank you. and thank you for this script Castillo
-
If I close playercolors res., my script wont work because i'm working on it as Clan Tags. Oh, really? If you know where i can find it, please tell me Castillo. I need it. Or tell me how can i make a script like that? when you type on your server, it will output (If you are admin and your nick is Castillo): [MM]Castillo (for example). Thanks for helpings but it still outputs twice. I think i won't make it correct
-
it still outputs twice. Try it on your pc. If it's correct, tell me lol
-
how can you make a dm map under the water?
-
SCRIPT ERROR: playercolors\playercolors.lua:43: 'end' expected (to close 'function' at line 22) near '' WARNING: Loading script failed: playercolors\playercolors.lua:43: 'end' expected (to close 'function' at line 22) near '' not working and still outputs twice
