krishhna

ASDASD

Feb 2nd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. public OnPlayerPickUpPickup(playerid, pickupid)
  2. {
  3. if(pickupid == Server[MoneyThrow][2])
  4. {
  5. if(playerid != Server[MoneyThrow][0])
  6. {
  7. GivePlayerCash(playerid,Server[MoneyThrow][1]);
  8. format(text2,sizeof(text2),"( ! ) MONEY THROW: %s(%d) has picked up the money throw. Amount: %d!",Info[playerid][Name],playerid,Server[MoneyThrow][1]);
  9. SendClientMessageToAll(-1, text2);
  10. DestroyPickup(Server[MoneyThrow][2]);
  11. Server[MoneyThrow][2] = -1;
  12. Server[MoneyThrow][0] = INVALID_PLAYER_ID;
  13. pLoop()
  14. {
  15. if(IsPlayerSpawned(i))
  16. {
  17. RemovePlayerMapIcon(i,52);
  18. }
  19. }
  20. }
  21. }
  22. return 1;
  23. }
Add Comment
Please, Sign In to add comment