
Xeno
Members-
Posts
728 -
Joined
-
Last visited
Everything posted by Xeno
-
I think he's on about the speed of his server..? If so, buy more RAM or something...
-
Perhaps I have tested it wrong, ill use my better PC tomorrow to test it, as I am on my netbook at the moment.
-
So this IS correct? teamUnemp = createTeam("Unemployed",204,204,153) if (team) then setPlayerTeam(source, getTeamFromName(team)) else setPlayerTeam(source, getTeamFromName("Unemployed"))
-
I THINK theres something wrong... It sends me to the police force team before i've logged in? and I made a new account and stuff and its the same.. EDIT: I got it working, but it doesnt send me to a team? Im just not in a team now?
-
Thank you, and thanks for the quick reply! Ill test it now man
-
function setTeam() local account = getPlayerAccount(source) local team = getAccountData (account, "team") if (team) and getTeamFromName(team) then setPlayerTeam(source, getTeamFromName(team)) end end addEventHandler("onPlayerLogin",root,setTeam) function save(player) local team = getPlayerTeam(player) local account = getPlayerAccount(player) if (team) and not isGuestAccount(account) then setAccountData(account, "team", getTeamName(team)) end end addEventHandler ( "onPlayerLogout", root, save )
-
Hey guys, Its hard to explain, but ill try... Team 1 Team 5 Im trying to get it so when a new player joins, he is sent to Team 1. (wtf that wasnt hard to explain..........................) Anyway, thanks, and this is what I got so far : function onFirstJoin(player) local redteam = getTeamFromName ( "Team 1" ) setPlayerTeam ( source, redteam ) end addEventHandler("onPlayerLogin",root,onFirstJoin) But I have it so it SAVES the team your in when you leave, and this script changes that so every time you join your automattically sent to team 1. Please help, thanks.
-
Hey guys, I didn't know where to post this, so I just threw it in here. Im looking for a mapper for a Freeroam server that will be opening soon. Contact me for details if your interested. I will be needing.... -Sky ramps around SF And maybe more in other airports. If you make a map for us and we use it, you will get Mod ingame. Thats all bye, (PM me if your interested)
-
That has worked perfectly, thanks a bunch :3 And thanks for all the other people who put in information to<3
-
Alright man I will be ordering from them soon!
-
I'm thinking of buying a server, and I need some advice, is J solutions safe to buy from? And if I did order the server, would the payment reoccur over the months, or can I stop it if I dont want the server anymore? Thats all, thanks and bye ;3
-
Im sure this works, but im new to scripting and not totally sure, I ussually look it up before posting, but here it is off the top of my head... function createPed() createPed(123,3432,7989,8965, 190) end addEventHandler("onResourceStart", getElementRoot(), createPed) Lol... sorry if thats wrong, im not sure.
-
I get two erros when I login: Bad argument @ getPlayerAccount [Expected Elemtn at argument , got nil] attenmpt to concatenate global "accountName" (a nil value)
-
I like the new one...Its awesome. I dont see the problem with it...
-
I sometimes get this
-
1. How would I make it so if an Admin logged on, his team would be changed to admin? Heres what I got so far... function onAdminJoin() if isObjectInACLGroup("user." .. playerName, aclGetGroup ("Admin" ) ) then local team =getTeamFromName("Admins") setPlayerTeam (source, team) end addEventHandler("onPlayerLogin", getRootElement(), onAdminJoin) This doesnt seem to work... Please help
-
That did it, thanks bro. 1 More thing, how would I create a script that changes the team to Admin when an Admin logs in? I just had a quick go but failed...
-
It does not seem to work... And I get no errors. EDIT: I actually get a bad argument at setPlayerTeam
-
How would I do this, i tried it and this is what I got so far... function onJoin(player) setPlayerTeam(player, "Guests") end addEventHandler("onPlayerJoin", getRootElement(), onJoin) It does not seem to work...
-
Why don't you make a script containing a gate and code it from there?
-
So if I were to have (001,025,999,290,"Would you like Line1\ Hello test nLine2\ Hello Test" Is that how I would do it?
-
I feel so embarrassed to ask this, but how do I skip a line in a memo when writing a code? Like how do I paragraph it?
-
Your absolutely right. I missed an end Hah. Thank you Castillo for your help. And thank you JR10 For your advice ;3 1 more thing... How do you get something to check ACL? Like... How would I make it so it checks ACL on marker hit?