golanu21
Members-
Posts
650 -
Joined
-
Last visited
Everything posted by golanu21
-
the scripting skills is not very important there man
-
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 ?
-
Soldsnake14 say you to use dxDrawImage... dxDrawImage -- for it , you need triggerClientEvent onClientRender
-
--- 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 )
-
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.
-
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
-
hi, how i make when player put his name : #ff0000NAME in scoreboard to appear with collors ? HEX
-
not working .. when i fall with skin ID 9 - 30
-
[[[THE SKIN IS : 9 ]]] '' but -50 when i fall
-
don't work..
-
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)
-
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
-
[Help] clientside showCursor does not trigger
golanu21 replied to Mittell Buurman's topic in Scripting
try like that cursortrue = isCursorShowing ( thePlayer ) local oppositefalse = not cursortrue showCursor ( thePlayer, oppositefalse ) Not tested EDITED -
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 ...
-
INTREBARE : vreti masini reale ?, daca da asta va insemna sa asteptati ceva timp la download, e pe riscul vostru
-
give the full code
-
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
-
oh, ok
