amx_super connect msg help
In my amx_super.cfg It has an enter message where it shows players rank. Looks like this:
// The actual messages // %name% = Users Name, %rankpos% = Users Current Rank, \n = New line amx_enter_message "%name% has joined!\nEnjoy the Server!\nCurrent Ranking is %rankpos%" I dont use statsx so I was wondering if theres a command where the message can show the clients gungame rank. The one that shows when you type !top10. Thanx so much! |
Re: amx_super connect msg help
That depends on how GG gets the stats. It is possible, but it would take a bit of work.
|
Re: amx_super connect msg help
Okay, I saw Avalanche's post, that is exactly what we need. Now, I will attempt to put it into 3.8.1 for you sometime this weekend
|
Re: amx_super connect msg help
Wow thanx alot! You guys are great! Amx_super + Gungame = best server ever! :mrgreen:
|
Re: amx_super connect msg help
1 Attachment(s)
I might be able to get this added to 4.0. New phrase will catch it, %ggpos%
Here is 3.8.1 editted |
Re: amx_super connect msg help
Thats pretty cool Yami :up:
|
Re: amx_super connect msg help
Lol so I cant figure out what im doing wrong and I know you like hand-fed this whole thing to me but I seem to be getting something wrong. "Name has joined! Enjoy the Server! Current Ranking is ggpos%" Thats how it shows on the screen. I tried editing amx_super.cfg
Code:
amx_enter_message "%name% has joined!\nEnjoy the Server!\nCurrent Ranking is %ggpos%"Code:
entermessage = register_cvar("amx_enter_message", "%name% has joined!\nEnjoy the Server!\nCurrent Ranking is %ggpos%")PHP Code:
|
Re: amx_super connect msg help
Dont edit the sma, thats whats the cvar is for int he .cfg
You need to compile the plugin localy with amx modx 1.8 |
Re: amx_super connect msg help
Ok well, I recompiled twice now and still it says: "Name has joined! Enjoy the Server! Current Ranking is ggpos%". Can anyone help?
|
Re: amx_super connect msg help
And its in the .cfg as above ( %ggpos% ) ? If so, Yami might have made a small type in the code, as I assume he just wrote something up real fast.
|
Re: amx_super connect msg help
Yea I typed it exactly %ggpos%. I thought that it might be the code but he knows way more than me so i figured it was my mistake.
|
Re: amx_super connect msg help
Well I read the code in the gg section and it looked somewhat complex of an integration. So its kinda trial and error with addition.
|
Re: amx_super connect msg help
Yeah, I wrote it up at work, so I never got a chance to test it. I just copied what bmann did for the name, rankpos, and hostname. I will have to look at it, could be something as simple as a typo on my end. I will look at it later
|
Re: amx_super connect msg help
Sweet thanks I cant wait!
|
Re: amx_super connect msg help
1 Attachment(s)
Hey well I messed with your sma and got it to work so heres my tweak of your sma it works great for me let me know what you think. Edit: Ok new sma works 100% all i had to do was replace
Code:
new data[8], rankpos[8], pos Code:
new authid[36], ggpos[8]; |
| All times are GMT -4. The time now is 19:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.