Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. public OnPlayerPickUpDynamicPickup(playerid, pickupid)
  2. {
  3. for(new i = 0; i < MAX_GIFTS; i++)
  4. {
  5. if(pickupid == Gift[i] && Picked[playerid] == 0)
  6. {
  7. switch(random(5))
  8. {
  9. case 0:
  10. {
  11. new paket1 = (5000);
  12. GivePlayerMoney(playerid, paket1);
  13. format( globalstring, sizeof( globalstring ), ""col_zeltamno"[Paketici]{FFFFFF}Paketic je pronadjen!");
  14. SendClientMessageToAll( -1, globalstring );
  15. SendClientMessage(playerid, -1, col_zeltamno "[PAKETIC]{FFFFFF}Cestitamo! U paketicu ste dobili $5000!");
  16. DestroyDynamicPickup(Gift[i]);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement