-
Posts
656 -
Joined
-
Last visited
-
Days Won
2
Everything posted by John Smith
-
opposite letters of dog are: god i always knew that god existed!
-
denny,dat was bilal not neox lolz
-
why would anyone buy it?its not that special,and it can be easily recreated by looking at the pictures(screenshots)
-
oh thank you i thought when checking data that i had to use "value" but seems like " " is useless,anyway thank you Et-win btw im using or 0 to see if its new account and if it is it sets it to 0
-
sry for doublepost but i got 1 problem left when i login it doesnt directly draw my image,only when i kill someone why doesnt this work? function onLogin (_,account) setElementData(source, "LV", getAccountData(account, "LV") or "0") setElementData(source, "EXP", getAccountData(account, "XP") or "0") local dLevel = getAccountData(account, "LV") or 0 if dLevel == "100" then outputChatBox("1",root) triggerClientEvent(source,"onLevelHundred",source) outputChatBox("2",root) end addEventHandler ("onPlayerLogin", root, onLogin) it doesnt output anything and its server side please help
-
i have PM-ed you
-
that's not the problem,i've increased the number to 600 million and still doesnt draw the image for me
-
data has to be minimum 560001 to trigger the event,and i have 1,5 million and i dont know what u need of code because i posted the code about this triggering thing
-
as i got told by Et-win, im using this triggerClientEvent(killer,"onLevelHundred",killer)
-
its not outputting anything i dont know why edit: probably because something is wrong in Dealman's code
-
it doesnt draw the image at all
-
@Dealman, no im just trying to draw it for each person differently(probs localPlayer) @Et-win, sry but replace that line with what exactly?
-
im sorry but i dont understand what you mean.. first event handler makes sure dx function text gets drawn in every frame but second event handler just starts the function to draw it im really sorry could you show me how the code is suppost to look like?im still new at scripting
-
serverside part where i trigger client event as u told me how to elseif (tonumber(exp) >= 560001 and tonumber(exp) <=600000) then setElementData(killer, "LV", 100) triggerClientEvent(killer,"onLevelHundred",killer) client function onLevelHundred() dxDrawImage ( screenWidth/3.25, screenHeight/1.045, 32, 32, '1.png', 0, -120 ) -- end addEvent("onLevelHundred",true) addEventHandler("onLevelHundred",localPlayer,onLevelHundred) function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), onLevelHundred) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering)
-
its not the problem about checking players data,i have a problem how can i draw it for just 1 player? i can use my lines of code and check if player has wdiqwjeioqwjeqwoiqwej data but if it has,its still gonna draw picture for everyone lol i just need help how to draw it for one player..(killer) (i currently have only 1 picture but it still draws for everyone) please help
-
is this something about life stories?
-
okay sry for 3rd post but i have been doing some things and i found where is the problem but i dont know how to fix it function onLevelHundred() dxDrawImage ( screenWidth/3.25, screenHeight/1.045, 32, 32, '1.png', 0, -120 ) end addEvent("onLevelHundred",true) addEventHandler("onLevelHundred",localPlayer,onLevelHundred) function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), onLevelHundred) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) in second function handletherendering getRootElement() or resourceRoot or both cause the image to be visible to everyone,but i dont know how to fix this. i tried changing it to localPlayer but no success anyone knows how to fix this?
-
i re-edited this post so much,i will just reply if i find any problem because i think i know what i have been doing wrong
-
i really hope there is someone else who can help me,because noone answered in here yet except you
-
function funcc(ammo, killer, weapon, bodypart) if (killer and getElementType(killer) == "player" and killer ~= source) then -- defining some things --getting lots of numbers and if its that number(e.g above 600k) then --it triggers client event for drawning image i doubt that u really need whole script for this
-
i put it like that and even players who dont have any data which im setting can see the image
-
server elseif (tonumber(exp) >= 560001 and tonumber(exp) <=600000) then setElementData(killer, "LV", 100) triggerClientEvent("onLevelHundred",killer) -- killer is defined already so no worries about it client function onLevelHundred() dxDrawImage ( screenWidth/3.25, screenHeight/1.045, 32, 32, '1.png', 0, -120 ) end addEvent("onLevelHundred",true) addEventHandler("onLevelHundred",localPlayer,onLevelHundred) function HandleTheRendering ( ) addEventHandler("onClientRender", getRootElement(), onLevelHundred) -- Keep everything visible with onClientRender. end addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) im using just 1 pic at the moment for LV(level) 100 but it draws image for anyone im unsure how to trigger client event properly,its confusing me as i dont understand the examples out there