Jump to content

Anubhav

Members
  • Posts

    2,277
  • Joined

  • Last visited

Everything posted by Anubhav

  1. https://code.google.com/p/mtasa-blue/so ... xml?r=1995 - ACL.XML
  2. Mein pakistani nahi hu, likin ye urdi ka board aur mujha thodi bohot athi hein. Agar app mujha answer kar sek te ho tho: Pakistan har bar cease-fire india pe kyu kar thi hein??? Kudha-Fiz
  3. function checkMuteOnLogout(account) if (not isPlayerMuted(source)) then return end local mutedTime = getElementData(source, "mt") or 0 if (tonumber(mutedTime > 1)) then setAccountData(account, "mt", tonumber(mutedTime)) if isTimer(unmuteTimer[source) then killTimer(unmuteTimer[source]) end end end addEventHandler("onPlayerLogout", root, checkMuteOnLogout)
  4. Anubhav

    Please help me

    Wherever you set the value.
  5. Anubhav

    save problem

    addEventHandler ( "onPlayerSpawn", root, function () local theAccount = getPlayerAccount ( source ); -- weapons local weapon0 = getAccountData ( theAccount, "weapons.weapon0" ); -- ammo local ammo0 = getAccountData ( theAccount, "weapons.ammo0" ); if weapon0 == false or ammo0 == false then return end -- give the weapons if ( weapon0 > 0 ) then giveWeapon ( source, weapon0, ammo0 ); end ----- this line );
  6. function movement() block = createObject(8656, 3475.7880859375, -1600.0648193359, 35.055699920654, 0, 0, 0) col = createColCuboid ( 3475.1223, -1615.3714, 33.8, 1.338, 30.8451, 2.485 ) attachElements (col, block, 0, 0, 0) MoveObject(1) end function MoveObject(point) moveObject(block, 6600, 3475.7880859375, -1600.0648193359, 35.055699920654, 0, 0, 360) setTimer(setElementRotation, 6600, 0, block, 0, 0, 360) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), movement) function onClientColShapeHit( theElement, matchingDimension ) if ( theElement == getLocalPlayer() ) then setElementHealth ( theElement, 0 ) end end addEventHandler("onClientColShapeHit",getRootElement(),onClientColShapeHit)
  7. Anubhav

    save problem

    So check if the value exist by a if statment.
  8. Anubhav

    save problem

    Are you sure you have set the account data?
  9. Anubhav

    Please help me

    Please check if you have set the value to vehicle.
  10. Anubhav

    Please help me

    That means you never had set the value.
  11. function decreaseMutedTime ( player, time ) if isElement ( player ) == false then return end unmuteTimer[player] = setTimer ( function () local timeLeft = tonumber ( getElementData ( player, "mt" ) ); ---- this line if ( timeLeft == 0 ) then killTimer(unmuteTimer[player]) outputDebugString ( "0 sec left" ); if ( getElementData ( player, "mute" ) ) then outputDebugString ( "is muted" ); setPlayerMuted ( player, false ); setElementData ( player, "mt", 0 ); setElementData ( player, "mute", false ); outputChatBox ( "Your time of being muted has expired.", player, 0, 255, 0 ); outputChatBox ( getPlayerName ( player ) .."'s mute has expired", root, 0, 255, 0 ); unmuteTimer[player] = nil; end else if ( getElementData ( player, "mute" ) ) then -------------- and this line setElementData ( player, "mt", timeLeft - 1 ); end end end, 1000, -1 ); end
  12. are you mad? Its doing that. See the difference between sneak and default muscular.
  13. Without it worked fine for me. Tested
  14. GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 546) / 2, (screenH - 229) / 2, 546, 229, "Walking Style", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFF0000") guiSetVisible(GUIEditor.window[1], false) GUIEditor.gridlist[2] = guiCreateGridList(9, 26, 365, 193, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[2], "Styles", 0.5) guiGridListAddColumn(GUIEditor.gridlist[2], "ID", 0.5) for i = 1, 24 do guiGridListAddRow(GUIEditor.gridlist[2]) local Default = guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "Default", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 0, 2, "0", false, false) local Sneak = guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "Sneak", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 1, 2, "69", false, false) local Fat = guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "Fat", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 2, 2, "55", false, false) local Muscular = guiGridListSetItemText(GUIEditor.gridlist[2], 3, 1, "Muscular", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 3, 2, "56", false, false) local Man = guiGridListSetItemText(GUIEditor.gridlist[2], 4, 1, "Man", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 4, 2, "118", false, false) local FatMan = guiGridListSetItemText(GUIEditor.gridlist[2], 5, 1, "Fat Man", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 5, 2, "124", false, false) local Gang1 = guiGridListSetItemText(GUIEditor.gridlist[2], 6, 1, "Gang One", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 6, 2, "121", false, false) local Gang2 = guiGridListSetItemText(GUIEditor.gridlist[2], 7, 1, "Gang Two", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 7, 2, "122", false, false) local Blind = guiGridListSetItemText(GUIEditor.gridlist[2], 8, 1, "Blind Man", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 8, 2, "127", false, false) local SWAT = guiGridListSetItemText(GUIEditor.gridlist[2], 9, 1, "S.W.A.T", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 9, 2, "128", false, false) local Hooker = guiGridListSetItemText(GUIEditor.gridlist[2], 10, 1, "Hooker", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 10, 2, "133", false, false) local OldMan = guiGridListSetItemText(GUIEditor.gridlist[2], 11, 1, "Old Man", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 11, 2, "120", false, false) local SexyWoman = guiGridListSetItemText(GUIEditor.gridlist[2], 12, 1, "Sexy Woman", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 12, 2, "132", false, false) local JoggerMan = guiGridListSetItemText(GUIEditor.gridlist[2], 13, 1, "Jogger Woman", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 13, 2, "136", false, false) local Shuffle = guiGridListSetItemText(GUIEditor.gridlist[2], 14, 1, "Shuffle", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 14, 2, "119", false, false) local Shopper = guiGridListSetItemText(GUIEditor.gridlist[2], 15, 1, "Shopper", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 15, 2, "130", false, false) local BusyWoman = guiGridListSetItemText(GUIEditor.gridlist[2], 16, 1, "Busy Woman", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 16, 2, "131", false, false) local OldFatWoman = guiGridListSetItemText(GUIEditor.gridlist[2], 17, 1, "Old Fat Woman", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 17, 2, "137", false, false) local Drunk = guiGridListSetItemText(GUIEditor.gridlist[2], 18, 1, "Drunk", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 18, 2, "126", false, false) local Woman = guiGridListSetItemText(GUIEditor.gridlist[2], 19, 1, "Woman", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 19, 2, "129", false, false) local JoggerWoman = guiGridListSetItemText(GUIEditor.gridlist[2], 20, 1, "Jogger Woman", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 20, 2, "136", false, false) local Jogger = guiGridListSetItemText(GUIEditor.gridlist[2], 21, 1, "Jogger", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 21, 2, "125", false, false) local DefaultFat = guiGridListSetItemText(GUIEditor.gridlist[2], 22, 1, "Default Fat", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 22, 2, "55", false, false) local DefaultMuscular = guiGridListSetItemText(GUIEditor.gridlist[2], 23, 1, "Default Muscular", false, false) guiGridListSetItemText(GUIEditor.gridlist[2], 23, 2, "56", false, false) GUIEditor.button[1] = guiCreateButton(377, 27, 159, 40, "Choose", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FF1DFC00") addEventHandler("onClientGUIClick", GUIEditor.button[1], select, false) GUIEditor.button[2] = guiCreateButton(378, 97, 158, 40, "Cancel", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000") GUIEditor.label[1] = guiCreateLabel(380, 147, 156, 72, "Welcome to they gym here\n you can edit your walking\nstyle by choosing any style\nfrom the list!", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 0, 156, 254) end end ) addEventHandler("onClientGUIClick",getRootElement(), function ( player ) local player2 = getLocalPlayer() if (source == GUIEditor.button[2]) then guiSetVisible (GUIEditor.window[1],false) showCursor (false) end end ) addEvent ("showGUI", true) function showGUI () if (getLocalPlayer() == source) then guiSetVisible (GUIEditor.window[1],true) showCursor(true) end end addEventHandler ("showGUI", getRootElement(), showGUI) function select () if (guiGridListGetSelectedItem (GUIEditor.gridlist[2])) then local id = guiGridListGetItemText (GUIEditor.gridlist[2], guiGridListGetSelectedItem (GUIEditor.gridlist[2]), 2) setPedWalkingStyle ( localPlayer, id ) guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end
  15. Login panel by me and my friend Chris. UPDATES* At community Screenshots At Community Information This is a normal login panel with recover account/login/register functions. It has no errors or bugs as far as I have tested. I'll keep working to fix/add something to it. Please post here if something is requested. https://community.multitheftauto.com/ind ... s&id=10053
  16. addEvent("wanted",true) addEventHandler("wanted",root, function(weapon) if weapon == 43 and getElementType(source)=="player" then if getPlayerTeam(source) == getTeamFromName("Bandido") then setPlayerWantedLevel(source, 1) end end end end ) not sure.
  17. Anubhav

    Please help me

    1. setElementData(vehCol, "Parts_inVehicle", math.random(0, tonumber(parts)) 2. The element data wasn't set so yes. It will be set if my codes work.
  18. ----------------------------------------- Use spawnPlayer instead.
  19. Anubhav

    Server Load

    The resource for the PLAYER is loading. It will download and it will start!
×
×
  • Create New...