Raised This Month: $ Target: $400
 0% 

Read mapcycle


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
conrad
Junior Member
Join Date: Jun 2007
Old 08-28-2007 , 18:49   Read mapcycle
Reply With Quote #1

Hi.
I`m having problems with this code, it doesn`t read the specified mapcycle, any help ?

Code:
#include <amxmodx>


public plugin_init()
{
    register_plugin("Mapcikls","0.1","xx")
    load_mapcycle()
}

public load_mapcycle()
{
    new hour[6];
    get_time("%H",hour,5)
    new hrs = str_to_num(hour)
    if( hrs < 9 )
    {
    set_hudmessage(0, 100, 255, -1.0, 0.4, 0, 6.0, 3.0)
      
        server_cmd("mapcyclefile mcycl/morning.txt")
    }
    if( hrs >= 10 )
    {
        server_cmd("mapcyclefile mcycl/day.txt")
    }
    if( hrs >= 23 )
    {
        server_cmd("mapcyclefile mcycl/night.txt")
    }
    return PLUGIN_CONTINUE
}
on exact time it must take the wright mapcycle.

Last edited by conrad; 08-28-2007 at 18:52.
conrad is offline
 



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 16:11.


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