Jump to content

yoya99

Members
  • Posts

    271
  • Joined

  • Last visited

Everything posted by yoya99

  1. I got it 2 months ago from someone
  2. no that is my personal code...i just ask for help becasue i am not a pro scripter..i just learnt it by a friend... SO you cant help me or??
  3. i tried out and it is not working too....error: basic.lua:5 attempt to perform arthimetic on global "sx" (a nil value) i dont see any image at my head too..HEEELP
  4. No...that is my own code i posted there...
  5. Thats all? Just make a meta and ready? Do i see it in my own too or? And what is with admin acl group and moderator acl group? Iam confused
  6. i don't understand...can you edit it ready pls how you mean it... thx
  7. hi there i have a problem ..i want to draw images next to the nametags for admin,moderators and normal players.... i have this files but it is not working...i tried all but i didnt found a solution....pls help me ...thx in advance basic.lua. function showImage() dxDrawImage() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Everyone" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "player.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "admin.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "moderator.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "vip.png" ) end end addEventHandler("onClientResourceStart", resourceRoot, function() addEventHandler("onClientRender", root, showImage) end) and that one: function setDataOnLogin() if not isGuestAccount(getPlayerAccount(source)) and isObjectInACLGroup("user."..getAccountName(source), aclGetGroup("Console")) then setElementData(source, "showImage", true) end end addEventHandler("onPlayerLogin", root, setDataOnLogin) function setDataOnResourceStart() for i, v in ipairs(getElementsByType("player")) do if not isGuestAccount(getPlayerAccount(v)) and isObjectInACLGroup("user."..getAccountName(v), aclGetGroup("Console")) then setElementData(v, "showImage", true) end end end addEventHandler("onResourceStart", resourceRoot, setDataOnResourceStart)
  8. Ah and a much important question...how can i make the nametags asign to the colorcodes...for example i have #ff0000 and in chat i see it as a red but in my own-showing nametag above the player head i see it normal color....
  9. thx buddy....i have the next porblem...i want to create a system that symbols for admins,moderators and players are show.... how can i do it??? i have this here but it is not working: function showImage() dxDrawImage() if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Everyone" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "player.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "admin.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Moderator" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "moderator.png" ) end if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Console" ) ) then dxDrawImage ( sx + math.max(nameWidth/2, teamWidth/2) + 0*scale, sy - imageSize, imageSize, imageSize, "vip.png" ) end end addEventHandler("onClientResourceStart", resourceRoot, function() addEventHandler("onClientRender", root, showImage) end)
  10. hi there i have this naMETAG resource,but i only see bthe others names....how can i make it show my own name too??? here is the resource: CODE REMOVED
  11. hi all i have this Lvl system , have it tested too but when i kill someone,i dont get the +(XP)....nothing in debugscript 3 too..... it shows onlyx the lvl imagenext to the lvl but i dont get xp for kills?...whats the problem here? thanks in advance. exp.lua: Removed by moderators
  12. That is my code which spider stole 2 montzhs ago----look at my topic
  13. yoya99

    Rules

    i dont understand..
  14. yoya99

    Rules

    how can i do it if it is a guest account?? clikcing play as guest and the hide too?
  15. ok i got it self ...thx for this ultimate answers...
  16. I want that when a player logins to make custom freeroam colors,which dont disappaer after logging in...
  17. yoya99

    Rules

    ahh thx i got it
  18. yoya99

    Rules

    and what to do with the other part where the rules are drawn??
  19. yoya99

    Rules

    I am beginner where to put this in now ? Just add it under The other?
  20. yoya99

    Rules

    ok thx but how to to make it disappeare after logging in?
  21. yes okay but where to put it in? in freeroam or in play or ??
  22. yoya99

    Rules

    thx for the answers guys i will check it out,if it works now
  23. sppider has took my files ... the : walking style files he posted the same code 2-3 days after mine,because i sent him via facebook,he told me to fix it! aa spider````??
  24. yoya99

    Rules

    hey i have this rules resource and i want that when a player join his rules are shown automatically..and when he logins or he plays as a guest his rules are disappearing... CODE REMOVED BY Solidsnake14
  25. hello all my problem is when players login at my server i always see each players name in : white or green or pink ..so a player joins..at the moment he is not logged there are more colors like orange,yellow.. but when he logins then he gets white or maybe pink or green...but i want more colors...how to do this??
×
×
  • Create New...