03.02.2015, 17:52
O Erro foi Resolvido, Eu Criei Esse Sistema Mas So que o Carro Ainda Explode Esa e A Funзao que faz Ele Nao Explodir'
pawn Код:
public KitCarro(playerid)
{
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new vehicle = GetPlayerVehicleID(i);
if (GetPlayerVehicleSeat(playerid) == 0)
{
new Float:health, engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleHealth(GetPlayerVehicleID(playerid), health);
if (health < 250)
{
GetVehicleParamsEx(vehicle,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicle,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Quebrado [vehicle] = 1;
RepairCar[i] = GetPlayerVehicleID(i);
SetVehicleHealth(RepairCar[i], 300.0);
SendClientMessage(i, COLOR_RED, "O Seu veнculo bateu o motor, chame um mecвnico(/servico mecanico) ou use seu kit(/kitcarro) !");
GameTextForPlayer(i,"~r~VEICULO QUEBRADO~n~~w~ Chame um mecanico ou use um~n~~w~ KIT[/kitcarro]", 5000, 1);
return 1;
}
}
}
}
return 1;
}