
yoya99
Members-
Posts
271 -
Joined
-
Last visited
Everything posted by yoya99
-
I got it 2 months ago from someone
-
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??
-
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
-
No...that is my own code i posted there...
-
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
-
i don't understand...can you edit it ready pls how you mean it... thx
-
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)
-
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....
-
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)
-
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
-
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
-
That is my code which spider stole 2 montzhs ago----look at my topic
-
how can i do it if it is a guest account?? clikcing play as guest and the hide too?
-
ok i got it self ...thx for this ultimate answers...
-
I want that when a player logins to make custom freeroam colors,which dont disappaer after logging in...
-
and what to do with the other part where the rules are drawn??
-
I am beginner where to put this in now ? Just add it under The other?
-
ok thx but how to to make it disappeare after logging in?
-
yes okay but where to put it in? in freeroam or in play or ??
-
thx for the answers guys i will check it out,if it works now
-
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````??
-
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
-
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??