Raised This Month: $ Target: $400
 0% 

missed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
007asha
Member
Join Date: Mar 2010
Old 10-05-2010 , 10:34   missed
Reply With Quote #1

missed

Last edited by 007asha; 10-18-2016 at 04:50.
007asha is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-05-2010 , 17:53   Re: [REQ] GameName changer every 24 hours
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fakemeta>

new const g_szGameNames[24][] = {
    
"From midnight to 1",
    
"From 1 to 2",
    
"From 2 to 3",
    
"From 3 to 4",
    
"From 4 to 5",
    
"From 5 to 6",
    
"From 6 to 7",
    
"From 7 to 8",
    
"From 8 to 9",
    
"From 9 to 10",
    
"From 10 to 11",
    
"From 11 to 12",
    
"From 12 to 13",
    
"From 13 to 14",
    
"From 14 to 15",
    
"From 15 to 16",
    
"From 16 to 17",
    
"From 17 to 18",
    
"From 18 to 19",
    
"From 19 to 20",
    
"From 20 to 21",
    
"From 21 to 22",
    
"From 22 to 23",
    
"From 23 to midnight"
}
new 
g_iHour

public plugin_init()
{
    
register_plugin"Game Namer""1.1""NeuroToxin" );
    
register_forwardFM_GetGameDescription"GameDesc" );
    new 
szHour[3]
    
get_time("%H"szHourcharsmax(szHour))
    
g_iHour clamp(str_to_num(szHour), 023)
}

public 
GameDesc()
{
    
forward_returnFMV_STRINGg_szGameNames[g_iHour]);
    return 
FMRES_SUPERCEDE;

__________________
fysiks is offline
Old 10-06-2010, 10:45
007asha
This message has been deleted by 007asha.
Old 10-08-2010, 18:45
007asha
This message has been deleted by 007asha.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-08-2010 , 23:01   Re: [REQ] GameName changer every 24 hours
Reply With Quote #3

Quote:
Originally Posted by 007asha View Post
Sorry, but can you change it to have list of game names in .txt or .cfg
Maybe.

Quote:
Originally Posted by 007asha View Post
and to cvar where i can set time of change in minutes.
No.
__________________
fysiks is offline
Old 10-09-2010, 08:11
007asha
This message has been deleted by 007asha.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-09-2010 , 18:13   Re: [REQ] GameName changer every 24 hours
Reply With Quote #4

Quote:
Originally Posted by 007asha View Post
Allright. When you will have free time please:
1. Change plug to have list of game names in .txt or .cfg
2. Make game name change every 4 minutes.

2 Questions:
1. From where it get time? Is it server time (host)?
2. I see that if i have server only 1 map (no mapchange) it changed not every 1...?
Am i right? This is plug, or i am just blinded?
Thanks a lot!!
You are seriously starting to annoy me. You request something but then want something totally different after I've spent my time writing a freaking plugin for you. Stop wasting my time.

The gamename will not instantly change in your server list because that is how Steam works.
__________________
fysiks is offline
Old 10-10-2010, 15:33
007asha
This message has been deleted by 007asha.
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 09:11.


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