Jump to content

golanu21

Members
  • Posts

    650
  • Joined

  • Last visited

Everything posted by golanu21

  1. the scripting skills is not very important there man
  2. addEventHandler("onPlayerLogin", root, function ( thePlayer ) local accName = getAccountName ( getPlayerAccount ( source ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then setElementData(source, "Classicon", tostring(":experience\class\classicon_admin.png" )) end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then setElementData(source, "Classicon", tostring(":experience\class\classicon_mod.png" )) end if isGuestAccount ( account ) then setElementData(source, "Classicon",":experience\class\classicon_player.png") end end this script is not in server side ?
  3. Soldsnake14 say you to use dxDrawImage... dxDrawImage -- for it , you need triggerClientEvent onClientRender
  4. --- SERVER SIDE addEventHandler ( "onPlayerWasted", root, -- onPlayerWasted is a server side event, you can use it in client side and we want to do with this event something in client side, therefore we make a triggerClientEvent function ( theKiller ) triggerClientEvent(theKiller, "gret", getRootElement()) end )
  5. on MTA exist functions in client side and in server side , with triggerClientEvent ( killer, "playSound", killer ) you transfer a information form server side in client side I do not know how to explain it better.
  6. if you make triggerClientEvent ( killer, "playSound", killer ) you need in client side a function with playSound --or playSound3D if you want a sound .. EDIT : addEvent("playSound",true) addEventHandler("playSound", getRootElement(), function () local sound = playSound("SOUND") setSoundVolume(sound, 0.5) -- set the sound volume to 50% end
  7. golanu21

    help

    What is not correct?
  8. golanu21

    help

    local vehicle1 = createVehicle ( 549, -1396.013671875, 464.8935546875, 7.1875, 0, 0, 0, "ZoRPG") setVehicleLocked(vehicle1, false) i can't enter in the vehicle1
  9. i can stop the F11 bind key ??
  10. hi, how i make when player put his name : #ff0000NAME in scoreboard to appear with collors ? HEX
  11. not working .. when i fall with skin ID 9 - 30
  12. [[[THE SKIN IS : 9 ]]] '' but -50 when i fall
  13. function skin1() local skin = getElementModel(source) if skin == 9 then setElementHealth(source, getElementHealth(source) -1) end end addEventHandler("onPlayerDamage", getRootElement(), skin1) i want when player havee skin ID 9 then when someone shoot him setElementHealth(source, getElementHealth(source) -1)
  14. local levels = {[100] = 1, [300] = 2, [500] = 3, [700] = 4, [1000] = 5, [1800] = 6, [2900] = 7, [5000] = 8, [9999] = 9, [20000] = 10} function win(ammo, killer, weapon, bodypart) if (killer and killer ~= source) then local H = getElementData(killer, "XP") local S = getElementData(killer, "Level") local killer1 = getPlayerName(killer) local noob = getPlayerName(source) setElementData(killer, "XP", tonumber(H)+math.random ( 5, 35 ) ) if levels[tonumber(H)] then setElementData(killer, "Level", "Lvl ".. tostring(levels[tonumber(H)]) .." !") triggerClientEvent ( killer, "playSound", killer ) end end end addEventHandler( "onPlayerWasted", getRootElement(), win) function onLogin (_,account) setElementData(source, "Level", getAccountData(account, "LV") or "0") setElementData(source, "XP", getAccountData(account, "EXP") or "0") end addEventHandler ("onPlayerLogin", root, onLogin) function onJoin (_,account) if isGuestAccount ( account ) then setElementData(source, "Level","0") setElementData(source, "XP","0") end end addEventHandler ("onPlayerJoin", root, onJoin) function saveData(thePlayer, theAccount) local theAccount = getPlayerAccount(source) if (theAccount and not isGuestAccount(theAccount)) then setAccountData (theAccount, "LV", getElementData(thePlayer, "Level")) setAccountData (theAccount, "EXP", getElementData(thePlayer, "XP")) end end addEventHandler ("onPlayerQuit", root, function () saveData(source, getPlayerAccount(source)) end) addEventHandler ("onPlayerLogout", root, function (prev) saveData(source, prev) end) try it now, not tested
  15. try like that cursortrue = isCursorShowing ( thePlayer ) local oppositefalse = not cursortrue showCursor ( thePlayer, oppositefalse ) Not tested EDITED
  16. function dxText6 ( ) dxDrawText("Apasa \"F\" pentru ajutor.", 756, 596, 1161, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Apasa \"F\" pentru ajutor.", 756, 594, 1161, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Apasa \"F\" pentru ajutor.", 754, 596, 1159, 630, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Apasa \"F\" pentru ajutor.", 754, 594, 1159, 628, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) dxDrawText("Apasa \"F\" pentru ajutor.", 755, 595, 1160, 629, tocolor(49, 250, 2, 255), 1.00, "bankgothic", "center", "center", false, false, true, false, false) end addEventHandler ( "onClientMarkerHit", lucrator1, function ( hitPlayer, matchingDimension ) addEventHandler ( "onClientRender", getRootElement(), dxText6 ) end when i hit the marker the dxdraw is visibile for all ...
  17. INTREBARE : vreti masini reale ?, daca da asta va insemna sa asteptati ceva timp la download, e pe riscul vostru
  18. with addBan you make like this addBan ( IP ) and with banPlayer banPlayer ( bannedPlayer) with addBan you banned only IP, or IP and serial or ip,serial and username and with banPlayer, you banned automate all, ban, ip, seral, username etc
×
×
  • Create New...