ZuKoMTA Posted April 3, 2015 Share Posted April 3, 2015 Hello . I would like you to help me with skryptek , which should add a tag . This is not my script . I do not know how it works. Could you explain it for me ? I would like to make it work for TFF DM . clanPlayers[] = { "TFG~", "Name2", "Name3" } local colorCodeRed[] = {255,0,0} local colorCodeGreen[] = {0,255,0} local colorCodeBlue[] = {0,0,255} setTimer(function() if isInClan(source) == true then setPlayerName(source,"TFG~/"..getPlayerName(source)) end end,1000,0) function isInClan(player) local name = getPlayerName(player) for i,v in ipairs (clanPlayers) do if name == clanPlayers[1] then return true end end return false end Link to comment
ALw7sH Posted April 3, 2015 Share Posted April 3, 2015 source is not defined in the timer and in the function isInClan why you are doing loop and there's player argument and you dont have to put [] in the table name and the varbs. the whole code is worng can you just explain what you are trying to do? Link to comment
ZuKoMTA Posted April 4, 2015 Author Share Posted April 4, 2015 can you just explain what you are trying to do? I would like the player who enters the TFG ~ to nick . Getting to him 255,87,0 color , and every 4 seconds changed color 0,255,0 1 second , and then again 255,87,0 . Codes gives sloppy . I just want it to look like on the server TFF Link to comment
ALw7sH Posted April 4, 2015 Share Posted April 4, 2015 in TfF it's something like that setTimer( function() setTeamColor(getTeamFromName("TFG~"),math.random(50,255),math.random(50,255),math.random(50,255)) setTimer(setTeamColor,100,1,getTeamFromName("TFG~"),255,87,0) end,1101,0) Link to comment
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