Untitled
unknown
plain_text
2 years ago
566 B
11
Indexable
int chance = rand() % 100, chance2 = rand() % 100;
if (chance2 < 4) {
pInfo(peer)->unt += 1;
gamepacket_t p;
p.Insert("OnTalkBubble");
p.Insert(pInfo(peer)->netID);
p.Insert("`9I found Gold!");
p.Insert(1);
p.CreatePacket(peer);
}
if (chance < 3) {
pInfo(peer)->diak += 1;
gamepacket_t kp;
kp.Insert("OnTalkBubble");
kp.Insert(pInfo(peer)->netID);
kp.Insert("`1I found Diamond!");
kp.Insert(1);
kp.CreatePacket(peer);
}Editor is loading...
Leave a Comment