Jump to content

Blackvein

Members
  • Posts

    22
  • Joined

  • Last visited

Details

  • Gang
    Varrios Los Aztecas

Blackvein's Achievements

Civilian

Civilian (7/54)

0

Reputation

  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
×
×
  • Create New...