06.11.2012, 21:03
pawn Код:
CMD:destrancar(playerid,params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo !");
if(GetPlayerVehicleSeat(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo pode destrancar esse veнculo !");
new Veiculo = GetPlayerVehicleID(playerid);
new Pecas[7];
GetVehicleParamsEx(Veiculo, Pecas[0], Pecas[1], Pecas[2], Pecas[3], Pecas[4], Pecas[5], Pecas[6]);
SetVehicleParamsEx(Veiculo, Pecas[0], Pecas[1], Pecas[2], true, Pecas[4], Pecas[5], Pecas[6]);
GameTextForPlayer(playerid, "~b~ Veiculo Destrancado !", 2500, 3);
return 1;
}