if(strcmp(cmd, "/puxarcarro", 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)
{
if(CarTow(House+1))
{
GameTextForPlayer(playerid, "~w~Carro~n~~g~Colocado em Sua Casa~n~~r~R$-1000", 5000, 1);
GivePlayerMoneyEx(playerid,-1000);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;//towcar buisness
ExtortionSBiz(8, 1000);
}
else
{
GameTextForPlayer(playerid, "~w~O Carro esta~n~sendo ~r~usado", 5000, 1);
}
}
else
{
GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
}
}
return 1;
}
if(strcmp(cmd, "/puxarcarro2", 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)
{
if(CarRespawn(House+1))
{
GameTextForPlayer(playerid, "~w~Carro~n~~g~Reparado~n~~r~R$-1000", 5000, 1);
GivePlayerMoneyEx(playerid,-1000);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;//towcar buisness
ExtortionSBiz(8, 1000);
}
else
{
GameTextForPlayer(playerid, "~w~O Carro esta~n~sendo ~r~usado", 5000, 1);
}
}
else
{
GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
}
}
return 1;
}
Isso vai puxar o veiculo da casa para onde ele nasce na casa =)
Nгo para o player '-' |
if(strcmp(cmd, "/puxarcarro", 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)
{
if(CarTow(House+1))
{
GameTextForPlayer(playerid, "~w~Carro~n~~g~Colocado em Sua Casa~n~~r~R$-1000", 5000, 1);
pds_ManipularDinheiro(playerid,-1000);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;//towcar buisness
ExtortionSBiz(8, 1000);
}
else
{
GameTextForPlayer(playerid, "~w~O Carro esta~n~sendo ~r~usado", 5000, 1);
}
}
else
{
GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
}
}
return 1;
}
if(strcmp(cmd, "/puxarcarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new House;
House = PlayerInfo[playerid][pPHousekey];
GetPlayerName(playerid, playername, sizeof(playername));
if (House != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPHousekey]][hOwner], true) == 0)
{
if(CarRespawn(House+1))
{
new carroLex;
carroLex = (591 + House + 1);
GivePlayerMoneyEx(playerid,-1000);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
SBizzInfo[8][sbTill] += 1000;
ExtortionSBiz(8, 1000);
SetVehicleToRespawn(carroLex);
GameTextForPlayer(playerid, "~w~Carro~n~~g~Colocado em Sua Casa~n~~r~R$-1000", 5000, 1);
}
else
{
GameTextForPlayer(playerid, "~w~O Carro esta~n~sendo ~r~usado", 5000, 1);
}
}
else
{
GameTextForPlayer(playerid, "~w~Voce nao tem casa", 5000, 1);
}
}
return 1;
}
for(new h = 0; h < sizeof(HouseInfo); h++)
{
AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
gCarLock[h+1] = 1;
}
new House;
House = PlayerInfo[playerid][pPHousekey];
GetPlayerName(playerid, playername, sizeof(playername));
new carroLex;
carroLex = (591 + House + 1);
for(new h = 0; h < sizeof(HouseInfo); h++)
{
AddStaticVehicleEx(HouseInfo[h][hVec], HouseCarSpawns[h][0], HouseCarSpawns[h][1], HouseCarSpawns[h][2], HouseCarSpawns[h][3], HouseInfo[h][hVcol1], HouseInfo[h][hVcol2], 60000);
gCarLock[h+1] = 1;
}