Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. Try this : marker = {} GUIEditor = { memo = {} } marker[1] = createMarker( 1958.2806396484, -2183.5830078125, 13.546875,"cylinder", 3, 255, 255, 0, 255 ) blip = createBlip( 1958.2806396484, -2183.5830078125, 13.546875, 5, 3, 255, 0, 0, 255 ) addEventHandler("onClientResourceStart", resourceRoot, function( ) wnd = guiCreateWindow(544, 219, 393, 315, "Pilot Misson", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) GUIEditor.memo[1] = guiCreateMemo(13, 32, 370, 186, "Pilot Misson By AlooyFTW", false, wnd) guiMemoSetReadOnly(GUIEditor.memo[1], true) Take_it = guiCreateButton(23, 247, 146, 41, "Take It !", false, wnd) guiSetProperty(Take_it, "NormalTextColour", "FFAAAAAA") Exit = guiCreateButton(227, 247, 146, 41, "Exit", false, wnd) guiSetProperty(Exit, "NormalTextColour", "FFAAAAAA") guiSetVisible(wnd,false) end ) addEventHandler("onClientMarkerHit",getRootElement(), function( element ) if element == localPlayer then if ( source == marker[1] ) then guiSetVisible(wnd,true) showCursor(true) elseif ( source == marker[2] ) then destroyElement(marker[2]) destroyElement( blip1 ) outputChatBox("Go To Red Flag Blip In Map !") marker[3] = createMarker( -1648.7810058594, -201.68106079102, 14.240471839905,"cylinder", 5, 255, 255, 0, 255 ) blip2 = createBlip( -1648.7810058594, -201.68106079102, 14.240471839905, 19, 2, 255, 0, 0, 255 ) elseif ( source == marker[3] ) then destroyElement(marker[3]) destroyElement( blip2 ) outputChatBox("Go To Red Flag Blip In Map !") marker[4] = createMarker( 1955.7342529297, -2493.7749023438, 13.53911781311,"cylinder", 5, 255, 255, 0, 255 ) blip3 = createBlip( 1955.7342529297, -2493.7749023438, 13.53911781311, 19, 2, 255, 0, 0, 255 ) elseif ( source == marker[4] ) then destroyElement(marker[4]) destroyElement( blip3 ) triggerServerEvent("Done",getLocalPlayer()) end end end ) addEventHandler("onClientGUIClick",getRootElement(), function( ) if ( source == Exit ) then guiSetVisible(wnd,false) setElementPosition( localPlayer,1957.9681396484, -2179.650390625, 13.546875 ) setCameraTarget( localPlayer ) showCursor(false) elseif ( source == Take_it ) then guiSetVisible(wnd,false) showCursor(false) outputChatBox("Go To Red Flag Blip In Map !") triggerServerEvent("onPlayerTake",getLocalPlayer()) marker[2] = createMarker( 1438.82421875, 1462.8070068359, 10.8203125,"cylinder", 5, 255, 255, 0, 255 ) blip1 = createBlip( 1438.82421875, 1462.8070068359, 10.8203125, 19, 2, 255, 0, 0, 255 ) setCameraTarget( localPlayer ) end end ) marker[2] is created with onClientGUIClick event .
  2. getPedOccupiedVehicle > يرجعلك السيارة حقت اللاعب أو البيد إللي تحدده isPedInVehicle > يتحقق هل اللاعب أو البيد في سيارة أم لا
  3. ما تقدر تسوي تحقق من حساب في الكلنت, لآزم تخلي الكود سيرفر أو تسوي تريقر وأنا أقول خله سيرفر أفضل
  4. باين عليك جديد, إقرأ الويكي عشان تفهم شوي للبرمجة wiki
  5. I think he got help in the Arabic Section about this problem .
  6. PaiN^

    help markers

    From what i understod, This is what you want : local myMarker = createMarker ( 1576.59998, -1636.5, 14.2, 'arrow', 1, 255, 255, 0, 170 ) function markerHitCheck(thePlayer) if getElementType ( thePlayer ) ~= 'player' then return end outputChatBox( 'work', thePlayer ) end addEventHandler( 'onMarkerHit', myMarker, markerHitCheck )
  7. I would've download it right away, But i don't have android Dx ( BlackBerry ) . Any way i hope it works fine =) .
  8. I think the only way to unban yourself is by hacking into the server's host, Or by admin panel .
  9. I think he want to have more than one gammode in one server ( DM, DD, .. ) .
  10. It looks real epic . I can't wait to play this game =D
  11. Don't modify any thing, Just add the resource to the admin group in the acl.xml file or throw the admin panel .
  12. ! يمكن في بق من النسخة اللي عندك ! أو إنه حاول يخلي الزومبي ما يضربونك إلا إذا ضربتهم
  13. That depinds how you're triggering your server side event, For example if you were using onPlayerJoin event, Then send the trigger to the source . And if you were using onMarkerHit event, Then you'll have to define the player in the function of the event and then send it to him .
  14. تسلم عالطرح, بالفعل هذي مشكلة كثير من الشباب يواجهونها و احب اقول العيب مو انك تغلط, العيب إنك ما تصلح غلطتك والله يكون في عون كل من إبتلي بهذه الأشياء يا رب
  15. PaiN^

    Problem

    But it changes in freeroam gammode right ? If so, Then it's the race gammode .
  16. ما أعتقد + MTA مو من SAMP المقطع من لعبة
  17. 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 )
  18. PaiN^

    Problem

    Maybe in the race mod, Or in the scoreboard, Or in the mod it self .
  19. PaiN^

    marker

    checkpoint وهي chekpoint إنت كاتب
  20. Most of these resources is found in the community ( https://community.multitheftauto.com/index.php?p=resources )
  21. You should edit the acl.xml file while the server is off, Or else it won't work . Or you can do it in game, Throw Admin Panel .
  22. setPlayerName is a server side only function, You can't use it with guiCreateEdit ( wihch is client side function ) . I think you should read more about MTA scripting in the wiki first, Then continue working on your script / resource .
  23. والله صاحي من 13 ساعة ونص ذذ بالقوة شايف ذذ
  24. الموضوع قديييييييييييييييييييييييييييييييييييييييييييييييييييييييييييييم ض1
×
×
  • Create New...