Skripta koju koristim:BU
Detaljan opis problema:Napravio sam house sistem i sad kad idem napravi kucu kucam to i server rikne nemogu nista ukucat ni je dnu komandu nista ne radi ni chat.Radi vikendica i ostalo samo nece kuca i biznis
Dio skripte: if(strcmp(cmd, "/napravi", true) == 0)
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_RED," ");
SendClientMessage(playerid, COLOR_RED, "|---------------------------------------------------------------------|");
SendClientMessage(playerid, COLOR_GREY, " /napravi ");
SendClientMessage(playerid, COLOR_WHITE," ulicu stan kucu vikendicu biznis garazu ");
SendClientMessage(playerid, COLOR_RED, "|---------------------------------------------------------------------|");
return 1;
}
if(strcmp(x_nr,"ulicu",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp2[255];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi ulicu [cena] [lvl]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi ulicu [cena] [lvl]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] <1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste ovlasceni da koristite ovu komandu!");
return 1;
}
new lolcina = 1;
for(new mica = 1; mica < sizeof(UlicaInfo); mica++)
{
new cena = strval(tmp);
new lvl =strval(tmp2);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new stringers[600];
format(stringers, sizeof(stringers), "ulice/Ulica_%d.ini", mica);
if(lolcina == 0){return 1;}
if(!fexist(stringers))
{
lolcina = 0;
UlicaInfo[mica][uStanje]=0;
strmid(UlicaInfo[mica][uNaziv],"Nema", 0, strlen("Nema"), 255);
strmid(UlicaInfo[mica][uVlasnik],"Nema", 0, strlen("Nema"), 255);
UlicaInfo [mica][uLevel]=lvl;
UlicaInfo [mica][uKoradinataX]=x;
UlicaInfo [mica][uKoradinataY]=y;
UlicaInfo [mica][uKoradinataZ]=z;
UlicaInfo [mica][uPare]=cena;
dini_Create(stringers);
SaveUlice();
ulicatext(mica);
}
}
}
return 1;
}
if(strcmp(x_nr,"biznis",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp2[255];
new tmp3[255];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
tmp3 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi biznis [tip 1-8] [cena] [lvl]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi biznis [tip 1-8] [cena] [lvl]");
return 1;
}
if(!strlen(tmp3))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi biznis [tip 1-8] [cena] [lvl]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] <1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste ovlasceni da koristite ovu komandu!");
return 1;
}
new tip = strval(tmp);
new cena = strval(tmp2);
new lvl =strval(tmp3);
if(tip < 1 || tip > 8){SendClientMessage(playerid, COLOR_GRAD2, "Nesme ispod 1 ili iznad 8!");return 1;}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new lolcina = 1;
for(new i = 1; i < sizeof(BizzInfo); i++)
{
if(lolcina == 0){return 1;}
new stringers[600];
format(stringers, sizeof(stringers), "biznisi/Biznis_%d.ini", i);
if(!fexist(stringers))
{
lolcina = 0;
BizzInfo[i][bOwned] = 0;
strmid(BizzInfo[i][bOwner],"Drzava", 0, strlen("Drzava"), 255);
BizzInfo[i][bLocked] = 0;
BizzInfo[i][bLevelNeeded] = lvl;
BizzInfo[i][bBuyPrice] = cena;
BizzInfo[i][bEntranceX] = x;
BizzInfo[i][bEntranceY] = y;
BizzInfo[i][bEntranceZ] = z;
BizzInfo[i][bEntranceCost]=0;
BizzInfo[i][bProducts]=400;
BizzInfo[i][bMaxProducts]=100000;
BizzInfo[i][bNeakt]=0;
BizzInfo[i][bPriceProd]=300;
BizzInfo[i][bTill]=0;
BizzInfo[i][bTip]=tip;
if(tip == 1)
{
BizzInfo[i][bExitX]=834.667419;
BizzInfo[i][bExitY]=7.469222;
BizzInfo[i][bExitZ]=1004.187011;
BizzInfo[i][bInterior]=3;
strmid(BizzInfo[i][bMessage],"Kladionica", 0, strlen("Kladionica"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste Kladionicu!");
}
else if(tip == 2)
{
BizzInfo[i][bExitX]=412.046356;
BizzInfo[i][bExitY]=-54.446014;
BizzInfo[i][bExitZ]=1001.898437;
BizzInfo[i][bInterior]=12;
strmid(BizzInfo[i][bMessage],"Frizerski salon", 0, strlen("Frizerski salon"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste Frizerski salon!");
}
else if(tip == 3)
{
BizzInfo[i][bExitX]=502.032623;
BizzInfo[i][bExitY]=-67.565780;
BizzInfo[i][bExitZ]=998.757812;
BizzInfo[i][bInterior]=11;
strmid(BizzInfo[i][bMessage],"Kafana", 0, strlen("Kafana"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste Kafanu!");
}
else if(tip == 4)
{
BizzInfo[i][bExitX]=362.869812
BizzInfo[i][bExitY]=-75.167869
BizzInfo[i][bExitZ]=1001.507812;
BizzInfo[i][bInterior]=10;
strmid(BizzInfo[i][bMessage],"Burger", 0, strlen("Burger"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste Burger!");
}
else if(tip == 5)
{
BizzInfo[i][bExitX]=364.975158;
BizzInfo[i][bExitY]=-11.844186;
BizzInfo[i][bExitZ]=1001.851562;
BizzInfo[i][bInterior]=9;
strmid(BizzInfo[i][bMessage],"Restoran", 0, strlen("Restoran"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste Restoran!");
}
else if(tip == 6)
{
BizzInfo[i][bExitX]=206.966964;
BizzInfo[i][bExitY]=-140.376052;
BizzInfo[i][bExitZ]=1003.507812;
BizzInfo[i][bInterior]=3;
strmid(BizzInfo[i][bMessage],"Prodavnica Odece", 0, strlen("Prodavnica Odece"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste Prodavnicu Odece!");
}
else if(tip == 7)
{
BizzInfo[i][bExitX]=315.851104;
BizzInfo[i][bExitY]=-143.663833;
BizzInfo[i][bExitZ]=999.601562;
BizzInfo[i][bInterior]=7;
strmid(BizzInfo[i][bMessage],"Prodavnica Oruzija", 0, strlen("Prodavnica Oruzija"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste Prodavnicu Oruzija!");
}
else if(tip == 8)
{
BizzInfo[i][bExitX]=-25.858039;
BizzInfo[i][bExitY]=-188.246566;
BizzInfo[i][bExitZ]=1003.546875;
BizzInfo[i][bInterior]=17;
strmid(BizzInfo[i][bMessage],"24/7", 0, strlen("24/7"), 255);
strmid(BizzInfo[i][bExtortion],"Niko", 0, strlen("Niko"), 255);
SendClientMessage(playerid, COLOR_GRAD2, "Napravili ste 24/7!");
}
dini_Create(stringers);
SaveBIzs();
Biztekst(i);
}
}
}
return 1;
}
if(strcmp(x_nr,"kucu",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp2[255];
new tmp3[255];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
tmp3 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi kucu [tip 1-4] [cena] [lvl]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi kucu [tip 1-4] [cena] [lvl]");
return 1;
}
if(!strlen(tmp3))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi kucu [tip 1-4] [cena] [lvl]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] <1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste ovlasceni da koristite ovu komandu!");
return 1;
}
new tip = strval(tmp);
new cena = strval(tmp2);
new lvl =strval(tmp3);
if(tip < 1 || tip > 4){SendClientMessage(playerid, COLOR_GRAD2, "Nesme ispod 1 ili iznad 4!");return 1;}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new lolcina = 1;
for(new i = 1; i < sizeof(HouseInfo); i++)
{
if(lolcina == 0){return 1;}
new stringers[600];
format(stringers, sizeof(stringers), "kuce/Kuca_%d.ini", i);
if(!fexist(stringers))
{
lolcina = 0;
HouseInfo[i][hOwned] = 0;
strmid(HouseInfo[i][hOwner],"Niko", 0, strlen("Niko"), 255);
HouseInfo[i][hLock] = 0;
HouseInfo[i][hLevel] = lvl;
HouseInfo[i][hValue] = cena;
HouseInfo[i][hEntrancex] = x;
HouseInfo[i][hEntrancey] = y;
HouseInfo[i][hEntrancez] = z;
HouseInfo[i][hRent] = 0;
HouseInfo[i][hTip]=tip;
HouseInfo[i][hRentabil]=0;
HouseInfo[i][hWorld]=i;
HouseInfo[i][hHealthx]=0;
HouseInfo[i][hHealthy]=0;
HouseInfo[i][hHealthz]=0;
HouseInfo[i][hVcol1] = -1;
HouseInfo[i][hVcol1] = -1;
HouseInfo[i][hVec] = 418;
if(tip == 1)
{
HouseInfo[i][hExitx]=223.15235900879;
HouseInfo[i][hExity]=1287.6987304688;
HouseInfo[i][hExitz]=1082.140625;
HouseInfo[i][hInt]=1;
HouseInfo[i][hRooms]=1;
strmid(HouseInfo[i][hDiscription],"Mala", 0, strlen("Mala"), 255);
}
else if(tip == 2)
{
HouseInfo[i][hExitx]=2233.8034667969;
HouseInfo[i][hExity]=-1114.8354492188;
HouseInfo[i][hExitz]=1050.8828125;
HouseInfo[i][hInt]=5;
HouseInfo[i][hRooms]=2;
strmid(HouseInfo[i][hDiscription],"Srednja", 0, strlen("Srednja"), 255);
}
else if(tip == 3)
{
HouseInfo[i][hExitx]=2196.1489257813;
HouseInfo[i][hExity]=-1204.3884277344;
HouseInfo[i][hExitz]=1049.0234375;
HouseInfo[i][hInt]=6;
HouseInfo[i][hRooms]=3;
strmid(HouseInfo[i][hDiscription],"Velika", 0, strlen("Velika"), 255);
}
else if(tip == 4)
{
HouseInfo[i][hExitx]=2365.3452148438;
HouseInfo[i][hExity]=-1135.0167236328;
HouseInfo[i][hExitz]=1050.875;
HouseInfo[i][hInt]=8;
HouseInfo[i][hRooms]=4;
strmid(HouseInfo[i][hDiscription],"Vila", 0, strlen("Vila"), 255);
}
dini_Create(stringers);
SaveKuce();
kucetexti(i);
}
}
}
return 1;
}
if(strcmp(x_nr,"vikendicu",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp2[255];
new tmp3[255];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
tmp3 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi vikendicu [tip 1-5] [cena] [lvl]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi vikendicu [tip 1-5] [cena] [lvl]");
return 1;
}
if(!strlen(tmp3))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi vikendicu [tip 1-5] [cena] [lvl]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] <1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste ovlasceni da koristite ovu komandu!");
return 1;
}
new tip = strval(tmp);
new cena = strval(tmp2);
new lvl =strval(tmp3);
if(tip < 1 || tip > 5){SendClientMessage(playerid, COLOR_GRAD2, "Nesme ispod 1 ili iznad 5!");return 1;}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new lolcina = 1;
for(new i = 1; i < sizeof(VikendicaInfo); i++)
{
if(lolcina == 0){return 1;}
new stringers[600];
format(stringers, sizeof(stringers), "vikendice/Vikendica_%d.ini", i);
if(!fexist(stringers))
{
lolcina = 0;
VikendicaInfo[i][vStanje] = 0;
strmid(VikendicaInfo[i][vVlasnik],"Niko", 0, strlen("Niko"), 255);
VikendicaInfo[i][vLock] = 0;
VikendicaInfo[i][vLevel] = lvl;
VikendicaInfo[i][vCena] = cena;
VikendicaInfo[i][vPozicijaX] = x;
VikendicaInfo[i][vPozicijaY] = y;
VikendicaInfo[i][vPozicijaZ] = z;
VikendicaInfo[i][vNovac] = 0;
VikendicaInfo[i][vTip]=tip;
VikendicaInfo[i][vDroga]=0;
VikendicaInfo[i][vMateriali]=0;
if(tip == 1)
{
VikendicaInfo[i][viPozicijaX]=222.9534;
VikendicaInfo[i][viPozicijaY]=1287.7649;
VikendicaInfo[i][viPozicijaZ]=1082.1406;
VikendicaInfo[i][vInterier]=1;
}
else if(tip == 2)
{
VikendicaInfo[i][viPozicijaX]=261.0827;
VikendicaInfo[i][viPozicijaY]=1284.6899;
VikendicaInfo[i][viPozicijaZ]=1080.2578;
VikendicaInfo[i][vInterier]=4;
}
else if(tip == 3)
{
VikendicaInfo[i][viPozicijaX]=260.6734;
VikendicaInfo[i][viPozicijaY]=1237.7909;
VikendicaInfo[i][viPozicijaZ]=1084.2578;
VikendicaInfo[i][vInterier]=9;
}
else if(tip == 4)
{
VikendicaInfo[i][viPozicijaX]=376.7426;
VikendicaInfo[i][viPozicijaY]=1417.3226;
VikendicaInfo[i][viPozicijaZ]=1081.3281;
VikendicaInfo[i][vInterier]=15;
}
else if(tip == 5)
{
VikendicaInfo[i][viPozicijaX]=295.2874;
VikendicaInfo[i][viPozicijaY]=1473.2769;
VikendicaInfo[i][viPozicijaZ]=1080.2578;
VikendicaInfo[i][vInterier]=15;
}
dini_Create(stringers);
SaveVikendice(i);
vikendicatext(i);
}
}
}
return 1;
}
if(strcmp(x_nr,"stan",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp2[255];
new tmp3[255];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
tmp3 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi stan [tip 1-5] [cena] [lvl]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi stan [tip 1-5] [cena] [lvl]");
return 1;
}
if(!strlen(tmp3))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi stan [tip 1-5] [cena] [lvl]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] <1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste ovlasceni da koristite ovu komandu!");
return 1;
}
new tip = strval(tmp);
new cena = strval(tmp2);
new lvl =strval(tmp3);
if(tip < 1 || tip > 5){SendClientMessage(playerid, COLOR_GRAD2, "Nesme ispod 1 ili iznad 5!");return 1;}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new lolcina = 1;
for(new i = 1; i < sizeof(StanInfo); i++)
{
if(lolcina == 0){return 1;}
new stringers[600];
format(stringers, sizeof(stringers), "stanovi/Stan_%d.ini", i);
if(!fexist(stringers))
{
lolcina = 0;
StanInfo[i][stStanje] = 0;
strmid(StanInfo[i][stVlasnik],"Niko", 0, strlen("Niko"), 255);
StanInfo[i][stLock] = 0;
StanInfo[i][stLevel] = lvl;
StanInfo[i][stCena] = cena;
StanInfo[i][stPozicijaX] = x;
StanInfo[i][stPozicijaY] = y;
StanInfo[i][stPozicijaZ] = z;
StanInfo[i][stNovac] = 0;
StanInfo[i][stTip]=tip;
if(tip == 1)
{
StanInfo[i][stiPozicijaX] = 225.756989;
StanInfo[i][stiPozicijaY] = 1240.000000;
StanInfo[i][stiPozicijaZ] = 1082.149902;
StanInfo[i][stInterier] = 2;
}
else if(tip == 2)
{
StanInfo[i][stiPozicijaX] = 260.983978;
StanInfo[i][stiPozicijaY] = 1286.549927;
StanInfo[i][stiPozicijaZ] = 1080.299927;
StanInfo[i][stInterier] = 4;
}
else if(tip == 3)
{
StanInfo[i][stiPozicijaX] = 385.803986;
StanInfo[i][stiPozicijaY] = 1471.769897;
StanInfo[i][stiPozicijaZ] = 1080.209961;
StanInfo[i][stInterier] = 15;
}
else if(tip == 4)
{
StanInfo[i][stiPozicijaX] = -42.4992;
StanInfo[i][stiPozicijaY] = 1406.0690;
StanInfo[i][stiPozicijaZ] = 1084.4297;
StanInfo[i][stInterier] = 8;
}
else if(tip == 5)
{
StanInfo[i][stiPozicijaX] = 446.5014;
StanInfo[i][stiPozicijaY] = 507.0295;
StanInfo[i][stiPozicijaZ] = 1001.4195;
StanInfo[i][stInterier] = 12;
}
dini_Create(stringers);
SaveStanove(i);
stanovitext(i);
}
}
}
return 1;
}
if(strcmp(x_nr,"garazu",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp2[255];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi garazu [cena] [lvl]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi garazu [cena] [lvl]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] <1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste ovlasceni da koristite ovu komandu!");
return 1;
}
new lolcina = 1;
for(new mica = 1; mica < sizeof(Garaza); mica++)
{
new cena = strval(tmp);
new lvl =strval(tmp2);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new stringers[600];
format(stringers, sizeof(stringers), "garaze/Garaze_%d.ini", mica);
if(lolcina == 0){return 1;}
if(!fexist(stringers))
{
lolcina = 0;
Garaza[mica][gStanje]=0
strmid(Garaza[mica][gVlasnik],"Niko", 0, strlen("Niko"), 255);
Garaza[mica][gAuto]=0;
Garaza[mica][gSautoX]=0;
Garaza[mica][gSautoY]=0;
Garaza[mica][gSautoZ]=0;
Garaza[mica][gLevel]=lvl;
Garaza[mica][gAngel]=0;
Garaza[mica][gPozicijaX]=x;
Garaza[mica][gPozicijaY]=y;
Garaza[mica][gPozicijaZ]=z;
Garaza[mica][gCenaGaraze]=cena;
dini_Create(stringers);
dini_IntSet(stringers, "Stanje", Garaza[mica][gStanje]);
dini_Set(stringers, "Vlasnik",Garaza[mica][gVlasnik]);
dini_IntSet(stringers, "Auto", Garaza[mica][gAuto]);
dini_IntSet(stringers, "Level", Garaza[mica][gLevel]);
dini_FloatSet(stringers, "PozicijaX",Garaza[mica][gPozicijaX]);
dini_FloatSet(stringers, "PozicijaY",Garaza[mica][gPozicijaY]);
dini_FloatSet(stringers, "PozicijaZ",Garaza[mica][gPozicijaZ]);
dini_IntSet(stringers, "CenaGaraze",Garaza[mica][gCenaGaraze]);
SendClientMessage(playerid,COLOR_WHITE,"Napravili ste garazu!");
texticg(mica);
}
}
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):Cela komanda a evo samo to za kucu if(strcmp(x_nr,"kucu",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new tmp2[255];
new tmp3[255];
tmp = strtok(cmdtext, idx);
tmp2 = strtok(cmdtext, idx);
tmp3 = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi kucu [tip 1-4] [cena] [lvl]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi kucu [tip 1-4] [cena] [lvl]");
return 1;
}
if(!strlen(tmp3))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /napravi kucu [tip 1-4] [cena] [lvl]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] <1337)
{
SendClientMessage(playerid, COLOR_GRAD2, "Niste ovlasceni da koristite ovu komandu!");
return 1;
}
new tip = strval(tmp);
new cena = strval(tmp2);
new lvl =strval(tmp3);
if(tip < 1 || tip > 4){SendClientMessage(playerid, COLOR_GRAD2, "Nesme ispod 1 ili iznad 4!");return 1;}
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new lolcina = 1;
for(new i = 1; i < sizeof(HouseInfo); i++)
{
if(lolcina == 0){return 1;}
new stringers[600];
format(stringers, sizeof(stringers), "kuce/Kuca_%d.ini", i);
if(!fexist(stringers))
{
lolcina = 0;
HouseInfo[i][hOwned] = 0;
strmid(HouseInfo[i][hOwner],"Niko", 0, strlen("Niko"), 255);
HouseInfo[i][hLock] = 0;
HouseInfo[i][hLevel] = lvl;
HouseInfo[i][hValue] = cena;
HouseInfo[i][hEntrancex] = x;
HouseInfo[i][hEntrancey] = y;
HouseInfo[i][hEntrancez] = z;
HouseInfo[i][hRent] = 0;
HouseInfo[i][hTip]=tip;
HouseInfo[i][hRentabil]=0;
HouseInfo[i][hWorld]=i;
HouseInfo[i][hHealthx]=0;
HouseInfo[i][hHealthy]=0;
HouseInfo[i][hHealthz]=0;
HouseInfo[i][hVcol1] = -1;
HouseInfo[i][hVcol1] = -1;
HouseInfo[i][hVec] = 418;
if(tip == 1)
{
HouseInfo[i][hExitx]=223.15235900879;
HouseInfo[i][hExity]=1287.6987304688;
HouseInfo[i][hExitz]=1082.140625;
HouseInfo[i][hInt]=1;
HouseInfo[i][hRooms]=1;
strmid(HouseInfo[i][hDiscription],"Mala", 0, strlen("Mala"), 255);
}
else if(tip == 2)
{
HouseInfo[i][hExitx]=2233.8034667969;
HouseInfo[i][hExity]=-1114.8354492188;
HouseInfo[i][hExitz]=1050.8828125;
HouseInfo[i][hInt]=5;
HouseInfo[i][hRooms]=2;
strmid(HouseInfo[i][hDiscription],"Srednja", 0, strlen("Srednja"), 255);
}
else if(tip == 3)
{
HouseInfo[i][hExitx]=2196.1489257813;
HouseInfo[i][hExity]=-1204.3884277344;
HouseInfo[i][hExitz]=1049.0234375;
HouseInfo[i][hInt]=6;
HouseInfo[i][hRooms]=3;
strmid(HouseInfo[i][hDiscription],"Velika", 0, strlen("Velika"), 255);
}
else if(tip == 4)
{
HouseInfo[i][hExitx]=2365.3452148438;
HouseInfo[i][hExity]=-1135.0167236328;
HouseInfo[i][hExitz]=1050.875;
HouseInfo[i][hInt]=8;
HouseInfo[i][hRooms]=4;
strmid(HouseInfo[i][hDiscription],"Vila", 0, strlen("Vila"), 255);
}
dini_Create(stringers);
SaveKuce();
kucetexti(i);
}
}
}
Citatserver rikne nemogu nista ukucat ni je dnu komandu nista ne radi ni chat.
Radi vikendica i ostalo samo nece kuca i biznis ?
Daj pojasni malo
Server rikne znaci nemoze se kucat ni jedna komanda ko da si u singlu