06.07.2010, 21:30
Tenta usar isso:
pawn Код:
if(strcmp(cmd, "/consertar", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)){
new veiculo;
veiculo = GetPlayerVehicleID(playerid);
RepairVehicle(GetPlayerVehicleID(playerid));
SetVehicleHealth(veiculo,1000);
SendClientMessage(playerid,COLOR_GRAY,"[INFO] Carro consertado.");
return 1;
}
}