24.06.2015, 14:12
I want to set my money bag should be start at game hour 5.
I mean,
if (GameHour == 5)
I want this cmd moneybag should be apply in gamehour 5. How can i set it on 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(1550, 2,xx,yy,zz, -1, -1, -1, 1000.0);
SendClientMessageToAll(COLOR_CYAN,"The Money Bag has started.");
format(town,128, "The money bag is nearest to %s",MBagLocations[Rand][area]);
format(location, 128, "The money bag is in %s",MBagLocations[Rand][loc]);
timer_mb_1=SetTimer("moneybag1", 60*8000, false);
iseventstarted = true;
}
return 1;
}