18.09.2010, 19:36
Galera, seguinte meu /puxarcarro das casa ta bugado, eu do o comando e vem outro carro, tipo cada casa ta com um carro especifico pra ser puxad o.O, se precisar do codigo digam ai qe eu boto
pawn Код:
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;
}