Jump to content

Blackvein

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by Blackvein

  1. Hey forum, I'm looking for a fairly advanced scripter to help me with my zombie roleplay server I'm starting up. I'm using the ZDay script, as well as a few other basic ones. The scripts I need will vary in simplicity, and as mentioned in the subject, you will be paid for your efforts. You do not need to commit yourself too much for this job, but I do require you to put some time aside to work on scripts I need. That is, if you take me up on my offer. It will be a sort of "off-and-on" job, because I won't need you 24-7. Therefore, payment will not be based on the time you spend scripting, but rather the scripts I need, and how difficult they are. EDIT: The payments will be sent via PayPal If you are interested, PM me, send me an e-mail at [email protected]. Thank you
  2. Just wondering if theres a way to use math.random, and exclude certain values. Example: (math.random 17,25 excluding 21 and 22) Can anyone help?
  3. Blackvein

    Problem :(

    Hey guys, I have this team script, but there's a problem with it I can't seem to find. Players that belong in the 'Police' ACL group aren't automatically put into the 'Police' team when they login. Can anyone help? local root = getRootElement() addEventHandler("onResourceStart", root, function() team = createTeam ("Police", 0, 0, 255) end ) function login() local taccount = getPlayerAccount ( source ) if isZarAccount(taccount) then setPlayerTeam ( source, team) outputChatBox ("Welcome to Zombie Apocalypse Rescue Squad HQ", source) spawnPlayer (source, -2246.7751464844, 2283.3193359375, 5, 90, 281, team ) giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 50) fadeCamera (source, true) setCameraTarget (source, true) else end end addEventHandler("onPlayerLogin", root,login) function isZarAccount(account) local nick = "" local group = aclGetGroup("Police") if (account and group) then nick = string.lower(getAccountName(account) or "") for _, object in ipairs(aclGroupListObjects(group) or {}) do if (gettok(object, 1, string.byte('.')) == "user") then if (nick == string.lower(gettok(object, 2, string.byte('.')))) then return true end end end end return false end function spawn(source) spawnPlayer (source, -2246.7751464844, 2283.3193359375, 5, 90, 281, team ) giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 500) fadeCamera (source, true) setCameraTarget (source, true) end addEventHandler("onPlayerWasted", root, function() local taccount = getPlayerAccount ( source ) if isZarAccount(taccount) then setTimer(spawn, 2000, 1, source) end end )
  4. is it possible to bind arguments to a key? the syntax for the command i want to bind is ''/spawnbot [skinid] [weaponid]''. i can bind a button to the command ''spawnbot'', but im just wondering how i would be able to add the skin and weapon arguments. can anyone help?y
  5. As the title says, is there a way to replace the vehicles.col, and then reload it so everyone has different collisions for certain vehicles? If so, can someone write a quick script? That'd be great. Thanks
  6. *facepalm & sigh* now im getting THIS error: [2010-07-17 15:13:30] SCRIPT ERROR: Medic/medicScript.lua:20: 'end' expected (to close 'if' at line 6) near '<eof>' [2010-07-17 15:13:30] WARNING: Loading script failed: Medic/medicScript.lua:20: 'end' expected (to close 'if' at line 6) near '<eof>' addCommandHandler( "heal", function( plr, cmd, victim ) local myName = getPlayerName( plr ); if ( isObjectInACLGroup( "user." .. myName, aclGetGroup( "Medic" ) ) ) then local victimPlr = getPlayerFromName( victim ); if victimPlr then local victimName = getPlayerName( victimPlr ); local x,y,z = getElementPosition( plr ); local x2,y2,z2 = getElementPosition( victimPlr ); if getDistanceBetweenPoints3D( x,y,z, x2,y2,z2 ) <= 1 then if getElementHealth( victimPlr ) < 80 then setElementHealth( victimPlr, 80 ); outputChatBox( myName .. " has given medical attention to ".. victimName ); else outputChatBox( victimName .. " does not require medical attention!", plr ); end else outputChatBox( "You are not close enough to " .. victimName .. "!", plr ); end else
  7. Blackvein

    /ss ??

    Can someone make a quick and simple script to change a players skin, with the following syntax? /ss [skinid]
  8. Arrrgh, it was working fine, but all of a sudden console is returning this error: [2010-07-16 10:43:29] ERROR: Medic/medicScript.lua:4: attempt to call global 'getACLGroup' (a nil value) addCommandHandler( "heal", function( plr, cmd, victim ) local myName = getPlayerName( plr ); if ( isObjectInACLGroup( "user." .. myName, getACLGroup( "Medic" ) ) ) then local victimPlr = getPlayerFromName( victim ); if victimPlr then local victimName = getPlayerName( victimPlr ); local x,y,z = getElementPosition( plr ); local x2,y2,z2 = getElementPosition( victimPlr ); if getDistanceBetweenPoints3D( x,y,z, x2,y2,z2 ) <= 1 then if getElementHealth( victimPlr ) < 80 then setElementHealth( victimPlr, 80 ); outputChatBox( myName .. " has given medical attention to ".. victimName ); else outputChatBox( victimName .. " does not require medical attention!", plr ); end else outputChatBox( "You are not close enough to " .. victimName .. "!", plr ); end else outputChatBox( "No player found with '".. victimName .. "' name!", plr ); end end end )
  9. hmm, I changed ''medic'' to ''heal''. Still, nothing happens when i type /heal [playername]. I noticed that console returns 2 errors when I load the medic script. [2010-07-15 18:01:25] SCRIPT ERROR: Medic/medicScript.lua:4: ')' expected near 'then' [2010-07-15 18:01:25] WARNING: Loading script failed: Medic/medicScript.lua:4: ')' expected near 'then' Heres the script just in case: addCommandHandler( "heal", function( plr, cmd, victim ) local myName = getPlayerName( plr ); if ( isObjectInACLGroup( "user." .. myName, getACLGroup( "Medic" ) ) then local victimPlr = getPlayerFromName( victim ); if victimPlr then local victimName = getPlayerName( victimPlr ); local x,y,z = getElementPosition( plr ); local x2,y2,z2 = getElementPosition( victimPlr ); if getDistanceBetweenPoints3D( x,y,z, x2,y2,z2 ) <= 1 then if getElementHealth( victimPlr ) < 80 then setElementHealth( victimPlr, 80 ); outputChatBox( myName .. " has given medical attention to ".. victimName ); else outputChatBox( victimName .. " does not require medical attention!", plr ); end else outputChatBox( "You are not close enough to " .. victimName .. "!", plr ); end else outputChatBox( "No player found with '".. victimName .. "' name!", plr ); end end end )
  10. Thanks a lot 50p ur the best. EDIT: It doesn't appear as though there's any part of the script that mentions a ''/heal'' command. If I type /heal ingame, literally nothing happens. Did you script another way of healing other players?
  11. 10$ US via Paypal to the first person to successfully make a 'medic' script that meets the following requirements: - Only people in a specific ACL group are medics. - A medic can type this command: "/heal [playername]" and the following action will take place: *If the medic is within 1 Z, X and Y coordinate of [playername], [playername]'s current health will be set to 80, if [playername]'s health was below 80 to begin with.* - When a medic types /heal [playername], the following text is ouput into the global chatbox: "[medicname] has given medical attention to [playername]. -If the medic is not within 1 Z, X and Y coordinate of [playername], the following text is output into the medic's local chat: "You are not close enough to that player!" -If [playername]'s health is above 80, the following text is displayed into the medic's local chat: "That player does not require medical attention!" I think the hardest part would be checking to see if the medic is within 1 Z, Y and X coordinate of the player, but with a little effort, and heart , i think it can be done. Plus you get 10 bucks! Please put some thought into this if you are a good scripter. Thanks!
  12. Hello, I've made a server called 'Zombie Nombie Apocalypse', that uses the 'zombies' script. There's a CRAPLOAD of features on it, here are just some of them: - Lounge that players spawn in to chill. - Money is received from killing zombies, which can be used to purchase guns, vehicles, and skills. - A hidden 'storyline treasure hunt'. - A player house system. - A radio system. The main reason I posted this is because I need moderators. If you would like to be one, please PM me with an application, and tell me why you should be selected. Thanks
  13. Blackvein

    Blip list?

    Not sure if this is the right section, but here goes: I've searched all over the forums, Google, everything, but I can't find a list of all the blip IDs. Can anyone provide a link or something please? -Thanks
  14. Blackvein

    Hunger?

    The reason I asked is because I REALLY suck at scripting. I wasn't really thinking of having a 3rd bar, I was just thinking of having a counting down invisible variable that alerts a player when it reaches 20 for example. If it's that easy can u do it? Ill pay you if you want
  15. oh ok thanks, ignore the pm i sent ya.
  16. sorry, I'm pretty new to scripting, can you dumb that down a bit? EDIT: The script.lua is set to 'server' in the meta.xml, if I changed that to client, would that help? --> <script src="script.lua" type="server"/>
  17. I have a simple script that displays local text in the chatbox when a player walks into it, and it works fine. Now I want to make it so it plays a .wav file when a player walks into it. I don't see the problem in my script, but obviously there is one. Here it is: function markerHit( hitPlayer, matchingDimension ) if (source == marker1) then outputChatBox ( "" .. text1a .. "", hitPlayer, 0, 255, 0 ) outputChatBox ( "" .. text1b .. "", hitPlayer, 0, 255, 0 ) outputChatBox ( "" .. text1c .. "", hitPlayer, 255, 0, 0 ) elseif (source == marker2) then outputChatBox ( "" .. text2a .. "", hitPlayer, 0, 255, 0 ) outputChatBox ( "" .. text2b .. "", hitPlayer, 0, 255, 0 ) [color=#FF0000]elseif (source == marker3) then [/color] [color=#FF0000]outputChatBox ( "" .. text3a .. "", hitPlayer, 0, 255, 0 )[/color] [color=#FF0000]local sound = playSound("distress.wav",false)[/color] end end addEventHandler ( "onMarkerHit", getRootElement(), markerHit ) Upon hitting marker 3, text3a is displayed, but distress.wav is not played. I checked the server console, and the following error was returned: [2010-07-11 20:18:59] ERROR: TextMarkers/script.lua:22: attempt to call global 'playSound' (a nil value) Any help would be greatly appreciated!
  18. Blackvein

    Hunger?

    Has anyone ever made a hunger script? If so, can someone give a link here please? If not, I'm willing to pay the first person who successfully makes a hunger script that meets the following requirements: - Player's hunger constantly decreases over time - Player is warned when hunger reaches low levels *-Markers are created at given locations, that when entered, fully replenish Player's hunger. - Player slowly begins to lose health when hunger reaches 0. *If you can come up with another way to refill hunger, that's ok too. Payment can be negotiated over MSN. My MSN is [email protected] Thanks
  19. Yes I have tried using that script, but I can't seem to get it to automatically assign new players to a team. I set the aclgetgroup to Everyone, but it doesnt change newly registered players to the designated team.
  20. Hey, I'm trying to make a script so that when a new player registers, they are automatically assigned to a team called ''Survivors''. Everything works fine except for the core part of it , new players aren't automatically assigned to it. Here's my script: *Spawn part* function login() local taccount = getPlayerAccount ( source ) if isZarAccount(taccount) then setPlayerTeam ( source, team) outputChatBox ("You're a survivor.", source) spawnPlayer (source, 246.61526489258, 1860.2613525391, 14.084012985229, 90, 70, team ) fadeCamera (source, true) setCameraTarget (source, true) else end *isZarAccount part* function isZarAccount(account) local nick = "" local group = aclGetGroup("Everyone") if (account and group) then nick = string.lower(getAccountName(account) or "") for _, object in ipairs(aclGroupListObjects(group) or {}) do if (gettok(object, 1, string.byte('.')) == "user") then if (nick == string.lower(gettok(object, 2, string.byte('.')))) then return true --------------------------------------------------------------------------------- I think the problem is that it doesn't automatically assign new players to the Everyone acl group. Can anyone help?
×
×
  • Create New...