abdalbaset Posted February 12, 2014 Posted February 12, 2014 I want make when's player hit the colsp ped start shoting him I made it like that but my problem that I don't know what to put in client function Client colsp1=createColSphere ( 2493.623, -1668.179, 13.343, 15 ) addEvent( "onPedControl", true ) addEventHandler( "onPedControl", root, function( ) setPedControlState( source, "fire", true ) end ) function colh(player) ---------what to put here? end addEventHandler("onColShapeHit",colsp1,colh) Server addEventHandler( "onResourceStart", resourceRoot, function( ) local ped = createPed( 191, 2493.623, -1668.179, 13.343, 90 ) setTimer( function( ped ) if ( not isElement( ped ) ) then return end giveWeapon( ped, 27, 9999, true ) triggerClientEvent( root, "onPedControl", ped ) triggerClientEvent( root, "onColShapeHit", ped ) end, 100, 1, ped ) end )
Anubhav Posted February 12, 2014 Posted February 12, 2014 I Will give you server. function colh(player) setPedOnFire(ped,true) end addEventHandler("onColShapeHit",colsp1,colh)
myonlake Posted February 12, 2014 Posted February 12, 2014 I Will give you server. function colh(player) setPedOnFire(ped,true) end addEventHandler("onColShapeHit",colsp1,colh) That code doesn't make any sense. Please, stop.
abdalbaset Posted February 12, 2014 Author Posted February 12, 2014 I Will give you server. function colh(player) setPedOnFire(ped,true) end addEventHandler("onColShapeHit",colsp1,colh) That code doesn't make any sense. Please, stop. So what Im going to do?
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