Jump to content

blow


kevin11

Recommended Posts

function blowVehicle ( player, command, someguy )
if someguy then
local temp = getPlayerFromName(someguy)
if temp then
blowVehicle ( source ) 
outputChatBox("" ..someguy.. " has been blown", getRootElement(), 255, 0, 0)
end
end
end
addCommandHandler ( "boom", blowVehicle )

i tried making a blow script with command !boom player name but i dont know how to make the players car blow :cry:

Link to comment

here it is fixed :)

function blowVeh ( player, command, someguy )
if someguy then
local temp = getPlayerFromName(someguy)
if temp then
local theVehicle = getPedOccupiedVehicle ( temp )
if theVehicle then
blowVehicle ( theVehicle )
outputChatBox("" ..someguy.. " has been blown", getRootElement(), 255, 0, 0)
end
end
end
end
addCommandHandler ( "boom", blowVeh )

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...