Raised This Month: $32 Target: $400
 8% 

AMX Show IP - Last The Best Show IP


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
hpservers
Junior Member
Join Date: Aug 2013
Old 08-25-2013 , 23:19   AMX Show IP - Last The Best Show IP
Reply With Quote #1

What show?:
NickName,IP,Steam ID,Map Name,Team, Kills,Deaths,Time Played in sec.

Special Thanks to:akcaliberg
To give me the code for: Kills and Deaths!

Demo:

All Test and work!

I can't show in UNA because i use auto team join!

I like this site!!!

sma:
Attached Files
File Type: sma Get Plugin or Get Source (showip.sma - 1364 views - 1.8 KB)

Last edited by hpservers; 08-25-2013 at 23:32.
hpservers is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 08-25-2013 , 23:41   Re: AMX Show IP - Last The Best Show IP
Reply With Quote #2

Nice, even if not useful
You better next time, good luck
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
hpservers
Junior Member
Join Date: Aug 2013
Old 08-25-2013 , 23:45   Re: AMX Show IP - Last The Best Show IP
Reply With Quote #3

Yes of course, but this is my first plugin!
But coming to get me, better and better!


Bad English Sorry!
hpservers is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-26-2013 , 01:02   Re: AMX Show IP - Last The Best Show IP
Reply With Quote #4

About code :

- Don't create variables in loops.
- Cache array cells values in a variable (players[i] in your code).
- I think you should add bot("c") (and hltv("h")) filter(s) to get_players.
- Cache map name in a global variable and retrieve it only once in plugin_init, at least don't retrieve it on each loop iteration
- Command seems to be only for connected players, so either use register_clcmd, either make different checks (check id against 0 so you can know if command comes from server when server is dedicated server).
- Remove not used define ( #define STR_LEN 32 )
- This is really minor, but you could lower following arrays sizes like this :
szIp : 22, steamid 21
- Also, use charsmax when you need to pass the max len you want to fill a string array, it will prevent some mistakes as the one you did :
Code:
        new name[32];         new szIp[32];         new steamid[32];         new mapname[32];
        new team[32];
        get_user_frags(players[i])         get_user_name(players[i], name, 31)         get_user_ip(players[i], szIp, 31, 0)         get_user_authid(players[i], steamid , 31)         get_mapname(mapname, 31)
        get_user_team(players[i], team, 18)
There either array should be 19 size, either you should pass 31 in get_user_team native
So do like this :
Code:
get_user_team(player, team, charsmax(team)
And then if one day you edit team size at the variable declaration, you won't need to check where you have used it to update max len.


I think this is all.



About plugin, it is redundant, unapproved.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hpservers
Junior Member
Join Date: Aug 2013
Old 08-26-2013 , 21:54   Re: AMX Show IP - Last The Best Show IP
Reply With Quote #5

I'm new in this industry, and i'm not fully known with this functions.
I think and now is good.
hpservers is offline
Qsai Wolf PS
Junior Member
Join Date: May 2021
Location: palstine
Old 02-03-2023 , 15:33   Re: AMX Show IP - Last The Best Show IP
Reply With Quote #6

thanks its great
Qsai Wolf PS is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode