Game time
#1

I want to set my money bag should be start at game hour 5.

I mean,

if (GameHour == 5)

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;

I want this cmd moneybag should be apply in gamehour 5. How can i set it on game hour 5
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)