PaiN^ Posted February 9, 2013 Share Posted February 9, 2013 لو سمحتوا وضحوا لي الخطأ وين marker = createMarker( 849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", marker function ( source ) if ( getElementModel ( source ) == "player" ) and ( getElementModel ( source ) ~= 0 ) then setPedSkin ( source, 0 ) outputChatBox( "!! تم تغير الشخصية بنجاح", source, 210, 0, 0, true ) else outputChatBox( "", source, 210, 0, 0, false ) end end ) Link to comment
==>ҭᾄlᾄl Posted February 9, 2013 Share Posted February 9, 2013 لو سمحتوا وضحوا لي الخطأ وين marker = createMarker( 849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", marker function ( source ) if ( getElementModel ( source ) == "player" ) and ( getElementModel ( source ) ~= 0 ) then setPedSkin ( source, 0 ) outputChatBox( "!! تم تغير الشخصية بنجاح", source, 210, 0, 0, true ) else outputChatBox( "", source, 210, 0, 0, false ) end end ) marker = createMarker( 849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", marker, function ( source ) if ( getElementModel ( source ) == "player" ) and ( getElementModel ( source ) ~= 0 ) then setPedSkin ( source, 0 ) outputChatBox( "!! تم تغير الشخصية بنجاح", source, 210, 0, 0, true ) else outputChatBox( "", source, 210, 0, 0, false ) end end ) ناقصك فاصله في السطر 3 Link to comment
PaiN^ Posted February 9, 2013 Author Share Posted February 9, 2013 أخوي الماركر طلع بس ما يغير الشخصية Link to comment
Bhrany-danger Posted February 9, 2013 Share Posted February 9, 2013 المفترض تستخذم هذي الوضيفة SetElementModel مو هذي setPedSkin Link to comment
iMr.Dawix~# Posted February 9, 2013 Share Posted February 9, 2013 marker = createMarker( 849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", marker, function () if ( getElementModel ( source ) == "player" ) and ( getElementModel ( source ) ~= 0 ) then setPedSkin ( source, 0 ) outputChatBox( "!! تم تغير الشخصية بنجاح", source, 210, 0, 0, true ) else outputChatBox( "", source, 210, 0, 0, false ) end end ) Link to comment
===|OSAMA|=== Posted February 9, 2013 Share Posted February 9, 2013 -- Server Side ! marker = createMarker( 849.59246826172, -2042.9193115234, 12.8671785, "cylinder", 1.5, 255, 0, 0, 255 ) addEventHandler( "onMarkerHit", marker, function ( hitElement ) if ( getElementType ( hitElement ) == "player" ) and ( getElementModel ( hitElement ) ~= 0 ) then setElementModel ( hitElement, 0 ) outputChatBox( "!! تم تغير الشخصية بنجاح", hitElement, 210, 0, 0, true ) else outputChatBox( "", hitElement, 210, 0, 0, false ) end end ) Link to comment
PaiN^ Posted February 9, 2013 Author Share Posted February 9, 2013 مشكورررريييين ضاوي + طلال + بحريني + أسامة تسلموا الكود إشتغل Link to comment
MrCor Posted February 9, 2013 Share Posted February 9, 2013 فيه بعض الأكواد في الموضوع حاطين source و الأيفنت onMarkerHit يعني يصير source = Marker ^^ Link to comment
==>ҭᾄlᾄl Posted February 10, 2013 Share Posted February 10, 2013 مشكورررريييين ضاوي + طلال + بحريني + أسامة تسلموا الكود إشتغل العفو 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