AhmeD~9MoD Posted April 30, 2013 Share Posted April 30, 2013 وين الخطأ هني ؟؟ addEventHandler ("onMarkerHit",marker3, function (playerWhoUses) if (source == copPickup) and (getPlayerWantedLevel (playerWhoUses) == 0) then giveWeapon (playerWhoUses, 3, 1, true) setPlayerNametagText (playerWhoUses, "[COP]" .. getPlayerName (playerWhoUses)) setElementData (playerWhoUses, "job", "police") setPlayerTeam ( playerWhoUses, PoliceTeam ) setPedSkin ( playerWhoUses, 280 ) outputChatBox ("اعتقل المطلوبين بهروتك , اكتب فالشات /wanted", playerWhoUses, 0, 0, 255, false) outputChatBox ("لتعتقل المجرمين فقط اضربهم بالهروة", playerWhoUses, 0, 0, 255, false) outputChatBox ("لترى المطلوبين /wanted اكتب.", playerWhoUses, 0, 0, 255, false) elseif not (getPlayerWantedLevel (playerWhoUses) == 0) and (source == copPickup) then outputChatBox ("لا يمكنك ان تصبح شرطي لأنك مطلوب", playerWhoUses, 0, 0, 255, false) end end) Link to comment
PaiN^ Posted April 30, 2013 Share Posted April 30, 2013 addEventHandler ( 'onMarkerHit', copPickup, function ( playerWhoUses ) if getElementType ( playerWhoUses ) == 'player' then if getPlayerWantedLevel ( playerWhoUses ) == 0 then giveWeapon ( playerWhoUses, 3, 1, true ) setPlayerNametagText ( playerWhoUses, '[COP]' .. getPlayerName ( playerWhoUses ) ) setElementData ( playerWhoUses, 'job', 'police' ) setPlayerTeam ( playerWhoUses, PoliceTeam ) setPedSkin ( playerWhoUses, 280 ) outputChatBox ( 'اعتقل المطلوبين بهروتك , اكتب فالشات /wanted', playerWhoUses, 0, 0, 255, false ) outputChatBox ( 'لتعتقل المجرمين فقط اضربهم بالهروة', playerWhoUses, 0, 0, 255, false ) outputChatBox ( 'لترى المطلوبين /wanted اكتب.', playerWhoUses, 0, 0, 255, false ) else outputChatBox ( 'لا يمكنك ان تصبح شرطي لأنك مطلوب', playerWhoUses, 0, 0, 255, false ) end end end ) Link to comment
AhmeD~9MoD Posted April 30, 2013 Author Share Posted April 30, 2013 (edited) addEventHandler ( 'onMarkerHit', copPickup, function ( playerWhoUses ) if getElementType ( playerWhoUses ) == 'player' then if getPlayerWantedLevel ( playerWhoUses ) == 0 then giveWeapon ( playerWhoUses, 3, 1, true ) setPlayerNametagText ( playerWhoUses, '[COP]' .. getPlayerName ( playerWhoUses ) ) setElementData ( playerWhoUses, 'job', 'police' ) setPlayerTeam ( playerWhoUses, PoliceTeam ) setPedSkin ( playerWhoUses, 280 ) outputChatBox ( 'اعتقل المطلوبين بهروتك , اكتب فالشات /wanted', playerWhoUses, 0, 0, 255, false ) outputChatBox ( 'لتعتقل المجرمين فقط اضربهم بالهروة', playerWhoUses, 0, 0, 255, false ) outputChatBox ( 'لترى المطلوبين /wanted اكتب.', playerWhoUses, 0, 0, 255, false ) else outputChatBox ( 'لا يمكنك ان تصبح شرطي لأنك مطلوب', playerWhoUses, 0, 0, 255, false ) end end end ) هني في خطأ addEventHandler ( 'onMarkerHit', copPickup, function ( playerWhoUses ) Edited April 30, 2013 by Guest Link to comment
فاّرس Posted April 30, 2013 Share Posted April 30, 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