19.05.2014, 11:46
Код:
public MoneyBag() { if(!MoneyBagFound) { format(strg, sizeof(strg), ""red"MONEYBAG: "white"The "yellow"money bag "white"still hasn't been found in: "orange"%s", MoneyBagLocation); SendClientMessageToAll(-1, strg); } else if(MoneyBagFound) { MoneyBagFound = 0; new randombag = random(sizeof(MBSPAWN)); MoneyBagPos[0] = MBSPAWN[randombag][XPOS]; MoneyBagPos[1] = MBSPAWN[randombag][YPOS]; MoneyBagPos[2] = MBSPAWN[randombag][ZPOS]; format(MoneyBagLocation, sizeof(MoneyBagLocation), "%s", MBSPAWN[randombag][Positions]); format(strg, sizeof(strg), ""red"MONEYBAG: "white"A Money Bag is placed somewhere in "yellow"%s, "white"Go for it. It contains big cash!", MoneyBagLocation); SendClientMessageToAll(-1, strg); DestroyPickup(MoneyBagPickup); MoneyBagPickup = CreatePickup(1550, 2, MoneyBagPos[0], MoneyBagPos[1], MoneyBagPos[2], -1); } return 1; }