Jump to content

T-Raw/Tyga

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by T-Raw/Tyga

  1. T-Raw/Tyga

    Bug

    This happen when i try to join a server please help it says Error Bad Server response 1
  2. dude insertt it after the line 56 and dont forget to change this ":yourfilenamehere/yourimagehere.png put your image there
  3. I can confirm that RSG;RPG is spamming and ddosing our server
  4. local screenW, screenH = guiGetScreenSize() dxDrawImage((screenW - 1280) / 2, (screenH - 720) / 2, 1280, 720, ":yourfilenamehere/yourimagehere.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end )
  5. Nothing in debugscript
  6. Well this script is when the criminals kill a police and he is inside the car a marker get created ----Criminal Part---- function mout ( ammo, attacker, weapon, bodypart ) -- if there was an attacker local veh = getPedOccupiedVehicle(source) if ( attacker ) then if isPedInVehicle ( source ) and getTeamName(getPlayerTeam(source)) == "Police" then if ( getElementType ( attacker ) == "player" ) and getTeamName(getPlayerTeam(attacker)) == "Criminals" then theduck = createMarker ( 2449.59375, 2338.9548339844, 10.8203125, "cylinder", 1, 255, 0, 0, 170 ) end end end outputChatBox("Works Fine", attacker, 255, 0, 0) addEventHandler( "onMarkerHit", theduck, floss ) end addEventHandler ( "onPlayerWasted", getRootElement(), mout )
  7. Well,This is my script when a player enter a vehicle (infernus) a marker get created and when he heat it he gets monney + he can lock the car but its not working so pleaser help me [lua] addEventHandler( "onPlayerWasted", getRootElement(), dead) function dead ( thePlayer ) if getTeamName( getPlayerTeam( thePlayer ) ) == "Police" and isPlayerInVehicle ( thePlayer ) then destroyElement(bankVehicle) destroyElement(bank) end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), planeEnter ) function planeEnter ( theVehicle, seat, jacked ) local id = getElementModel ( theVehicle ) if id == 519 or id == 411 then local bank = createMarker ( 2430.5231933594, 2368.6953125, 10.671875, "cylinder", 1.5, 255, 255, 0, 170 ) end end -- add the event handler to the event function lockcar ( thePlayer ) bankVehicle = getPlayerOccupiedVehicle ( thePlayer ) if ( bankVehicle ) then if isVehicleLocked ( playervehicle ) then setVehicleLocked ( playervehicle, false ) else setVehicleLocked ( playervehicle, true ) end end end function bindLockOnSpawn ( theSpawnpoint ) -- w bindKey ( source, "l", "down", lockcar ) end addEventHandler ( "onPlayerSpawn", getRootElement(), bindLockOnSpawn ) addEventHandler( "onMarkerHit", bank, MarkerHit) function MarkerHit( thePlayer, matchingDimension ) if getTeamName( getPlayerTeam( thePlayer ) )== "Police" and isPlayerInVehicle ( thePlayer ) then givePlayerMoney ( thePlayer, 4000 ) outputChatBox("Delievery done", thePlayer) destroyElement(bankVehicle) destroyElement(bank) end end addEventHandler( "onVehicleExplode", getRootElement(), blow) function blow ( thePlayer ) if isPlayerInVehicle ( thePlayer ) then destroyElement(bankVehicle) destroyElement(bank) outputChatBox("Failed", thePlayer) end end [/lua]
  8. I want to make each time the player leaves the game his wantedlevel get saved
  9. I wanna lock it for a team addEvent "onPlayerHeadshot" weapons = {} weapons[33] = true weapons[34] = true addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss) if bodypart == 9 and weapons[weapon] then local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss) if result == true then setPedHeadless(source, true) killPed(source, attacker, weapon, bodypart) end end end ) -- addEventHandler("onPlayerSpawn", root, function() setPedHeadless(source, false) end) function returnHead() if isPedHeadless(source) then setPedHeadless(source,false) end end addEventHandler("onPlayerSpawn",root,returnHead)
  10. I will soon
  11. Its not Working for me could you guys help me? t "onPlayerHeadshot" weapons = {} weapons[33] = true addEventHandler("onPlayerDamage", getRootElement(), function (attacker, weapon, bodypart, loss) if bodypart == 9 and weapons[weapon] then local result = triggerEvent("onPlayerHeadshot", source, attacker, weapon, loss) local result2 = triggerClientEvent(root, "onClientPlayerHeadshot", source, attacker, weapon, loss) if result == true and result2 == true and getTeamName( getPlayerTeam( source ) ) == "Desert Storm" then setPedHeadless(source, true) killPed(source, attacker, weapon, bodypart) end end end ) -- addEventHandler("onPlayerSpawn", root, function() setPedHeadless(source, false) end) function returnHead() if isPedHeadless(source) then setPedHeadless(source,false) end end addEventHandler("onPlayerSpawn",root,returnHead)
  12. Thank you its resolved
  13. Its better to visite us
  14. Hello, San Andreas Quality of Gaming is finaly open we are aleardy working on a 1.5 version i hope that you guys will enjoy our gameplaye Mta Server IP:78.157.200.215:22050
  15. Well,this is my Duals script i think that something is missing could help me? function dubleuzi() if getPlayerTeam(source) == "Desert Storm" then setPedStat ( source, 75, 1000 ) end end addEventHandler("onPlayerSpawn",getRootElement(),dubleuzi) function resetdubleuzi() if getPlayerTeam(source) == "Desert Storm" then setPedStat ( source, 75, 500 ) end end addEventHandler("onPlayerWasted",getRootElement(),resetdubleuzi)
×
×
  • Create New...