Guest User

Untitled

a guest
Dec 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. //============================================ Mala Kuca =====================================
  2. if(strcmp(cmd, "/napravimalukucu", true) == 0)
  3. {
  4. if (PlayerInfo[playerid][pAdmin] >= 1340)
  5. {
  6. tmp = strtok(cmdtext, idx);
  7. new id = strval(tmp);
  8. if(!strlen(tmp))
  9. {
  10. SendClientMessage(playerid, COLOR_SYSTEM, "/napravimalukucu [ID] ");
  11. return 1;
  12. }
  13. new Float:x,Float:y,Float:z;
  14. GetPlayerPos(playerid, x, y, z);
  15. HouseInfo[id][hEntrancex] = x;
  16. HouseInfo[id][hEntrancey] = y;
  17. HouseInfo[id][hEntrancez] = z;
  18. HouseInfo[id][hWorld] = GetPlayerVirtualWorld(playerid);
  19. HouseInfo[id][hValue] = 145000;
  20. HouseInfo[id][hOwned] = 0;
  21. HouseInfo[id][hRentabil] = 0;
  22. strmid(HouseInfo[id][hDiscription],"Mala kuca", 0, strlen("Mala Kuca"), 255);
  23. HouseInfo[id][hLevel] = 6;
  24. SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno si napravio malu kucu!");
  25. SacuvajKuce();
  26. HousePickup[id] = CreateDynamicPickup(1273, 1, HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez]);
  27. return 1;
  28. }
  29. }
Add Comment
Please, Sign In to add comment