Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(eventobjects != 0)
- {
- for(new obj=0; obj<11; obj++)
- {
- if(pickupid == objectevent[obj])
- {
- new string[128],name[30];
- GetPlayerName(playerid, name, sizeof(name));
- GivePlayerCash(playerid,eventprizeobj[obj]);
- Update(playerid,pCashx);
- format(string,sizeof(string),"Event: Un obiect din event a fost gasit de %s. Acesta a castigat un premiu de $%s !",name,FormatNumber(eventprizeobj[obj]));
- OOCNews(COLOR_ORANGE,string);
- if(eventobjects > 0)
- {
- format(string,sizeof(string),"Event: Eventul continua. Mai sunt %d obiecte de gasit !",eventobjects);
- }
- else
- {
- format(string,sizeof(string),"Event: Eventul a luat sfarsit. Multumim pentru participare !");
- }
- OOCNews(COLOR_ORANGE,string);
- objectevent[obj] = 0;
- eventprizeobj[obj] = 0;
- DestroyPickup(objectevent[obj]);
- eventobjects--;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement