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), \"Használat: /carupgrade [autónév]\");
SendClientMessage(playerid, COLOR_GREEN,\"_______________________________________\");
SendClientMessage(playerid, COLOR_WHITE,\"*** AUTÓ VÉTEL A HÁZHOZ $100000 ***\");
SendClientMessage(playerid, COLOR_GRAD2,string);
if(PlayerInfo[playerid][pLevel] >= 3)
{
SendClientMessage(playerid, COLOR_GRAD3, \"Autók: blistacompact clover elegant emperor glendale greenwood\");
SendClientMessage(playerid, COLOR_GRAD3, \"Autók: huntley jester landstalker merit nebula sabre stratum\");
SendClientMessage(playerid, COLOR_GRAD3, \"Autók: sunrise tahoma uranus\");
SendClientMessage(playerid, COLOR_GRAD3, \"Extra autók: stretch elegy phoenix hotknife bandito sultan\");
}
SendClientMessage(playerid, COLOR_GREEN,\"_______________________________________\");
return 1;
}
if(SBizzInfo[5][sbProducts] == 0)
{
GameTextForPlayer(playerid, \"~r~Elfogyott\", 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][pDonateRank] < 1)
{
SendClientMessage(playerid, COLOR_GREY, \" Nincs Premium-od!\");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Stretch\");
HouseInfo[house][hVec] = 409;
}
else if(strcmp(gunid, \"hotknife\", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pDonateRank] < 1)
{
SendClientMessage(playerid, COLOR_GREY, \" Nincs Premium-od!\");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz:Hotknife\");
HouseInfo[house][hVec] = 434;
}
else if(strcmp(gunid, \"bandito\", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pDonateRank] < 1)
{
SendClientMessage(playerid, COLOR_GREY, \" Nincs Premium-od!\");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Bandito\");
HouseInfo[house][hVec] = 568;
}
else if(strcmp(gunid, \"sultan\", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pDonateRank] < 1)
{
SendClientMessage(playerid, COLOR_GREY, \" Nincs Premium-od!\");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Sultan\");
HouseInfo[house][hVec] = 560;
}
else if(strcmp(gunid, \"elegy\", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pDonateRank] < 1)
{
SendClientMessage(playerid, COLOR_GREY, \" Nincs Premium-od!\");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Elegy\");
HouseInfo[house][hVec] = 562;
}
else if(strcmp(gunid, \"phoenix\", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pDonateRank] < 1)
{
SendClientMessage(playerid, COLOR_GREY, \" Nincs Premium-od!\");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Phoenix\");
HouseInfo[house][hVec] = 603;
}
else if(strcmp(gunid, \"blistacompact\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Blista Compact\");
HouseInfo[house][hVec] = 496;
}
else if(strcmp(gunid, \"clover\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Clover\");
HouseInfo[house][hVec] = 542;
}
else if(strcmp(gunid, \"elegant\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Elegant\");
HouseInfo[house][hVec] = 507;
}
else if(strcmp(gunid, \"emperor\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Emperor\");
HouseInfo[house][hVec] = 585;
}
else if(strcmp(gunid, \"glendale\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Glendale\");
HouseInfo[house][hVec] = 466;
}
else if(strcmp(gunid, \"greenwood\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Greenwood\");
HouseInfo[house][hVec] = 492;
}
else if(strcmp(gunid, \"huntley\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Huntley\");
HouseInfo[house][hVec] = 579;
}
else if(strcmp(gunid, \"jester\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Jester\");
HouseInfo[house][hVec] = 559;
}
else if(strcmp(gunid, \"landstalker\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Landstalker\");
HouseInfo[house][hVec] = 400;
}
else if(strcmp(gunid, \"merit\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Merit\");
HouseInfo[house][hVec] = 551;
}
else if(strcmp(gunid, \"nebula\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Nebula\");
HouseInfo[house][hVec] = 516;
}
else if(strcmp(gunid, \"sabre\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Sabre\");
HouseInfo[house][hVec] = 475;
}
else if(strcmp(gunid, \"stratum\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Stratum\");
HouseInfo[house][hVec] = 561;
}
else if(strcmp(gunid, \"sunrise\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Sunrise\");
HouseInfo[house][hVec] = 550;
}
else if(strcmp(gunid, \"tahoma\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Tahoma\");
HouseInfo[house][hVec] = 566;
}
else if(strcmp(gunid, \"uranus\", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, \"Új Upgrade: Új kocsi a házhoz: Uranus\");
HouseInfo[house][hVec] = 558;
}
else
{
SendClientMessage(playerid, COLOR_GRAD6, \" Ismeretlen autó, vagy a rangod elég kicsi!\");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, \"Az új autódat 24 órán belül láthatod! -$100000\");
OnPropUpdate();
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, \" Ön nem engedheti meg magának ezt a luxust!Egy picit többet dolgozzon! ($100000)\");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, \" Nincs házad!\");
return 1;
}
}
return 1;
}
Ezt átírod és jó is lesz.
Am nem jó helyre nyitottad.