Jump to content

Avagard

Members
  • Posts

    65
  • Joined

  • Last visited

Everything posted by Avagard

  1. can we do it to weapon models too?
  2. for some reason its still not working... nothing on debug
  3. so what is my current level?
  4. idk maybe there is a problem with this? addEventHandler("onPlayerJoin",root, function() setPedStat ( source, 70, 999 ) setPedStat ( source, 71, 999 ) setPedStat ( source, 72, 999 ) setPedStat ( source, 74, 999 ) setPedStat ( source, 76, 999 ) setPedStat ( source, 77, 999 ) setPedStat ( source, 78, 999 ) setPedStat ( source, 79, 999 ) end )
  5. why i can't move while shooting? what is the problem function shootingWhileMoving() setWeaponProperty(23, "poor", "flag_move_and_aim", true ) setWeaponProperty( 24, "poor", "flag_move_and_aim",true) setWeaponProperty( 25, "poor", "flag_move_and_aim",true ) setWeaponProperty( 26, "poor", "flag_move_and_aim",true) setWeaponProperty( 27, "poor", "flag_move_and_aim", true ) setWeaponProperty( 29, "poor", "flag_move_and_aim", true ) setWeaponProperty( 30, "poor", "flag_move_and_aim", true ) setWeaponProperty( 31, "poor", "flag_move_and_aim",true ) setWeaponProperty( 33, "poor", "flag_move_and_aim", true) setWeaponProperty( 34, "poor", "flag_move_and_aim", true ) setWeaponProperty(23, "poor", "flag_move_and_shoot", true ) setWeaponProperty( 24, "poor", "flag_move_and_shoot",true) setWeaponProperty( 25, "poor", "flag_move_and_shoot",true ) setWeaponProperty( 26, "poor", "flag_move_and_shoot",true) setWeaponProperty( 27, "poor", "flag_move_and_shoot", true ) setWeaponProperty( 29, "poor", "flag_move_and_shoot", true ) setWeaponProperty( 30, "poor", "flag_move_and_shoot", true ) setWeaponProperty( 31, "poor", "flag_move_and_shoot",true ) setWeaponProperty( 33, "poor", "flag_move_and_shoot", true) setWeaponProperty( 34, "poor", "flag_move_and_shoot", true ) end addEventHandler("onResourceStart",root,shootingWhileMoving)
  6. hello! i want to fix a problem. when player dies and his teammates are dead too i want them to respawn i tried to do it but instead the window of spectating shows basically it does not trigger server: function RestartRoundLobby1CT() local players = getElementsByType ( "player" ) for theKey,thePlayers in ipairs ( players ) do if getElementDimension ( thePlayers ) == 0 then if getElementData ( thePlayers , "alive" ) == false then randomSpawnT1( source, randomSpawnTableT1 ) end end end end addEvent("RestartRoundLobby1CT",true) addEventHandler ( "RestartRoundLobby1CT", root, RestartRoundLobby1CT ) addEventHandler( "onPlayerWasted", getRootElement( ), function() setElementData(source,"alive",false) end ) client function getTeamPlayersSpectate1() local player = getLocalPlayer() local players = getElementsByType ( "player" ) for theKey,thePlayers in ipairs ( players ) do if getElementDimension ( thePlayers ) == 0 then if not getElementData ( thePlayers , "alive" ) == true then triggerServerEvent("RestartRoundLobby1CT",player) else guiSetVisible (dead.label[1],true) guiSetVisible (dead.window[1],true) showCursor(true) guiGridListAddRow(dead.gridlist[1]) guiGridListSetItemText(dead.gridlist[1], 0, 1, getPlayerName(thePlayers), false, false) end end end end addEventHandler ( "onClientPlayerWasted", getLocalPlayer(), getTeamPlayersSpectate1 ) please help
  7. nvm... stupid thing.. i fixed it
  8. hello, why this doesn't trigger? the output shows but it doesn't trigger.. help please --------- server: function spawn1 (source) -- skin spawnPlayer (source, 169.7470703125, -58.4306640625 +5, 1.578125 +5, 0, 13, 0, 0) fadeCamera (source, true) setCameraTarget (source, source) setElementData(source,"MTAGOW",false) end addEvent("spawnLobby1",true) addEventHandler("spawnLobby1",root,spawn1) ---------------- client: function clicked () local row, col = guiGridListGetSelectedItem (MTAGO.gridlist[1]) if guiGridListGetSelectedItem (MTAGO.gridlist[1]) then if guiGridListGetItemText (MTAGO.gridlist[1], row, col) == "Lobby 1 0/10 Bakkara Competetive " then outputChatBox ( "Joining...") triggerEvent ( "spawnLobby1", source) end end end addEventHandler("onClientGUIClick", MTAGO.label[7], clicked)
  9. nvm found the problem.
  10. hello! i want when the cursor is on the label the font get bigger, and if the cursor is not on the labbel it goes back to normal i made the script but it doesn't work.. anybody help? function enter() local bigfont = guiCreateFont("files/mtago.ttf", 20) if guiGetText(label) == "PLAY" then guiSetFont(label, bigfont) end end addEventHandler( "onClientMouseEnter", root, enter)]] function leave() local smallfont = guiCreateFont("files/mtago.ttf", 15) if not guiGetText(label) == "PLAY" then guiSetFont(label, smallfont) end end addEventHandler( "onClientMouseLeave", root, leave)
  11. nvm.. i found a way to do it :)! thanks for the help
  12. okay how can i do that? but the problem is when they reload.
  13. i want people to have different weapon models when they carry them
  14. ;/ i saw a server has script like this
  15. HI!!!! i just want to ask if this is possible, if it is please tell me how if 2 guys had the same gun for example a sniper, is it possible for them to have different models? and also they can see each other models sorry for bad english
×
×
  • Create New...