[Pomoc] Kucni auto i broj kuce

Započeo Ante_Dracar aka Lopa, Septembar 02, 2010, 13:48:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

dakle posto imam gm na kojem niti jedna kuca nema auto REVENT`S roleplay i gleda sam po ostali tutovim kako napravit ali nesto ne znam pa ako mi mozete pojasnit...
dakle zelim napravit kucni auto,(ovo je iz nekog drugog gm)
dakle ovo 1...
new Float:HouseCarSpawns[34][4] = {
{-2637.0554,165.1617,4.0359,179.9702},//Kuca 1
{-2693.5015,132.9537,4.0408,89.2622},//Kuca 2
{-2693.6636,112.6182,4.0461,91.1323},//Kuca 3
{-2693.5413,98.5955,4.0438,89.6563},//Kuca 4
{-2693.5703,72.0709,4.0412,91.7580}, //Kuca 5
{-2693.4949,59.5020,4.0411,89.9426},//Kuca 6
{-2719.0095,19.5938,4.0410,269.4836},//Kuca 7
{-2718.7397,6.9253,4.0430,270.3545},//Kuca 8
{-2719.3611,-19.6664,4.0473,269.2402},//Kuca 9
{-2718.7480,-33.5795,4.0492,270.4157},//Kuca 10
{-2718.8723,-53.8319,4.0332,270.7311},//Kuca 11
{-2693.4644,-93.2721,4.0454,88.9712},//Kuca 12
{-2719.2773,-89.7159,4.0410,270.4864},//Kuca 13
{-2718.9985,-101.5770,4.0432,269.7783},//Kuca 14
{-2693.3708,-99.2120,4.0461,89.7619},//Kuca 15
{-2693.4187,-108.9642,4.0438,89.6123},//Kuca 16
{-2719.1335,-115.7239,4.0411,269.0552},//Kuca 17
{-2693.7727,-122.5173,4.0432,89.6121}, //Kuca 18
{-2718.7112,-133.0576,4.0436,269.3745},//Kuca 19
{-2693.5674,-143.7085,4.0437,89.4422},//Kuca 20
{-2718.7463,-136.9343,4.0434,269.9805},//Kuca 21
{-2693.5464,-147.4661,4.0424,89.7956},//Kuca 22
{-2719.0254,-158.6611,4.0411,269.9376},//Kuca 23
{-2693.1824,-164.9376,4.0414,88.9686},//Kuca 24
{-2719.0193,-171.4831,4.0431,270.0260},//Kuca 25
{-2528.3645,2251.1064,4.7450,334.9873},//Kuca 26
{-2719.0591,-181.5090,4.0380,268.5579},//Kuca 27
{-2693.1594,-190.8307,4.0465,90.4871},//Kuca 28
{-2718.9683,-187.3465,4.0426,268.7507},//Kuca 29
{-2859.5508,680.6616,22.8982,294.9365}, //Kuca 30
{-2867.6162,695.7854,23.2730,294.4308},//Kuca 31
{-2870.4700,702.4294,23.3959,294.4411},//Kuca 32
{-2878.7395,724.3255,28.9194,278.0464}, //Kuca 33
{-2879.7649,734.1862,29.2029,276.9675}//Kuca 34
};


posto vamo na kraju svakog pise //kuca 1  //kuca2  itdsad mene zanima kako da ja doznam taj broj i sta jos moram radit da bi stvori kucni auto,hvala unaprjed,jako bi bio zahvalan da mi bar malo objasnite...

cristiane

samo ti  mogu dat link http://balkan-samp.com/forum/index.php?topic=77.0 ako nisi nikad vidjeo sta je skripta mozes preko toga tut-a skontati sve...a nemozes sa drugog modaa kopirati kucna vozila i ubacivati na svoj

lol vidio sam sta je skripta,ali nezz sto tocno moram da kopiram iz drugu gm dali samo ovo ili jos nesto...
new Float:HouseCarSpawns[34][4] = {
{-2637.0554,165.1617,4.0359,179.9702},//Kuca 1
{-2693.5015,132.9537,4.0408,89.2622},//Kuca 2
{-2693.6636,112.6182,4.0461,91.1323},//Kuca 3
{-2693.5413,98.5955,4.0438,89.6563},//Kuca 4
{-2693.5703,72.0709,4.0412,91.7580}, //Kuca 5
{-2693.4949,59.5020,4.0411,89.9426},//Kuca 6
{-2719.0095,19.5938,4.0410,269.4836},//Kuca 7
{-2718.7397,6.9253,4.0430,270.3545},//Kuca 8
{-2719.3611,-19.6664,4.0473,269.2402},//Kuca 9
{-2718.7480,-33.5795,4.0492,270.4157},//Kuca 10
{-2718.8723,-53.8319,4.0332,270.7311},//Kuca 11
{-2693.4644,-93.2721,4.0454,88.9712},//Kuca 12
{-2719.2773,-89.7159,4.0410,270.4864},//Kuca 13
{-2718.9985,-101.5770,4.0432,269.7783},//Kuca 14
{-2693.3708,-99.2120,4.0461,89.7619},//Kuca 15
{-2693.4187,-108.9642,4.0438,89.6123},//Kuca 16
{-2719.1335,-115.7239,4.0411,269.0552},//Kuca 17
{-2693.7727,-122.5173,4.0432,89.6121}, //Kuca 18
{-2718.7112,-133.0576,4.0436,269.3745},//Kuca 19
{-2693.5674,-143.7085,4.0437,89.4422},//Kuca 20
{-2718.7463,-136.9343,4.0434,269.9805},//Kuca 21
{-2693.5464,-147.4661,4.0424,89.7956},//Kuca 22
{-2719.0254,-158.6611,4.0411,269.9376},//Kuca 23
{-2693.1824,-164.9376,4.0414,88.9686},//Kuca 24
{-2719.0193,-171.4831,4.0431,270.0260},//Kuca 25
{-2528.3645,2251.1064,4.7450,334.9873},//Kuca 26
{-2719.0591,-181.5090,4.0380,268.5579},//Kuca 27
{-2693.1594,-190.8307,4.0465,90.4871},//Kuca 28
{-2718.9683,-187.3465,4.0426,268.7507},//Kuca 29
{-2859.5508,680.6616,22.8982,294.9365}, //Kuca 30
{-2867.6162,695.7854,23.2730,294.4308},//Kuca 31
{-2870.4700,702.4294,23.3959,294.4411},//Kuca 32
{-2878.7395,724.3255,28.9194,278.0464}, //Kuca 33
{-2879.7649,734.1862,29.2029,276.9675}//Kuca 34
};


dali trebam jos nesto osim ovoga,tnx unaprjed

cristiane

ja mislim da je to dobro tako uradi i na svojim modu

Odi u GF i traži: "HouseCar" i sve gde se to spominje kopiraj u tvoj mod. Mislim da bi trebalo raditi. ;)


Btw, ono u tvom potpisu "Dva vrhunska skriptera.." se baš ne poklapa sa ovim pitanjem. :)
Poslednja Izmena: Septembar 02, 2010, 15:55:39 POSLE PODNE od mikec

dakle ovo sam pokusavao,recite jesam li sta zaboravio...
komanda za /car up grade /resetupgrade i /carcolor...
//-------------------------------[UPGRADE]--------------------------------------------------------------------------
if (strcmp(cmd, "/carcolor", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
new house = PlayerInfo[playerid][pPhousekey];
GetPlayerName(playerid, playername, sizeof(playername));
if (house != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD3,"($5000) USAGE: /carcolor [color 1 - 2] [color number]");
return 1;
}
new colornum = strval(tmp);
if(colornum > 2 || colornum < 1)
{
SendClientMessage(playerid, COLOR_GRAD3,"Choices are 1 or 2");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD3,"($5000) USAGE: /carcolor [color 1 - 2] [color number]");
}
new color = strval(tmp);
if(color > 126)
{
SendClientMessage(playerid, COLOR_GRAD3,"Maximum is 126");
return 1;
}
if (GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, COLOR_GRAD3,"You can't afford that ($5000)");
}
if(colornum == 1)
{
HouseInfo[house][hVcol1] = color;
format(string, sizeof(string), "Car color 1 set to %d -$5000",color);
SendClientMessage(playerid, COLOR_GRAD3,string);
}
else
{
HouseInfo[house][hVcol2] = color;
format(string, sizeof(string), "Car color 2 set to %d -$5000",color);
SendClientMessage(playerid, COLOR_GRAD3,string);
}
SendClientMessage(playerid, COLOR_GRAD6, "Your new paintjob will be complete within 24 hours");
SafeGivePlayerMoney(playerid,-5000);
SBizzInfo[5][sbTill] += 5000;
ExtortionSBiz(5, 5000);
PlayerPlaySound(giveplayerid, 1134, 0.0, 0.0, 0.0);
OnPropUpdate(3);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   You don't own a house");
return 1;
}
}
return 1;
}
if (strcmp(cmd, "/carupgrade", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
new house = PlayerInfo[playerid][pPhousekey];
GetPlayerName(playerid, playername, sizeof(playername));
if (house != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0)
{
new gunid[16];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
format(string, sizeof(string), "USAGE: /carupgrade [carname]");
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
SendClientMessage(playerid, COLOR_WHITE,"*** CAR UPGRADES Cost $100000 ***");
SendClientMessage(playerid, COLOR_GRAD2,string);
if(PlayerInfo[playerid][pLevel] >= 3)
{
SendClientMessage(playerid, COLOR_GRAD3, "Cars: blistacompact clover elegant emperor glendale greenwood");
SendClientMessage(playerid, COLOR_GRAD3, "Cars: huntley jester landstalker merit nebula sabre stratum");
SendClientMessage(playerid, COLOR_GRAD3, "Cars: sunrise tahoma uranus maverick");
SendClientMessage(playerid, COLOR_GRAD3, "Donation cars: maverick stretch elegy phoenix hotknife bandito sultan");
}
SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");
return 1;
}
if(SBizzInfo[5][sbProducts] == 0)
{
GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);
return 1;
}
strmid(gunid, tmp, 0, strlen(cmdtext), 255);
if (GetPlayerMoney(playerid) > 100000)
{
if(strcmp(gunid, "stretch", true, strlen(gunid)) == 0)
{
   if(PlayerInfo[playerid][pRegularRank] < 1)
   {
       SendClientMessage(playerid, COLOR_GREY, "   You don't have a Regular Player Account !");
       return 1;
   }
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Stretch");
HouseInfo[house][hVec] = 409;
}
else if(strcmp(gunid, "hotknife", true, strlen(gunid)) == 0)
{
   if(PlayerInfo[playerid][pRegularRank] < 1)
   {
       SendClientMessage(playerid, COLOR_GREY, "   You don't have a Regular Player Account !");
       return 1;
   }
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Hotknife");
HouseInfo[house][hVec] = 434;
}
else if(strcmp(gunid, "bandito", true, strlen(gunid)) == 0)
{
   if(PlayerInfo[playerid][pRegularRank] < 1)
   {
       SendClientMessage(playerid, COLOR_GREY, "   You don't have a Regular Player Account !");
       return 1;
   }
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Bandito");
HouseInfo[house][hVec] = 568;
}
else if(strcmp(gunid, "sultan", true, strlen(gunid)) == 0)
{
   if(PlayerInfo[playerid][pRegularRank] < 1)
   {
       SendClientMessage(playerid, COLOR_GREY, "   You don't have a Regular Player Account !");
       return 1;
   }
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Sultan");
HouseInfo[house][hVec] = 560;
}
else if(strcmp(gunid, "elegy", true, strlen(gunid)) == 0)
{
   if(PlayerInfo[playerid][pRegularRank] < 1)
   {
       SendClientMessage(playerid, COLOR_GREY, "   You don't have a Regular Player Account !");
       return 1;
   }
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Elegy");
HouseInfo[house][hVec] = 562;
               }
else if(strcmp(gunid, "maverick", true, strlen(gunid)) == 0)
{
   if(PlayerInfo[playerid][pRegularRank] < 1)
   {
       SendClientMessage(playerid, COLOR_GREY, "   You don't have a Regular Player Account !");
       return 1;
   }
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Maverick");
HouseInfo[house][hVec] = 487;
}
else if(strcmp(gunid, "phoenix", true, strlen(gunid)) == 0)
{
   if(PlayerInfo[playerid][pRegularRank] < 1)
   {
       SendClientMessage(playerid, COLOR_GREY, "   You don't have a Regular Player Account !");
       return 1;
   }
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Phoenix");
HouseInfo[house][hVec] = 603;
}
else if(strcmp(gunid, "blistacompact", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Blista Compact");
HouseInfo[house][hVec] = 496;
}
else if(strcmp(gunid, "clover", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Clover");
HouseInfo[house][hVec] = 542;
}
else if(strcmp(gunid, "elegant", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Elegant");
HouseInfo[house][hVec] = 507;
}
else if(strcmp(gunid, "emperor", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Emperor");
HouseInfo[house][hVec] = 585;
}
else if(strcmp(gunid, "glendale", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Glendale");
HouseInfo[house][hVec] = 466;
}
else if(strcmp(gunid, "greenwood", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Greenwood");
HouseInfo[house][hVec] = 492;
}
else if(strcmp(gunid, "huntley", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Huntley");
HouseInfo[house][hVec] = 579;
}
else if(strcmp(gunid, "jester", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Jester");
HouseInfo[house][hVec] = 559;
}
else if(strcmp(gunid, "landstalker", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Landstalker");
HouseInfo[house][hVec] = 400;
}
else if(strcmp(gunid, "merit", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Merit");
HouseInfo[house][hVec] = 551;
}
else if(strcmp(gunid, "nebula", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Nebula");
HouseInfo[house][hVec] = 516;
}
else if(strcmp(gunid, "sabre", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Sabre");
HouseInfo[house][hVec] = 475;
}
else if(strcmp(gunid, "stratum", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Stratum");
HouseInfo[house][hVec] = 561;
}
else if(strcmp(gunid, "sunrise", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Sunrise");
HouseInfo[house][hVec] = 550;
}
else if(strcmp(gunid, "tahoma", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Tahoma");
HouseInfo[house][hVec] = 566;
}
else if(strcmp(gunid, "uranus", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Uranus");
HouseInfo[house][hVec] = 558;
}
else
{
SendClientMessage(playerid, COLOR_GRAD6, "   Unrecognized Car or Regular Player Rank not High enough.");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Your new car will be delivered within 24 hours -$100000");
OnPropUpdate(3);
SafeGivePlayerMoney(playerid,-100000);
SBizzInfo[5][sbTill] += 100000;
ExtortionSBiz(5, 100000);
SBizzInfo[5][sbProducts]--;
PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   You can't afford that ($100000)");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "   You don't own a house");
return 1;
}
}
return 1;
}
if (strcmp(cmd, "/resetupgrades", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if (gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You are not Logged in !");
return 1;
}
if (GetPlayerMoney(playerid) < 100000)
{
SendClientMessage(playerid, COLOR_GRAD1, "   Cost is $50000 !");
return 1;
}
if (PlayerInfo[playerid][pLevel] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least level 2 !");
return 1;
}
PlayerInfo[playerid][gPupgrade] = (PlayerInfo[playerid][pLevel]-1)*2;
PlayerInfo[playerid][pSHealth] = 0.0;
PlayerInfo[playerid][pAlcoholPerk] = 0;
PlayerInfo[playerid][pDrugPerk] = 0;
PlayerInfo[playerid][pMiserPerk] = 0;
PlayerInfo[playerid][pPainPerk] = 0;
PlayerInfo[playerid][pTraderPerk] = 0;
SafeGivePlayerMoney(playerid,-50000);
PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
format(string, 256, "   You have %d unspent Upgrade Points !",PlayerInfo[playerid][gPupgrade]);
SendClientMessage(playerid, COLOR_GRAD2, string);
}
return 1;
}



dakle kad sam to napravio osao sam do kuce id 4 i kucao /save u kombiju kako bi dobio kordinate...
AddStaticVehicle(418,1110.1534,-969.0080,42.8576,0.9377,1,1); // kuca id 4

zatima sam napravio ovo...
new Float:HouseCarSpawns[5][4] = {
{1110.1534,-969.0080,42.8576},//Kuca 1
{1110.1534,-969.0080,42.8576},//Kuca 2
{1110.1534,-969.0080,42.8576},//Kuca 3
{1110.1534,-969.0080,42.8576},//Kuca 4
{1110.1534,-969.0080,42.8576},//Kuca 5
};


i kad kucam /carupgrade jester pise mi da ce auto doci u roku 24 sata,ali ja odman napraim restart i opet ostane stari kombi koji uopce nezz jeli od kuce zato sto sam ga dodao u skriptu ovako pa ce se uvjek tu respawnat pa pomozite sta sam zaboravio AddStaticVehicle(418,1110.1534,-969.0080,42.8576,0.9377,1,1); // kuca id 4
Poslednja Izmena: Septembar 03, 2010, 10:26:46 PRE PODNE od Ante_Dracar aka Lopa

# new Float:HouseCarSpawns[5][4] = { 

Znas sta sam naglasio?

Odi na ove coord 1110.1534,-969.0080,42.8576 i pogledaj dal je tu auto, a ako ti neradi carupgrade, onda je do komande vjerojatno, probaj rucno(u property.cfg) promjenit auto
Aequam memento rebus in arduis servare mentem.

evo ovako zamoli bi nekoga da mi stavi vamo sve sto je potreno da napravi kucni auto,dakle imam revents roleplay GM i kada bi mi neko stavio vamo sve kako da napravimkucne aute bilo bi nagrada po njegovoj zelji samo neka kaze u nekin normalnim kolicinama ili sta vec...

moli bi vas da mi pomognete.hvala unaprjed...

cristiane

vrhusnki si skripter ako  neznas preko tut-a uradit to idi se kill