kevin11 Posted June 12, 2010 Share Posted June 12, 2010 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 Link to comment
Dark Dragon Posted June 13, 2010 Share Posted June 13, 2010 you might want to get someguy's vehicle to blow, not 'source' Link to comment
Castillo Posted June 13, 2010 Share Posted June 13, 2010 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now