Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //============================================ Mala Kuca =====================================
- if(strcmp(cmd, "/napravimalukucu", true) == 0)
- {
- if (PlayerInfo[playerid][pAdmin] >= 1340)
- {
- tmp = strtok(cmdtext, idx);
- new id = strval(tmp);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_SYSTEM, "/napravimalukucu [ID] ");
- return 1;
- }
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid, x, y, z);
- HouseInfo[id][hEntrancex] = x;
- HouseInfo[id][hEntrancey] = y;
- HouseInfo[id][hEntrancez] = z;
- HouseInfo[id][hWorld] = GetPlayerVirtualWorld(playerid);
- HouseInfo[id][hValue] = 145000;
- HouseInfo[id][hOwned] = 0;
- HouseInfo[id][hRentabil] = 0;
- strmid(HouseInfo[id][hDiscription],"Mala kuca", 0, strlen("Mala Kuca"), 255);
- HouseInfo[id][hLevel] = 6;
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Uspesno si napravio malu kucu!");
- SacuvajKuce();
- HousePickup[id] = CreateDynamicPickup(1273, 1, HouseInfo[id][hEntrancex], HouseInfo[id][hEntrancey], HouseInfo[id][hEntrancez]);
- return 1;
- }
- }
Add Comment
Please, Sign In to add comment