iPrestege Posted May 14, 2013 Share Posted May 14, 2013 createMarker "onMarkerHit" getElementType killPed Link to comment
jafar Posted May 14, 2013 Share Posted May 14, 2013 معليش برستيج انا مبتديء هذا صح ؟؟؟ function kiilpler()createMarker(source,2485,-1666.517822265,13.34375,255,255,255,ture)endaddEventHandler("getElementType",root,kiilpler)killPed(source,255,255,255,ture)function resourceStart ()endaddEventHandler ( "onMarkerHit",resourceRoot, resourceStart ) وش هالعفسة رتب كودك >< Link to comment
jafar Posted May 14, 2013 Share Posted May 14, 2013 "-_- Marker = createMarker( x, y, z, "cylinder", Size, R, G, B ,Alpha) addEventHandler ( "onMarkerHit",Marker, function (player) if ( getElementType(player) == "player" and not isPedInVehicle(player) ) then killPed(player,player) end end,false) Link to comment
iMr.Dawix~# Posted May 14, 2013 Share Posted May 14, 2013 local Marker = createMarker ( x, y , z, "cylinder", 1.5, 255, 255, 0, 170 ) function kiilpler(plr) if plr then killPed(plr,plr) end end addEventHandler ("onMarkerHit",Marker,kiilpler) Link to comment
iPrestege Posted May 15, 2013 Author Share Posted May 15, 2013 # -- Server Side local Marker = createMarker ( x, y , z, "cylinder", 1.5, 255, 255, 0, 170 ) addEventHandler ("onMarkerHit",Marker, function ( plr ) if ( getElementType ( plr ) == ( "player" ) ) then killPed ( plr ) end end,false ) 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