Advertisement
NotKnow666

DROP MONEY FIXO

Dec 2nd, 2023
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | Gaming | 0 0
  1. //ESSE FS E APENAS UMA SIMPLES BASE CASO VOCÊ USE ALGUM ANTI CHEAT DE DINHEIRO ADAPTE ESSE SCRIPT A ELA
  2. //CASO CONTRARIO QUANDO VOCÊ PEGAR O DINHEIRO ELE IRA RESETAR
  3.  
  4. //ESSA VERSAO DA FS IRA FAZER VOCE PERDER APENAS 500 REAIS AO MORRER
  5.  
  6. //SE QUISER QUE O PLAYER PERCA TODA GRANA RECOMENDO QUE UTILIZE A OUTRA VERSAO
  7.  
  8. //By NotKnow ^^
  9.  
  10. #include <a_samp>
  11.  
  12. new DropMoney1;
  13. new DropMoney2;
  14. new DropMoney3;
  15. new DropMoney4;
  16. new DropMoney5;
  17.  
  18. public OnPlayerDeath(playerid, killerid, reason)
  19. {
  20. if(GetPlayerMoney(playerid) > 0)
  21. {
  22. GivePlayerMoney(playerid, -500);
  23. new Float:x,Float:y,Float:z;
  24. GetPlayerPos(playerid,x,y,z);
  25. DropMoney1 = CreatePickup(1212,4,x,y,z-0.8);
  26. DropMoney2 = CreatePickup(1212,4,x,y-1,z-0.8);
  27. DropMoney3 = CreatePickup(1212,4,x,y+1,z-0.8);
  28. DropMoney4 = CreatePickup(1212,4,x-1,y,z-0.8);
  29. DropMoney5 = CreatePickup(1212,4,x+1,y,z-0.8);
  30. }
  31. }
  32.  
  33. public OnPlayerPickUpPickup(playerid, pickupid)
  34. {
  35. if(pickupid == DropMoney1) GivePlayerMoney(playerid,100), DestroyPickup(DropMoney1);
  36. if(pickupid == DropMoney2) GivePlayerMoney(playerid,100), DestroyPickup(DropMoney2);
  37. if(pickupid == DropMoney3) GivePlayerMoney(playerid,100), DestroyPickup(DropMoney3);
  38. if(pickupid == DropMoney4) GivePlayerMoney(playerid,100), DestroyPickup(DropMoney4);
  39. if(pickupid == DropMoney5) GivePlayerMoney(playerid,100), DestroyPickup(DropMoney5);
  40. return 1;
  41. }
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement