Game time
#7

You guyz are getting my wrong.

I have time system already and i don't need time system

Look, I have money bag system and it get started when i do /moneybag .
I want to set money bag at game clock 5:00. It should be start at 5:00 game clock.

Here's money codes;

PHP код:
CMD:moneybag(playerid,params[]) 

            if(
iseventstarted == true)SendClientMessage(playerid,0xff0000ff,"The Money Bag has already started"); 
            else 
            { 
                    
DestroyDynamicPickup(MoneyPickup); //used to remove last pickup used 
                     
new Rand random(sizeof(MBagLocations)); 
                    
xx MBagLocations[Rand][XX]; 
                    
yy MBagLocations[Rand][YY]; 
                    
zz MBagLocations[Rand][ZZ]; 
                    
MoneyBagPay MBagLocations[Rand][Pay]; 
                    
MoneyPickup CreateDynamicPickup(15502,xx,yy,zz, -1, -1, -11000.0); 
                    
SendClientMessageToAll(COLOR_CYAN,"The Money Bag has started."); 
                    
format(town,128"The money bag is nearest to %s",MBagLocations[Rand][area]); 
                    
format(location128"The money bag is in %s",MBagLocations[Rand][loc]); 
                    
timer_mb_1=SetTimer("moneybag1"60*8000false); 
                    
iseventstarted true
            } 
            return 
1

here's my clock system
PHP код:
forward GameModeClock(); ///clock start
public GameModeClock()
{
    new 
string[256],string2[128];

    
GameMinute ++;

    if (
GameMinute == 60)
    {
    
GameMinute 0;
    
GameHour ++;
    
SetWorldTime(GameHour);
    
GameWeather ++;

    if (
GameWeather == 5)
    {
    new 
weatherid random(MAX_WEATHER);
    
SetWeather(RandomWeather[weatherid][0]);
    
GameWeather 0;
    }

    }

    if (
GameHour == 24)
    {
    
GameMinute 0;
    
GameHour 0;
    
GameDay ++;
    }

    
format(stringsizeof(string), "%s",WeekDays[GameDay]);
    
TextDrawSetString(DaysOfWeekstring);

    if (
GameHour 10)
    
format(stringsizeof(string), "0%d",GameHour);
    else
    
format(stringsizeof(string), "%d",GameHour);

    if (
GameMinute 10)
    
format(stringsizeof(string), "%s:0%d",string,GameMinute);
    else
    
format(stringsizeof(string), "%s:%d",string,GameMinute);

    
TextDrawSetString(Clockstring);


    if (
GameHour 10)
    
format(stringsizeof(string), "%s, 0%d",WeekDays[GameDay],GameHour);
    else
    
format(stringsizeof(string), "%s, %d",WeekDays[GameDay],GameHour);

    if (
GameMinute 10)
    
format(stringsizeof(string), "%s:0%d",string,GameMinute);
    else
    
format(stringsizeof(string), "%s:%d",string,GameMinute);


    if (
GameMinute == 0)
    {
    
format(stringsizeof(string), "%s",string);
    
//printf(string);

    
format(string2sizeof(string2), "worldtime %s",string);
    
SendRconCommand(string2);

    
format(stringsizeof(string), "{FFFFFF}Game Time: {BDBDBD}%s",string);
    
SendClientMessageToAll(ROJOstring);
    }
}
///clock ends 
Reply


Messages In This Thread
Game time - by sscarface - 24.06.2015, 14:12
Re: Game time - by Youssef221 - 24.06.2015, 14:20
Re: Game time - by nezo2001 - 24.06.2015, 14:21
Re: Game time - by sscarface - 24.06.2015, 14:23
Re: Game time - by Youssef221 - 24.06.2015, 14:25
Re: Game time - by Banana_Ghost - 24.06.2015, 14:42
Re: Game time - by sscarface - 24.06.2015, 14:49
Re: Game time - by Banana_Ghost - 24.06.2015, 14:54
Re: Game time - by STONEGOLD - 24.06.2015, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)