ele pucha o carro da casa anterior com o modelo escolhido e dps do gmx fica tudo certo
Код:
if (strcmp(cmd, "/comprarcarro", true) == 0 || strcmp(cmd, "/trocarcarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new House = PlayerInfo[playerid][pPHousekey];
GetPlayerName(playerid, playername, sizeof(playername));
if (House != 999 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPHousekey]][hOwner], true) == 0)
{
new gunid[16];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "(=-=-=-=-=-=-=-=-=-=( {FFD700}Novos Carros,Preзo R$100000{BFC0C2} )=-=-=-=-=-=-=-=-=-=)");
SendClientMessage(playerid, COLOR_GRAD2,"USE: /comprarcarro [nomedocarro]");
SendClientMessage(playerid, 0xFFFF66F, "Carros: | blistac | clover | elegant | emperor | glendale | greenwood | stafford | mountainbike |");
SendClientMessage(playerid, 0xFFFF66F, "Carros: | Land Rover | Toyota Supra | landstalker | merit | nebula | Impala SS | stratum | hornet | bike |");
SendClientMessage(playerid, 0xFFFF66F, "Carros: | sunrise | tahoma | BMW M3 | blade | flash | buffalo | phoenix | Mitsubishi | bf-injection |");
SendClientMessage(playerid, 0x33FF00FF, "Carros VIP's: | limozine | Skyline | hotknife | bandito | nrg500 | zr350 | premier |");
SendClientMessage(playerid, 0x33FF00FF, "Carros VIP's: | Super GT | maserati | Ferrari | lamborghini | savanna | Porche |");
SendClientMessage(playerid, 0x33FF00FF, "Carros Socio's: | Monster | Vortex |");
return 1;
}
strmid(gunid, tmp, 0, strlen(cmdtext), 255);
if (GetPlayerMoney(playerid) > 100000)
{
new carid = PlayerInfo[playerid][pPHousekey]+totalveiculosh;
if(strcmp(gunid, "limozine", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para Limozine");
HouseInfo[House][hVec] = 409;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "premier", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para Premier");
HouseInfo[House][hVec] = 426;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "monster", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pSocio] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro Socio !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para um Monster");
HouseInfo[House][hVec] = 557;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "vortex", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pSocio] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro Socio !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para um Vortex");
HouseInfo[House][hVec] = 539;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "hotknife", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para Hotknife");
HouseInfo[House][hVec] = 434;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Porche", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para Porche");
HouseInfo[House][hVec] = 480;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "zr350", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o ZR-350");
HouseInfo[House][hVec] = 477;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "nrg500", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para a moto nrg500");
HouseInfo[House][hVec] = 522;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "bandito", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Bandito");
HouseInfo[House][hVec] = 568;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Skyline", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Skyline");
HouseInfo[House][hVec] = 562;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Super GT", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Super GT");
HouseInfo[House][hVec] = 541;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "maserati", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o maserati");
HouseInfo[House][hVec] = 451;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Ferrari", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Ferrari");
HouseInfo[House][hVec] = 411;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "lamborghini", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o lamborghini");
HouseInfo[House][hVec] = 415;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "savanna", true, strlen(gunid)) == 0)
{
if(PlayerInfo[playerid][pVIP] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й membro vip !");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Savanna");
HouseInfo[House][hVec] = 567;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "blistac", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Gol Quadrado");
HouseInfo[House][hVec] = 496;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "stafford", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Stafford");
HouseInfo[House][hVec] = 580;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "clover", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Clover");
HouseInfo[House][hVec] = 542;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Mitsubishi", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Mitsubishi");
HouseInfo[House][hVec] = 560;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "elegant", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Elegant");
HouseInfo[House][hVec] = 507;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "hornet", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Hornet");
HouseInfo[House][hVec] = 521;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "phoenix", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Phoenix");
HouseInfo[House][hVec] = 603;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "emperor", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Emperor");
HouseInfo[House][hVec] = 585;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "glendale", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Glendale");
HouseInfo[House][hVec] = 466;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "greenwood", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Greenwood");
HouseInfo[House][hVec] = 492;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Land Rover", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Land Rover");
HouseInfo[House][hVec] = 579;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Toyota Supra", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Toyota Supra");
HouseInfo[House][hVec] = 559;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "landstalker", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Landstalker");
HouseInfo[House][hVec] = 400;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "merit", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Merit");
HouseInfo[House][hVec] = 551;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "nebula", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Nebula");
HouseInfo[House][hVec] = 516;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "Impala SS", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Impala SS");
HouseInfo[House][hVec] = 475;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "stratum", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Stratum");
HouseInfo[House][hVec] = 561;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "sunrise", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Sunrise");
HouseInfo[House][hVec] = 550;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "tahoma", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Tahoma");
HouseInfo[House][hVec] = 566;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "BMW M3", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o BMW M3");
HouseInfo[House][hVec] = 558;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "blade", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Blade");
HouseInfo[House][hVec] = 536;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "flash", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Flash");
HouseInfo[House][hVec] = 565;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "buffalo", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o Buffalo");
HouseInfo[House][hVec] = 402;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "bf-injection", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para o BF Injection");
HouseInfo[House][hVec] = 424;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "bike", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para uma Bike");
HouseInfo[House][hVec] = 509;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else if(strcmp(gunid, "montainbike", true, strlen(gunid)) == 0)
{
SendClientMessage(playerid, COLOR_GRAD6, "Atualizaзгo: Vocк trocou o carro da sua casa para uma Montain Bike");
HouseInfo[House][hVec] = 510;
DestroyVehicle(carid);
CreateVehicle(HouseInfo[House][hVec], HouseCarSpawns[House][0], HouseCarSpawns[House][1], HouseCarSpawns[House][2], HouseCarSpawns[House][3], HouseInfo[House][hVcol1], HouseInfo[House][hVcol2], 6000000);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2,"USE: /comprarcarro [nomedocarro]");
SendClientMessage(playerid, 0xFFFF66F, "Carros: | blistac | clover | elegant | emperor | glendale | greenwood | stafford | mountainbike |");
SendClientMessage(playerid, 0xFFFF66F, "Carros: | Land Rover | Toyota Supra | landstalker | merit | nebula | Impala SS | stratum | hornet | bike |");
SendClientMessage(playerid, 0xFFFF66F, "Carros: | sunrise | tahoma | BMW M3 | blade | flash | buffalo | phoenix | Mitsubishi | bf-injection |");
SendClientMessage(playerid, 0x33FF00FF, "Carros VIP's: | limozine | Skyline | hotknife | bandito | nrg500 | zr350 | premier |");
SendClientMessage(playerid, 0x33FF00FF, "Carros VIP's: | Super GT | maserati | Ferrari | lamborghini | savanna | Porche |");
SendClientMessage(playerid, 0x33FF00FF, "Carros Socio's: | Monster | Vortex |");
return 1;
}
SendClientMessage(playerid, COLOR_GRAD6, "Vocк pagou R$100000, ele jб estб na sua casa!");
OnPropUpdate();
GivePlayerMoney(playerid,-100000);
SBizzInfo[5][sbTill] += 100000;
ExtortionSBiz(5, 100000);
PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo tem (R$100000)");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo tem uma casa");
return 1;
}
}
return 1;
}
Depois disso, em caso de problemas com o comando /trancar do seu GM troque o mesmo pelo deste post