Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. YCMD:buycrate(playerid, params[], help)
  2. {
  3. new string[512];
  4.  
  5. if(IsPlayerInRangeOfPoint(playerid, 2.5, 163.6687,-1945.0242,3.7734)) {
  6. if(PlayerInfo[playerid][pPremiumPoints] < 10) return SCM(playerid, -1, "Nu ai suficiente Diamonds!");
  7. PlayerInfo[playerid][pPremiumPoints] -= 10;
  8. Update(playerid, pPremiumPointsx);
  9. SCMEx(playerid, -1, "Felicitari %s ti-ai cumparat un normal crate pentru suma de 10 Diamonds!",GetName(playerid));
  10. SCM(playerid, -1, "{76ff00}Acum poti Apasa pe tasta Y pentru a deschide normal crate.");
  11. format(string, sizeof(string), "%s si-a achizitionat un normal crate pentru 10 Diamonds.", GetName(playerid));
  12. InsertLog(playerid, string, LOG_SHOP);
  13. PlayerInfo[playerid][pNormalCrate]++;
  14. }
  15.  
  16. else if(IsPlayerInRangeOfPoint(playerid, 2.5, 147.2179,-1942.8474,3.7734)) {
  17. if(PlayerInfo[playerid][pPremiumPoints] < 15) return SCM(playerid, -1, "Nu ai suficiente Diamonds!");
  18. PlayerInfo[playerid][pPremiumPoints] -= 15;
  19. Update(playerid, pPremiumPointsx);
  20. SCMEx(playerid, -1, "Felicitari %s ti-ai cumparat un gold crate pentru suma de 15 Diamonds!",GetName(playerid));
  21. SCM(playerid, -1, "{76ff00}Acum poti Apasa pe tasta Y pentru a deschide gold crate.");
  22. format(string, sizeof(string), "%s si-a achizitionat un gold crate pentru 15 Diamonds.", GetName(playerid));
  23. InsertLog(playerid, string, LOG_SHOP);
  24. PlayerInfo[playerid][pGoldCrate]++;
  25. }
  26.  
  27. if(!IsPlayerInRangeOfPoint(playerid, 2.5, 3095.0518,2054.1155,8.1862)) return 1; < astea nush de unde au aparut sau ce fac!
  28. else if(!IsPlayerInRangeOfPoint(playerid, 2.5, 3095.2227,2059.2869,8.1862)) return 1; < astea nush de unde au aparut sau ce fac!
  29. return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement