Jump to content

Scripting

Members
  • Posts

    109
  • Joined

  • Last visited

Everything posted by Scripting

  1. is this work??! client-side: addEventHandler ( "onClientPlayerWeaponFire",localPlayer, function (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if ( weapon == 26) then triggerServerEvent("setit",getLocalPlayer()) end end ) server-side: addEvent("setit",true) addEventHandler("setit",root, function() setWeaponProperty ( "sawnoff_shotgun", "pro", "maximum_clip_ammo", 1000 ) end )
  2. pro skill and don t , you test it don t work, pls fix that pls
  3. yea in server-side and don t work!!
  4. (maximum_clip_ammo) don t work in weapon id:26, pls fix that and thx setWeaponProperty ( 26, "pro", "maximum_clip_ammo", 1000 )
  5. Pls fix problem setWeaponProperty("26", "pro", "maximum_clip_ammo", 1000)
  6. removeEventHandler don t work! client-side: addEventHandler ( "onClientPlayerWeaponFire",localPlayer, geta) function geta (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if ( weapon == 31) then triggerServerEvent("givem",getLocalPlayer()) end end setTimer(function () removeEventHandler("onClientPlayerWeaponFire", localPlayer, geta) end,5000,1)
  7. This not my want,if i use this command all players have the weapon (31) damage 999, i want set just the player one command it have this
  8. how i can use setWeaponProperty for one player??
  9. Scripting

    Some help

    Hi People, I m making this comde for damage Ak-47 ,the problem the damage don t set to 30 in the player dead ,pls fix problem and thx server-side: addEventHandler ( "onClientPlayerWeaponFire",localPlayer,am) function am () setWeaponProperty(30, "pro", "damage", 999) end addEventHandler("onPlayerWasted", getRootElement(),re) function re () removeEventHandler("onClientPlayerWeaponFire", localPlayer,am) end
  10. Scripting

    Some help!

    Hi People, i want some help, how i can create a radar with using come createRadar and thx exemple: create a radar when the player command show
  11. Scripting

    Some help!

    setPlayerName don t work pls fix it and thx client-side window = guiCreateWindow(17,5,550,450,"pick nick",true) nick = guiCreateEdit(140,20,180,30,"",true,window) getnick = guiGetText(nick) triggerServerEvent ( "change", getRootElement(), localPlayer,getnick) server-side addEvent("change",true) addEventHandler("change",root, function(getnick) setPlayerName(source,getnick)
  12. Scripting

    Help!!

    setPlayerName don t work!! window = guiCreateWindow(17,5,550,450,"pick nick",true) nick = guiCreateEdit(140,20,180,30,"",true,window) getnick = guiGetText(nick) setPlayerName(source,getnick)
  13. Scripting

    Help!

    is the full code just fix problem if isObjectInACLGroup ( "user.Console", aclGetGroup ( "Console" ) then
  14. Scripting

    Help!

    I m making this code but he don t work if isObjectInACLGroup ( "user.Console", aclGetGroup ( "Console" ) ) then outputChatBox("Completed") end
  15. Scripting

    Question

    Yea thanks you is it
  16. Scripting

    Question

    I want a help, how i can binKey this command /report For Exemple: make a bind (u) to open the window window = the window when the player command /report open it
  17. ok thx you for full heeeeeeeeeeeeeeelp verrrrrrrrrrrrrrrry thankssssssssss
  18. All players can't fire if you use /unfire is true,you don't understand me if for exemple me i used /unfire me too can t fire; i want me a help set all player can t fire just me
  19. How i can set just localPlayer used Command can fire!! addCommandHandler("unfire", function () toggleControl("fire", false) end)
  20. addCommandHandler("unfire",root, function () toggleControl ( "fire", false ) end ) this a Command to set player can t fire, but if i use command me too i can t fire i want fix it and thanks
  21. Ok,give me a another solution to fix that??!
  22. This a code to set can t fire another player but my problem he set another player and localPlayer can fire and don t set just localPlayer can fire ,fix problem and thx client-side: if getLocalPlayer () then toggleControl ( "fire", true ) else toggleControl ( "fire", false ) end
  23. Scripting

    Heelp

    This a function to make a Line 3D But,me i want change this function:set this line appear in weapon aim can a help and thx client-side: addEventHandler( 'onClientRender',root, function( ) local x,y,z = getElementPosition( localPlayer ) dxDrawLine3D( x,y,z,x,y+2,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x,y-2,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x+2,y,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x-2,y,z,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x,y,z+2,tocolor ( 0, 255, 0, 230 ), 2 ) dxDrawLine3D( x,y,z,x,y,z-2,tocolor ( 0, 255, 0, 230 ), 2 ) end )
  24. spawnPlayer: i want a code to when a command the player can spawn in the map of the current gamemode
×
×
  • Create New...