m4rsje Posted July 7, 2010 Share Posted July 7, 2010 o cmon let me make that snake! Make it if u got problems call me o.. okay ill just try it, watch the biggest fail, never worked with acl's before ill just take your script and add some lines Link to comment
Castillo Posted July 7, 2010 Share Posted July 7, 2010 o cmon let me make that snake! Make it if u got problems call me o.. okay ill just try it, watch the biggest fail, never worked with acl's before ill just take your script and add some lines He asked for give weapons if im right then add lines "giveWeapon(source,weaponid,ammo)" Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 my script or ? i still need those guns that all im asking and an ingame acl editor lol Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 i already did add them function isZarAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") 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 giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 500) end end end end return false end i added: - nightstick - desert eagle - mp5 - m4 - tear gass Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 lawl thanks should i make an new script for this or add it into the same script ? Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 replace it with the other one. lol its made by snake, but i just edited it alitle so you get weps, 99% credits to him for making the script 1% to me for adding the weps Link to comment
Castillo Posted July 7, 2010 Share Posted July 7, 2010 i already did add them function isZarAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") 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 giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 500) end end end end return false end i added: - nightstick - desert eagle - mp5 - m4 - tear gass I dont think this will work , maybe u should try like this, local root = getRootElement() addEventHandler("onResourceStart", root, function() team = createTeam ("Z.A.R.S.", 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, math.random(0,264), 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) else end end addEventHandler("onPlayerLogin", root,login) function isZarAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") 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 Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 ugh true, im at the wrong part of the script again stopid me Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 allright so the code would look like this or ? local root = getRootElement() addEventHandler("onResourceStart", root, function() team = createTeam ("Z.A.R.S", 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 ) fadeCamera (source, true) setCameraTarget (source, true) else end end addEventHandler("onPlayerLogin", root,login) function isZarAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") 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 giveWeapon (source, 3, 1) giveWeapon (source, 24, 500) giveWeapon (source, 29, 500) giveWeapon (source, 31, 500) giveWeapon (source, 17, 500) end end end end return false end Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 nop, use the one from snake. mine isn't good, i keep editing the wrong part, its a kind of sickness Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 YAY it worked guys my script is finally done for making more teams ill just have to dublicate the script ill guess ? Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 yeah kind of, you make a new group and make a new script to that with the [Z.A.R.S.] copy that one. and rename it Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 allright thanks guys ! Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 couldn't do it without snake, so thank him abit more then me Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 ima thank you both well ima make a new thread about gatesystem Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 i could help? hahah its just a moveObject. not that hard Link to comment
Castillo Posted July 7, 2010 Share Posted July 7, 2010 ima thank you both well ima make a new thread about gatesystem lol okay, im off soon anyway Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 solid? want to help me rewriting a fuel system? if i get stuck. 50p helps me too, (some times ) Link to comment
Castillo Posted July 7, 2010 Share Posted July 7, 2010 solid? want to help me rewriting a fuel system?if i get stuck. 50p helps me too, (some times ) Sure dude, this is a help forum. btw u have a msn or somthing? to dont post like 100 post Link to comment
m4rsje Posted July 7, 2010 Share Posted July 7, 2010 (edited) you added me so i removed for privacy <3 Edited July 7, 2010 by Guest Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 BTW guys how can i do so if an zars member is killed he will be respawned at hes base again ? Link to comment
Castillo Posted July 7, 2010 Share Posted July 7, 2010 BTW guys how can i do so if an zars member is killed he will be respawned at hes base again ? local root = getRootElement() addEventHandler("onResourceStart", root, function() team = createTeam ("Z.A.R.S.", 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, math.random(0,264), 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) else end end addEventHandler("onPlayerLogin", root,login) function isZarAccount(account) local nick = "" local group = aclGetGroup("[Z.A.R.S]") 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, math.random(0,264), 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, 1800, 1, source) end end ) this should work, at least works for me Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 allright ill test it thx Link to comment
gudenmike Posted July 7, 2010 Author Share Posted July 7, 2010 It Works perfectly thx mate d: Link to comment
liamknight24 Posted October 7, 2010 Share Posted October 7, 2010 https://community.multitheftauto.com/index.php?p= ... ils&id=612 to change the acl just use your admin panel and click on the resources tab then click manage ACL. EDIT: i didnt realise i was too late Link to comment
Recommended Posts