Jump to content

emad10

Members
  • Posts

    71
  • Joined

  • Last visited

Details

  • Gang
    9MoD

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

emad10's Achievements

Transformer

Transformer (11/54)

0

Reputation

  1. Police in this code have a problem Means that not all the police fired bullets only one shooting + It shows to me also this error [2012-11-24 06:27:11] WARNING: 43\server.lua:27: Bad 'element' pointer @ 'getElementType'(1) -- 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], AllPositions [4], AllPositions [5], AllPositions [6], AllPositions [7], AllPositions [8],AllPositions [9],AllPositions [10] ) end theMarker = createMarker ( 0, 0, 0, "cylinder", 15, 0, 0, 0, 0 ) setPedStat ( Ped, 77, 999 ) setPedWeaponSlot ( Ped, 3 ) attachElements ( theMarker, Ped, 0, 0, -1 ) setTimer ( giveWeapon, 5000, 0, Ped, 25, 99999, true ) 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 ) -- Client Side addEvent ( "setPedAttacking", true ) addEventHandler ( "setPedAttacking", root, function ( thePed ) setTimer ( function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) outputChatBox ( "* Start Shooting !!!", 255, 255, 0, true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed ) setPedControlState ( thePed, "fire", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, xad in ipairs ( getTimers ( 100 ) ) do killTimer ( xad ) end end )
  2. احد يعرف شنو المشكله؟
  3. مو كلهم يطلقون بس واحد + يطلع ذا الخطأ [2012-11-24 06:27:11] WARNING: 43\server.lua:27: Bad 'element' pointer @ 'getElementType'(1)
  4. [2012-11-23 22:15:01] restart: Requested by Console [2012-11-23 22:15:01] restart: Resource restarting... [2012-11-23 22:15:01] Stopping 43 [2012-11-23 22:15:01] Resource '43' changed, reloading and starting [2012-11-23 22:15:01] Starting 43 [2012-11-23 22:15:01] WARNING: 43\server.lua:21: Bad argument @ 'setPedStat' [2012-11-23 22:15:01] WARNING: 43\server.lua:22: Bad argument @ 'setPedWeaponSlot' [2012-11-23 22:15:01] WARNING: 43\server.lua:23: Bad argument @ 'attachElements' [2012-11-23 22:15:01] 43 restarted successfully [2012-11-23 22:15:06] WARNING: Bad argument @ 'giveWeapon' [2012-11-23 22:15:11] WARNING: Bad argument @ 'giveWeapon' [2012-11-23 22:15:16] WARNING: Bad argument @ 'giveWeapon' [2012-11-23 22:15:21] WARNING: Bad argument @ 'giveWeapon' [2012-11-23 22:15:26] WARNING: Bad argument @ 'giveWeapon' -- 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], AllPositions [4], AllPositions [5], AllPositions [6], AllPositions [7], AllPositions [8],AllPositions [9],AllPositions [10] ) end theMarker = createMarker ( 0, 0, 0, "cylinder", 15, 0, 0, 0, 0 ) setPedStat ( Ped, 77, 999 ) setPedWeaponSlot ( Ped, 3 ) attachElements ( theMarker, Ped, 0, 0, -1 ) setTimer ( giveWeapon, 5000, 0, Ped, 25, 99999, true ) 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 )
  5. -- Server Side thePed = createPed ( 124, 1513.3770751953, -1677.8481445313, 14.046875 ) thePed1 = createPed ( 124, 1514.3770751953, -1677.8481445313, 14.046875 ) thePed2 = createPed ( 124, 1515.3770751953, -1677.8481445313, 14.046875 ) thePed3 = createPed ( 124, 1516.3770751953, -1677.8481445313, 14.046875 ) theMarker = createMarker ( 1516.3770751953, -1677.8481445313, 14.046875, "cylinder", 15, 0, 0, 0, 0 ) setPedStat ( thePed, 77, 999 ) setPedStat ( thePed1, 77, 999 ) setPedStat ( thePed2, 77, 999 ) setPedStat ( thePed3, 77, 999 ) setPedWeaponSlot ( thePed, 3 ) setPedWeaponSlot ( thePed1, 3 ) setPedWeaponSlot ( thePed2, 3 ) setPedWeaponSlot ( thePed3, 3 ) attachElements ( theMarker, thePed, 0, 0, -1 ) attachElements ( theMarker, thePed1, 0, 0, -1 ) attachElements ( theMarker, thePed2, 0, 0, -1 ) attachElements ( theMarker, thePed3, 0, 0, -1 ) setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) setTimer ( giveWeapon, 500, 0, thePed1, 25, 99999, true ) setTimer ( giveWeapon, 500, 0, thePed2, 25, 99999, true ) setTimer ( giveWeapon, 500, 0, thePed3, 25, 99999, true ) addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), function ( thePlayer ) if getElementType ( thePlayer ) == "player" then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "eetlaf" ) 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 ) triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePed1 ) triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePed2 ) triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePed3 ) setTimer ( giveWeapon, 500, 1, thePed, 25, 99999, true ) setTimer ( giveWeapon, 500, 1, thePed1, 25, 99999, true ) setTimer ( giveWeapon, 500, 1, thePed2, 25, 99999, true ) setTimer ( giveWeapon, 500, 1, thePed3, 25, 99999, true ) end end ) -- Client Side addEvent ( "setPedAttacking", true ) addEventHandler ( "setPedAttacking", root, function ( thePed )( thePed1 )( thePed2 )( thePed3 ) setTimer ( function ( ) x, y, z = getElementPosition ( localPlayer ) setPedAimTarget ( thePed, x, y, z ) setPedAimTarget ( thePed1, x, y, z ) setPedAimTarget ( thePed2, x, y, z ) setPedAimTarget ( thePed3, x, y, z ) end , 100, 0 ) setPedControlState ( thePed, "fire", true ) setPedControlState ( thePed1, "fire", true ) setPedControlState ( thePed2, "fire", true ) setPedControlState ( thePed3, "fire", true ) outputChatBox ( "* Start Shooting !!!", 255, 255, 0, true ) end ) addEvent ( "setPedStanding", true ) addEventHandler ( "setPedStanding", root, function ( thePed )( thePed1 )( thePed2 )( thePed3 ) setPedControlState ( thePed, "fire", false ) setPedControlState ( thePed1, "fire", false ) setPedControlState ( thePed2, "fire", false ) setPedControlState ( thePed3, "fire", false ) outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true ) for _, x3NAD in ipairs ( getTimers ( 100 ) ) do killTimer ( x3NAD ) end end )
  6. اسف على التدخل بدل ما افتح موضوع شلون اسوي اكثر من بيد؟
  7. ابغيه اذا ضغط على السلاح وهو في فريق غير الشرطه يجيه كلام ان ما يقدر يشتريه
  8. addEvent("give",true) addEventHandler("give",root, function() local PlayerMoney = getPlayerMoney(source) if ( getPlayerTeam ( source ) == getTeamFromName ( 'Police' ) ) then else outputChatBox ( "#330079" .. name .. " يجب ان تكون في فريق الشرطه", getRootElement(), 255, 0, 0, true ) if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 31,123 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) end end end )
  9. addEvent("give",true) addEventHandler("give",root, function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 9000) then takePlayerMoney(source,9000) giveWeapon ( source , 31,123 ) setPedWeaponSlot(source, getSlotFromWeapon(31)) local name = getPlayerName(source) outputChatBox ( "#330079" .. name .. " #00FF00 (لقد اشترى (ام4", getRootElement(), 255, 0, 0, true ) else outputChatBox("You don't have $9000 to buy ام4", source, 255, 0, 0, true) end end ) انا ابغي ان ذا السلاح لفريق الشرطه فقط grove فريق مايقدر يشتريه
×
×
  • Create New...