Derek Posted April 4, 2009 Author Share Posted April 4, 2009 There are 0-5 accesses. Player (Dark Yellow), Moderator (Gray), Mapper (Teal), Developer (Dark Blue), Admin (Magenta), and Owner(Bright Yellow)The color by the access name is the color that the player's name changes ingame. So I was wondering how I change the color so when you're a mod, you name is blue, when your an admin, its black, etc.Thanks :afro: Link to comment Share on other sites More sharing options...
yorty Posted April 4, 2009 Share Posted April 4, 2009 Cant without source edit. I think. Go look at your main.txt Link to comment Share on other sites More sharing options...
Jed Posted April 4, 2009 Share Posted April 4, 2009 or you could change the numbers of your colors. that would work too. Link to comment Share on other sites More sharing options...
dao Posted April 4, 2009 Share Posted April 4, 2009 i made it so number 5 is white, i have visual basic 6 ha. lol Link to comment Share on other sites More sharing options...
Rithy58 Posted April 4, 2009 Share Posted April 4, 2009 Add this code under the Sub JoinGame(Index)```If GetPlayerAccess(Index) = [ACCESS] ThenCall colorplayername(Index, [color])End IfYou can put them for each access. Just remove [ACCESS] and replace that with the Access number.And replace [color] with the color code you want. So if I want Moderator to be white then I would put :[code]If GetPlayerAccess(Index) = 1 ThenCall colorplayername(Index, 15)End If[/code]NOTE : If you want to change all the color of each access you have to have multiple of that code.You just have to copy and paste and change the [ACCESS] and [color].If you need more help just say so and I'll help.Sincerely,Rithy[/color][/color][/color]``` Link to comment Share on other sites More sharing options...
Derek Posted April 4, 2009 Author Share Posted April 4, 2009 I never was good with adding scripts.So I'm probably just doing this wrong, but this is what I have and its not working.' Executes when a player logs into the game.Sub JoinGame(Index)If GetPlayerAccess(Index) = 1 ThenCall colorplayername(Index, 15)End IfIf GetPlayerAccess(Index) = 0 ThenCall GlobalMsg(GetPlayerName(Index) & " has joined " & GameName & "!", GREY)ElseCall GlobalMsg("Administrator " & GetPlayerName(Index) & " has joined " & GameName & "!", YELLOW)End IfCall PlayerMsg(Index, "Welcome to " & GameName & "!", WHITE)If LenB(MOTD) <> 0 ThenCall PlayerMsg(Index, "MOTD: " & MOTD, BRIGHTCYAN)End IfCall SendWhosOnline(Index)End Sub Link to comment Share on other sites More sharing options...
Derek Posted April 5, 2009 Author Share Posted April 5, 2009 Bump? Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 bump? what the heck does that mean Link to comment Share on other sites More sharing options...
Jed Posted April 5, 2009 Share Posted April 5, 2009 you could also use the color name instead of the color number. for instance:Call colorplayername(Index, BRIGHTRED) Link to comment Share on other sites More sharing options...
Derek Posted April 5, 2009 Author Share Posted April 5, 2009 I tried that too.. still not working. Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 i know those dont work u have to use visual basic 6 Link to comment Share on other sites More sharing options...
Derek Posted April 5, 2009 Author Share Posted April 5, 2009 Whatever… I'll need it sooner or later anyway.Downloading it now. 9% :) Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 downloading what..? Link to comment Share on other sites More sharing options...
Derek Posted April 5, 2009 Author Share Posted April 5, 2009 Visual Basic 6.Its done and installed.Should I download the Eclipse Source Code now? Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 yep install it and open client then do thisClient Source > ModGameLogic > Sub BltPlayerNameIf you know your color code, you can change it there in the right case base on the Access you want. Link to comment Share on other sites More sharing options...
Derek Posted April 5, 2009 Author Share Posted April 5, 2009 Okay, then what do I do now? Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 huh to what, o idk look in the top and ull find the guy tellin me what to do Link to comment Share on other sites More sharing options...
Derek Posted April 5, 2009 Author Share Posted April 5, 2009 What Rithy was talking about was scripts, not source edits.And it wasn't working, and you said I needed to edit the source code.So what did you do to get the Owner's name white? Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 omg im an idiot i thought this was my post, im sorry hereno credit of this is to me.Client Source > ModGameLogic > Sub BltPlayerNameIf you know your color code, you can change it there in the right case base on the Access you want. Link to comment Share on other sites More sharing options...
Derek Posted April 5, 2009 Author Share Posted April 5, 2009 Alright… I found it but I'm not quite sure what to edit.Sub BltPlayerName(ByVal Index As Long) Dim TextX As Long Dim TextY As Long Dim color As Long If Player(Index).color <> 0 Then If Player(Index).color > 16 Then Exit Sub Else color = QBColor(Val(Player(Index).color - 1)) End If Else ' Check access level If GetPlayerPK(Index) = NO Then color = QBColor(YELLOW) Select Case GetPlayerAccess(Index) Case 0 color = QBColor(BROWN) Case 1 color = QBColor(DARKGREY) Case 2 color = QBColor(CYAN) Case 3 color = QBColor(BLUE) Case 4 color = QBColor(PINK) End Select Else color = QBColor(BRIGHTRED) End If End If Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 color = QBColor(YELLOW)that is the color for access fivecase 1 - 4 is the acces colors for 1-4Case 1 color = QBColor(DARKGREY)EXAMPLE:Case 1 color = QBColor(WHITE) Link to comment Share on other sites More sharing options...
The Oracle Posted April 5, 2009 Share Posted April 5, 2009 press 'ctrl' + 'f'. Change it to search the whole project. search for: " Executes when a player logs into the game."press enter. add```If GetPlayerAccess(Index) = [ACCESS] ThenCall colorplayername(Index, [color])End If[ACCESS] needs to be replaced with a value within 1-5\. Replace [color] with a color.save the project and compile it by going to File -> Make client.exe[/color][/color]``` Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 o ya forgot to say how to compile thanks oricle Link to comment Share on other sites More sharing options...
The Oracle Posted April 5, 2009 Share Posted April 5, 2009 np Link to comment Share on other sites More sharing options...
dao Posted April 5, 2009 Share Posted April 5, 2009 be careful, souljah will give u spam for that.. -.- Link to comment Share on other sites More sharing options...
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