
gudenmike
Members-
Posts
48 -
Joined
-
Last visited
Everything posted by gudenmike
-
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
-
lawl thanks should i make an new script for this or add it into the same script ?
-
my script or ? i still need those guns that all im asking and an ingame acl editor lol
-
but anyways got an code i can put inside the script making teams start with guns (and not normal players)
-
well ill see if the admin panel works editing ACL ingame on my real server (im using an testserver ive created locally to test scripts while the other is down )
-
ive allready did edit it would just be alot easy'er editing acl ingame hmm got a code for making "Z.A.R.S" members only start with "nitestick, deagle, mp5 and m4 (and maybe teargas:D)"
-
lawl got any ideas why this couldt work ? do i have to make an acl inside the group or ?
-
well no errors but when i click at "Add Object" nothing happends at all
-
you still havnt told me why i cant use ingame acl editor from admin panel
-
haha yea i know i thought you meant an acl for the script itself anyways why cant i add an "user."name") from admin panel ?
-
what if i havnt made any acl.xml ? and what do i have to put inside the tutorials never showed me
-
wow your confusing me now solid.. how can i add members without restarting server ?
-
ehm.. how do i add them to ACL ? lame question but anyways and what to add inside it ?
-
m4rsje well im trying to make a script that will start with the server and auto put people that's inside the acl into the teams you get what i mean ? and is this possible ? well i guess it is EDIT: Z.A.R.S members start at one place and survivors start another place
-
ohh and if i dublicate this script for more teams will it work ?
-
Well solid.. i want it to be like if people are in a group (maybe acl) they would be moved to the team but not just that people change there name and getting moved auto.. you understand what im trying to tell ?
-
well guys nice scripts but i were wondering how can i make it check if players have [Z.A.R.S] in their name ? and then they will be automoved if they have the tag in their name ? what commands should i use and could you maybe show me an example well the reason that ill need this is because im an admin on a zombie server and we're making it an rp so we need factions EDIT: i want people to have the SWAT or COP2 skin so ill guess i just have to add that instead of random skin ? well first of all i need to figure out how i remove the thing that auto gives an player a random skin ohh another question.. can i make [Z.A.R.S] members start on the base when they die ? sorry for aksing you for the script but ive only just began learning it
-
Allright doomed when you say bracket you mean " ) " aight ? if that's it ive removed it
-
Hi guys i were wondering if you could help me abit i wanna create an autoteaming for mta (when you join and got a nametag in your name ([Z.A.R.S]) you will be putted on a team) well this is my code spawnTeam = createTeam ("[Z.A.R.S]", 0, 0, 255) -- Create team to spawn. function spawnOnLogin (prevA, curA, autoLogin) outputChatBox ("Welcome to Zombie Apocalypse Rescue Squad HQ", source, 255, 0, 0, false) spawnPlayer (source, -2246.7751464844, 2283.3193359375, 5, 0, math.random (0,288), 0, 0, spawnTeam) -- spawns player with random skin fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerLogin", getRootElement(), spawnOnLogin) Ive tried that code it didnt work ;/ any hint about what i can do ? i SUCK at codeing but ive tried alittle EDIT: ive tried autoteam from resource site i didnt get it to work ive searched for it but nothing worked for me
-
i dont know how to make that box -.- ? its an ingame editor.. you spawn your gate and move it around with some controls
-
well varez im trying to using autoteames (public resource) here is the config ..xml i dont see what ive made wrong ? im also using gatemaker (or trying to..) theres no config file for that it just simply wont create that gate..
-
well.. varez ive may have done something wrong i just didnt get them to work ive tried all of those ive asked about but i just cant get it to work.. maddogg - well for number 1. ive tried using gatemaker.. so i make the gate and where its going to be moved to and the collision thing but then i press enter the gate disappers then i restart the res. as said i have to the gate isnt there 3. i really dont know whats wrong it just doesnt make the teams or anything ;/ 2. well i actually doesnt know i might post an thread in a week when the server owner comes home and guys.. i would like to learn to script but i dont got the time.. anyway thanks you all
-
Hello im gonna ask for 3 questions 1. anyone who knows how i can make a gate ;/ ? ive searched for it but i didnt find anything that worked ;/ ive found a code for it for the gate doesnt spawn... ive used the "gatemaker" from the resource list but that didnt work nether... 2.Can you help me with a script that saves your skin, cash guns and those stuff ? its being a pain in the ass that i cant find any working script of those -.- 3. Autoteam.. ill need an autoteam, a script that auto puts you to a team if you got (expample - [Z.A.R.S]) in your name ive tried the autoteam script from the recourse side it didnt work ;/ nether well sorry for asking that way i got no experience at all (scripting) so ill hope you can help me