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

Last Visited


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Statistical       
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-11-2011 , 07:28   Last Visited
Reply With Quote #1

Plugin made:
- Remembers the last time a player visits the server

Features:
- Greet messages
- Greet sounds

Type in chat:
/lastvisited or /lv for last visited info

Commands:
amx_lv_messages - On/Off greeting messages
amx_lv_sounds - On/Off greeting sounds

CHANGE LOG
1.1
- configuration now like cvars
- some store type (STEAMID or NAME)
- messages show after player choose his team (cstrike bug)
- bug with sounds (ah hello gordon freeman its good to see you, no more!)

1.0
- It's Plugin!
- Greet sounds
- Greet messages
- Store configuration in nVault file

Need nVault module ;)
Attached Files
File Type: sma Get Plugin or Get Source (lastvisited.sma - 1687 views - 6.9 KB)
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 02-26-2011 at 10:59. Reason: Updated
GordonFreeman (RU) is offline
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 02-11-2011 , 07:34   Re: Last Visited
Reply With Quote #2

cool but when you type the command it opens a motd?
is it?
have some photos to show?
thanks
__________________
GuTo is offline
Send a message via Skype™ to GuTo
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-11-2011 , 07:42   Re: Last Visited
Reply With Quote #3

Quote:
Originally Posted by GuTo View Post
cool but when you type the command it opens a motd?
is it?
have some photos to show?
thanks
No it does not open the MOTD
say /lv, it only shows the last time you were on this server ala print_chat
Or amx_lv_* commands, they only set the values in nvault file to install the plugin configuration
__________________
The functional way is the right way
GordonFreeman (RU) is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-11-2011 , 08:05   Re: Last Visited
Reply With Quote #4

sorry for bad screen... it my cstrike
__________________
The functional way is the right way
GordonFreeman (RU) is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 02-11-2011 , 08:28   Re: Last Visited
Reply With Quote #5

Isn't it better checking SteamID instead of name?
__________________
"There is no knowledge, that is not power"
fezh is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-11-2011 , 08:34   Re: Last Visited
Reply With Quote #6

If someone wants to check on SteamID just replace the code on get_user_name to get_user_authid
__________________
The functional way is the right way
GordonFreeman (RU) is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-11-2011 , 08:38   Re: Last Visited
Reply With Quote #7

Authid should be used by default. It's the most reliable way. Name can be changed easily thus your plugin can be broken easily too.
__________________
Arkshine is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 02-11-2011 , 09:04   Re: Last Visited
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
Authid should be used by default. It's the most reliable way. Name can be changed easily thus your plugin can be broken easily too.
OK, it changed plugin re-uploaded

But if you want authid by name version
Watch down
Attached Files
File Type: sma Get Plugin or Get Source (lastvisited.sma - 1155 views - 6.5 KB)
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 02-11-2011 at 09:08.
GordonFreeman (RU) is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 02-11-2011 , 09:48   Re: Last Visited
Reply With Quote #9

Maybe you can make a cvar to change the mode.
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
GuTo
Senior Member
Join Date: Mar 2010
Location: Brazil - SP
Old 02-11-2011 , 10:00   Re: Last Visited
Reply With Quote #10

ooh nice thank you
__________________
GuTo is offline
Send a message via Skype™ to GuTo
Reply



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:18.


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