geeko17 Posted November 16, 2010 Posted November 16, 2010 (edited) ingles help this script that's private to my rio clan thing you need is that this paper will serve me for several teams the truth only 1 that works for me is the admin español help este script ese de private clan para mi rio nececito que este escrito me sirva para varios teams la verdad solo me funciona para 1 que es el admin is hard english traslator google thing you need is help to put multiple teams this script is the private clan that I only work-in-1 is admin thing you need is that I work for several teams help me my game mode is the river addEventHandler("spawnteam",getRootElement(), teams) function isAdminAccount(account) local nick = "" local group = aclGetGroup("Admin") 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 completo full if teamSelection == "Admin" then local taccount = getPlayerAccount ( source ) if isAdminAccount(taccount) then setPlayerTeam ( source, teamAdmin ) local x,y,z x = 954 y = -912 z = 46 spawnPlayer ( source, x,y,z ) fadeCamera(source, true) giveWeapon ( source, 3, 1 ) giveWeapon ( source, 24, 500 ) giveWeapon ( source, 31, 500 ) giveWeapon ( source, 28, 500 ) setElementHealth ( source, 100 ) setPlayerNametagColor ( source, 0,180,255) setPedSkin ( source, 287 ) playSoundFrontEnd ( source, 45 ) setTime ( hour, mins+1 ) else outputChatBox ( "You must be logged in as admin", source, 255,0,0 ) triggerClientEvent(source, "onTeamadmin", getRootElement(),source) end end setTime ( hour, mins+1 ) startSpawnProtection(source) setCameraTarget(source,source) for i=59,81 do setPedStat(source, i, 1000) end --outputDebugString(getPlayerName(source).." Spawned! Team: "..getTeamName(getPlayerTeam(source))) end addEventHandler("spawnteam",getRootElement(), teams) function isAdminAccount(account) local nick = "" local group = aclGetGroup("Admin") 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 ayuda nececito crear teams private y solo me funciona eso en solo el admin creo otro con el mismo codigo y el server me tira error "end" nececito para varios teams pliss Edited November 16, 2010 by Guest
dzek (varez) Posted November 16, 2010 Posted November 16, 2010 this is english forums - use english. i don't understand you. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
Kenix Posted November 16, 2010 Posted November 16, 2010 use translator google.com http://vk.com/the_kenix Вопросы задавайте на форуме, не пишите мне в личку. Please don't pm me.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now