Jump to content

Apo

Members
  • Posts

    141
  • Joined

  • Last visited

Everything posted by Apo

  1. Apo

    help

    hey i have a roleplay server and when i update resources the player downloads them even after logging in. i want them to download it before they log in
  2. Apo

    help

    i have a new update i need help when join the server first get update after can join the game my problem but now player can join the game and can login server and player in server playing and Simultaneous get new update
  3. Apo

    help

    hi guys I need help when the player enters the server was the first time UPDATE RESOURCE for him to show up after other information and login etc.
  4. Apo

    help

    not work all dimension and interior worked
  5. Apo

    help

    hi guys my problem hillarea worked all interior and all dimension i need worked only in interior 30 and dimension 30 please helpe me. local hillArea = createColRectangle ( -2171.0678710938, 678.17950439453, 15, 15 ) function hill_Enter ( thePlayer, matchingDimension ) if getElementType ( thePlayer ) == "player" then local nameOfThePlayer = getPlayerName ( thePlayer ) outputChatBox ( nameOfThePlayer.." entered the zone!", getRootElement(), 255, 255, 109 ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter )
  6. Apo

    help

    i have a m4 ak47 colt 45 deagle i can use m4 and colt45 or deagle afk 47
  7. Apo

    help

    hi guys Please help me I have 4 weaponsand I can only use two weapons
  8. Apo

    help

    hi guys my problem all radar and all closhap when I am writing the command /show i need only delete the hillarea and hillRadar for when turfcol = true hillArea = { {1436.6826171875, -2940.1494140625, 13.546875, 500,500,500}, {1436.6826171875, -2640.1494140625, 13.546875, 500,500,500}, {1436.6826171875, -2340.1494140625, 13.546875, 500,500,500}, {1436.6826171875, -640.1494140625, 13.546875, 500,500,500} } hillRadar = { {1262.2802734375, -2769.48828125, 300, 300, 171, 175, 174, 80}, {1262.2802734375, -2469.48828125, 300, 300, 92, 46, 2, 80}, {2762.2802734375, -2169.48828125, 200, 300, 255, 0, 143, 80} } turfCol = nil hillRadars = nil function maketurf (thePlayer) if turfcol == nil and hillRadars == nil then for i,v2 in ipairs(hillArea) do turfCol = createColCuboid(unpack(v2)) end for i,v1 in ipairs(hillRadar) do hill = createRadarArea(unpack(v1)) end turfCol = true hillRadars = true else local allturfs = getElementsByType("radararea") local allcols = getElementsByType("colshape") for i, v2 in ipairs(allturfs) do destroyElement(v2) end for i, v1 in ipairs(allcols) do destroyElement(v1) end turfCol = nil hillRadars = nil end end addCommandHandler("show", maketurf)
  9. Apo

    help

    serverside
  10. Apo

    help

    attacker can not see outputChatBox("test wasted",attacker,155,100,100)
  11. Apo

    help

    hi guys my code az not work please help me function PlayerHeadShot ( ammo, attacker, weapon, bodypart ) if ( attacker ) then if ( getElementType ( attacker ) == "player" ) then if ( bodypart == 9 ) then outputChatBox("test wasted",attacker,155,100,100) end end end end addEventHandler ( "onPlayerWasted", getRootElement (), PlayerHeadShot)
  12. Apo

    help

    hi guys how to find warining long execution <resourcename>
  13. Apo

    help

    how to disable chat box and image and etc... for example when press key f11 and all chatbox and etc .. disabled
  14. Apo

    help

    i have warining only new version 1.5.3 and other version no warning
  15. Apo

    help

    no sry line 92 WARNING:weapon.lua:92: Expected number, got non-convertible string. This warning may be an error in future versions. WARNING: weapon.lua:92: Expected number, got non-convertible string. This warning may be an error in future versions. [DUP x6] setWeaponProperty( id , "std", "maximum_clip_ammo", ammo)
  16. Apo

    weapon

    hi player can not forwards or backwards or left or right when shooting or aming and i test code and not work setWeaponProperty ( 24,"pro","flag_move_and_aim", true ) setWeaponProperty ( 24,"std","flag_move_and_aim", true ) setWeaponProperty ( 24,"poor","flag_move_and_aim", true ) setWeaponProperty ( 24,"pro","flag_move_and_shoot", true ) setWeaponProperty ( 24,"std","flag_move_and_shoot", true ) setWeaponProperty ( 24,"poor","flag_move_and_shoot", true )
  17. Apo

    help

    my warning line (setWeaponProperty( id , "std", "maximum_clip_ammo", ammo)) WARNING:weapon.lua:40: Expected number, got non-convertible string. This warning may be an error in future versions. WARNING: weapon.lua:40: Expected number, got non-convertible string. This warning may be an error in future versions. [DUP x6] function getAmmoPerClip(id) if id == 0 then return tostring(get( getResourceName( getThisResource( ) ).. '.fist' )) elseif id == 1 then return tostring(get( getResourceName( getThisResource( ) ).. '.brassknuckle' )) elseif id == 2 then return tostring(get( getResourceName( getThisResource( ) ).. '.golfclub' )) elseif id == 3 then return tostring(get( getResourceName( getThisResource( ) ).. '.nightstick' )) elseif id == 4 then return tostring(get( getResourceName( getThisResource( ) ).. '.knife' )) elseif id == 5 then return tostring(get( getResourceName( getThisResource( ) ).. '.bat' )) elseif id == 6 then return tostring(get( getResourceName( getThisResource( ) ).. '.shovel' )) elseif id == 7 then return tostring(get( getResourceName( getThisResource( ) ).. '.poolstick' )) elseif id == 8 then return tostring(get( getResourceName( getThisResource( ) ).. '.katana' )) elseif id == 9 then return tostring(get( getResourceName( getThisResource( ) ).. '.chainsaw' )) elseif id == 10 then return tostring(get( getResourceName( getThisResource( ) ).. '.dildo' )) elseif id == 11 then return tostring(get( getResourceName( getThisResource( ) ).. 'dildo2' )) elseif id == 12 then return tostring(get( getResourceName( getThisResource( ) ).. '.vibrator' )) elseif id == 13 then return tostring(get( getResourceName( getThisResource( ) ).. '.vibrator2' )) elseif id == 14 then return tostring(get( getResourceName( getThisResource( ) ).. '.flower' )) elseif id == 15 then return tostring(get( getResourceName( getThisResource( ) ).. '.cane' )) elseif id == 16 then return tostring(get( getResourceName( getThisResource( ) ).. '.grenade' )) elseif id == 17 then return tostring(get( getResourceName( getThisResource( ) ).. '.teargas' )) elseif id == 18 then return tostring(get( getResourceName( getThisResource( ) ).. '.molotov' )) elseif id == 22 then return tostring(get( getResourceName( getThisResource( ) ).. '.colt45' )) elseif id == 23 then return tostring(get( getResourceName( getThisResource( ) ).. '.silenced' )) elseif id == 24 then return tostring(get( getResourceName( getThisResource( ) ).. '.deagle' )) elseif id == 25 then return tostring(get( getResourceName( getThisResource( ) ).. '.shotgun' )) elseif id == 26 then return tostring(get( getResourceName( getThisResource( ) ).. '.sawed-off' )) elseif id == 27 then return tostring(get( getResourceName( getThisResource( ) ).. '.combatshotgun' )) elseif id == 28 then return tostring(get( getResourceName( getThisResource( ) ).. '.uzi' )) elseif id == 29 then return tostring(get( getResourceName( getThisResource( ) ).. '.mp5' )) elseif id == 30 then return tostring(get( getResourceName( getThisResource( ) ).. '.ak-47' )) elseif id == 31 then return tostring(get( getResourceName( getThisResource( ) ).. '.m4' )) elseif id == 32 then return tostring(get( getResourceName( getThisResource( ) ).. '.tec-9' )) elseif id == 33 then return tostring(get( getResourceName( getThisResource( ) ).. '.rifle' )) elseif id == 34 then return tostring(get( getResourceName( getThisResource( ) ).. '.sniper' )) elseif id == 35 then return tostring(get( getResourceName( getThisResource( ) ).. '.rocketlauncher' )) elseif id == 41 then return tostring(get( getResourceName( getThisResource( ) ).. '.spraycan' )) elseif id == 42 then return tostring(get( getResourceName( getThisResource( ) ).. '.fireextinguisher' )) elseif id == 43 then return tostring(get( getResourceName( getThisResource( ) ).. '.camera' )) elseif id == 44 then return tostring(get( getResourceName( getThisResource( ) ).. '.nightvision' )) elseif id == 45 then return tostring(get( getResourceName( getThisResource( ) ).. '.infrared' )) else return "disabled" end return "disabled" end function weaponpro() for id = 0, 45, 1 do if id ~= 19 and id ~= 20 and id ~=21 then local ammo = getAmmoPerClip(id) if ammo == "disable" then setWeaponProperty( id , "std", "maximum_clip_ammo", 0) else setWeaponProperty( id , "std", "maximum_clip_ammo", ammo) end end end end addEventHandler ( "onResourceStart", getRootElement(), weaponpro )
  18. Apo

    help

    hi guys I can not move when Shooting or aiming
  19. Apo

    help

    hi please help me for fix warning setWeaponProperty(30, "pro", "flag_move_and_aim", true) <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.3.5-9.06139 because flag name is being used)
  20. Apo

    help

    no just i have a lag model vehicle
  21. Apo

    help

    how to find good model vehicle for mta ?
  22. Apo

    help

    hi guys please help me for how to fix vehicle mode when many car in the near me my fps very very low and i have a lag
  23. Apo

    help

    hi guys i need help for select data in sql but In order from largest to smallest
  24. Apo

    help

    deleted? why?
  25. Apo

    help

    hi in need anim name for Hands from behind
×
×
  • Create New...