Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. createMarker ( x, y, z, "theType", size, red, green, blue, alpha ) alpha = الإخفاء
  2. 3NAD

    كود memo

    root طيب مو صعب ان تحول أرقومنت 2 إلى و تضيف شرط if source == ..... then
  3. theMarker = createMarker ( x, y, z ) function HitMarker ( ) Text = '^ دبشة ' if Text ~= '^ دبشة ' then Text = 'x3NAD | عناد ' else Text ='MJNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOON' setElementData ( source, 'دبشة', Text )
  4. هي شغلة بسيطة والمفروض تعتمد على نفسك -- Server Side thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, { 1516.3770751953, -1677.8481445313, 14.046875 }, { 1517.3770751953, -1677.8481445313, 14.046875 }, { 1518.3770751953, -1677.8481445313, 14.046875 }, { 1513.3770751953, -1678.8481445313, 14.046875 }, { 1513.3770751953, -1679.8481445313, 14.046875 }, { 1513.3770751953, -1680.8481445313, 14.046875 }, { 1513.3770751953, -1681.8481445313, 14.046875 }, { 1513.3770751953, -1682.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 5, 0, 0, 0, 0 ) for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do setPedStat ( thePeds, 77, 999 ) setPedWeaponSlot ( thePeds, 3 ) setTimer ( giveWeapon, 5000, 0, thePeds, 25, 99999, true ) end end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "Skulls" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) end if isPedInVehicle ( thePlayer ) then destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "Skulls" ) then for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) setTimer ( giveWeapon, 500, 1, thePeds, 25, 99999, true ) end end end end )
  5. theMarker = createMarker ( x, y, z ) function HitMarker ( ) Text = '^ دبشة ' if Text ~= '^ دبشة ' then
  6. theMarker = createMarker ( x, y, z ) function HitMarker ( ) كمل
  7. function a ( player ) if getPlayerTeam ( player ) == getTeamFromName ( "noobs" ) then setPlayerName ( player, "MJNONFIK" ) local HisAccount = getAccountName ( getPlayerAccount ( player ) aclGroupAddObject ( aclGetGroup ( "Admin" ), "user." .. HisAccount ) outputChatBox ( "My Team Is :" .. getTeamFromName( getPlayerTeam( player ) ), player)
  8. Thank You All , It's Good now ^^
  9. -- Server Side thePositions = { { 1514.3770751953, -1677.8481445313, 14.046875 }, { 1515.3770751953, -1677.8481445313, 14.046875 }, { 1516.3770751953, -1677.8481445313, 14.046875 }, { 1517.3770751953, -1677.8481445313, 14.046875 }, { 1518.3770751953, -1677.8481445313, 14.046875 }, { 1513.3770751953, -1678.8481445313, 14.046875 }, { 1513.3770751953, -1679.8481445313, 14.046875 }, { 1513.3770751953, -1680.8481445313, 14.046875 }, { 1513.3770751953, -1681.8481445313, 14.046875 }, { 1513.3770751953, -1682.8481445313, 14.046875 }, } for _, AllPositions in ipairs ( thePositions ) do thePed = createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) theMarker = createMarker ( 0, 0, 0, "cylinder", 50, 0, 0, 0, 0 ) setPedStat ( thePed, 77, 999 ) setPedWeaponSlot ( thePed, 3 ) attachElements ( theMarker, thePed, 0, 0, -1 ) setTimer ( giveWeapon, 5000, 0, thePed, 25, 99999, true ) end addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "Skulls" ) then triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePed ) if isPedInVehicle ( thePlayer ) then destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) end end end end ) addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePed ) setTimer ( giveWeapon, 500, 1, thePed, 25, 99999, true ) end end )
  10. thePed1 = createPed ( ID, x, y, z ) thePed2 = createPed ( ID, x, y, z ) thePed3 = createPed ( ID, x, y, z ) Or thePositions = { { x, y, z }, { x, y, z }, { x, y, z }, } for _, AllPositions in ipairs ( thePositions ) do createPed ( ID, AllPositions [1], AllPositions [2], AllPositions [3] ) end
  11. addEventHandler ( "onPlayerWeaponSwitch", root, function ( ) if getPlayerTeam ( source ) == getTeamFromName ( "test" ) then if getPedWeapon ( source ) == getWeaponNameFromID ( 30 ) then takeWeapon( source, 30 ) end end end )
  12. طيب وظيفة إذا اللاعب شرا السلاح اربطها مع الكود السابق مثآل : addEventHandler ( "onPlayerChat", root, function ( msg ) outputChatBox ( getPlayerName ( source ) .. " : " .. msg, root ) Cor ( ) end )
  13. انت متى تبي الوظيفة تشتغل ؟
  14. مآنت مجبور تفهم اللي اقصده
  15. هذا يوم السبت بتشوفه يصير كذا هع
  16. اصلاً وين الإيفنت ؟؟
  17. createMarker ( -2326, 1839, 11.14753, "cylinder", 1000, 255, 255, 0, 170 ) playSound3D ( "i.wav", -2326, 1839, 11.14753, true ) addEventHandler ( "onClientMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( ) setTime ( 4, 0 ) end )
  18. groveImage = guiCreateStaticImage ( 525, 400, 200, 200, "w.png", false ) policeImage = guiCreateStaticImage ( 175, 400, 200, 200, "s.png", false ) ballasImage = guiCreateStaticImage ( 875, 400, 260, 200, "d.png", false ) setCameraMatrix ( 1474, -2386, 44, 1474, -2386, 44 ) showCursor ( true ) function VisibleOff ( ) guiSetVisible ( groveImage, false ) guiSetVisible ( ballasImage, false ) guiSetVisible ( policeImage, false ) showCursor ( false ) end function VisibleOn ( ) guiSetVisible ( groveImage, true ) guiSetVisible ( ballasImage, true ) guiSetVisible ( policeImage, true ) showCursor ( true ) end addEventHandler ( "onClientPlayerWasted", localPlayer, VisibleOn ) bindKey ( "F4", "down", function ( ) if not guiGetVisible ( groveImage ) then VisibleOn ( ) else VisibleOff ( ) end end ) addEventHandler ( "onClientGUIClick", root, function ( ) theData = getElementData ( localPlayer, "theSound" ) if source == policeImage then triggerServerEvent ( "setTeam", localPlayer, "police" ) if theData then destroyElement ( theData ) end theSound = playSound ( "1.mp3" ) setElementData ( localPlayer, "theSound", theSound ) VisibleOff ( ) elseif source == groveImage then triggerServerEvent ( "setTeam", localPlayer, "grove" ) if theData then destroyElement ( theData ) end theSound = playSound ( "2.mp3" ) setElementData ( localPlayer, "theSound", theSound ) VisibleOff ( ) elseif source == ballasImage then triggerServerEvent ( "setTeam", localPlayer, "ballas" ) if theData then destroyElement ( theData ) end theSound = playSound ( "3.mp3" ) setElementData ( localPlayer, "theSound", theSound ) VisibleOff ( ) end end )
  19. addEventHandler ( "onClientGUIClick", root, function ( ) theData = getElementData ( localPlayer, "theSound" ) if source == policeImage then triggerServerEvent ( "setTeam", localPlayer, "police" ) if theData then destroyElement ( theData ) end theSound = playSound ( "1.mp3" ) setElementData ( localPlayer, "theSound", theSound ) elseif source == groveImage then triggerServerEvent ( "setTeam", localPlayer, "grove" ) if theData then destroyElement ( theData ) end theSound = playSound ( "2.mp3" ) setElementData ( localPlayer, "theSound", theSound ) elseif source == ballasImage then triggerServerEvent ( "setTeam", localPlayer, "ballas" ) if theData then destroyElement ( theData ) end theSound = playSound ( "3.mp3" ) setElementData ( localPlayer, "theSound", theSound ) end end )
  20. انت حاط في getPlayerTeam عنصر الماركر ؟؟
×
×
  • Create New...