Guest Posted July 23, 2018 Share Posted July 23, 2018 function info ( command,msg ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if command == "setinfo" then message = msg addEventHandler("onClientRender", getRootElement(), drawText) elseif command == "stopinfo" then removeEventHandler("onClientRender", getRootElement(), drawText) message = nil end end end addCommandHandler("setinfo", info) addCommandHandler("stopinfo", info) function drawText() local screenW, screenH = guiGetScreenSize () local localPlayerName = getPlayerName(getLocalPlayer()) dxDrawText(""..message.." Hosted by: "..localPlayerName.."", (screenW * 0.0000) + 1, (screenH * 0.0000) + 1, (screenW * 0.4539) + 1, (screenH * 0.0260) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText(""..message.." Hosted by: "..localPlayerName.."", screenW * 0.0000, screenH * 0.0000, screenW * 0.4539, screenH * 0.0260, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end ايش الخطأ؟ Link to comment
+Source|> Posted July 23, 2018 Share Posted July 23, 2018 8 minutes ago, Scarfas said: function info ( command,msg ) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if command == "setinfo" then message = msg addEventHandler("onClientRender", getRootElement(), drawText) elseif command == "stopinfo" then removeEventHandler("onClientRender", getRootElement(), drawText) message = nil end end end addCommandHandler("setinfo", info) addCommandHandler("stopinfo", info) function drawText() local screenW, screenH = guiGetScreenSize () local localPlayerName = getPlayerName(getLocalPlayer()) dxDrawText(""..message.." Hosted by: "..localPlayerName.."", (screenW * 0.0000) + 1, (screenH * 0.0000) + 1, (screenW * 0.4539) + 1, (screenH * 0.0260) + 1, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, false, false, false, false) dxDrawText(""..message.." Hosted by: "..localPlayerName.."", screenW * 0.0000, screenH * 0.0000, screenW * 0.4539, screenH * 0.0260, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end ايش الخطأ؟ thePlayer مو معرفه Link to comment
N3xT Posted July 23, 2018 Share Posted July 23, 2018 انت حاط فنكشنات الكلينت مع فنكشنات السيرفر Link to comment
+1HidroNex Posted July 23, 2018 Share Posted July 23, 2018 (edited) 12 minutes ago, Scarfas said: وين فنكشن السيرفر؟ isObjectInACLGroup -- Server Side aclGetGroup -- Server Side getAccountName -- Server Side getPlayerAccount -- Server Side Edited July 23, 2018 by +1HidroNex Link to comment
Guest Posted July 23, 2018 Share Posted July 23, 2018 معك حق شكرا طيب يعني اسوي ملف كلينت سايد ايش اكتب فيه؟ Link to comment
+Source|> Posted July 23, 2018 Share Posted July 23, 2018 (edited) 15 minutes ago, Scarfas said: معك حق شكرا طيب يعني اسوي ملف كلينت سايد ايش اكتب فيه؟ اكتب فيه الاكواد ذي setElementShawrma givePlayerBrost takePlayerPhone setPlayerBooks setElementPositionInSchool -___- Edited July 23, 2018 by +Source|> Link to comment
+1HidroNex Posted July 23, 2018 Share Posted July 23, 2018 18 minutes ago, Scarfas said: معك حق شكرا طيب يعني اسوي ملف كلينت سايد ايش اكتب فيه؟ isObjectInACLGroup -- Server Side aclGetGroup -- Server Side getPlayerAccount -- Server Side getAccountName -- Server Side ------ onClientRender -- Clinet Side dxDrawText -- Clinet Side guiGetScreenSize -- Clinet Side Link to comment
+1HidroNex Posted July 23, 2018 Share Posted July 23, 2018 Just now, Scarfas said: سويتهم و المود شغال مشكور العفو Link to comment
+Source|> Posted July 24, 2018 Share Posted July 24, 2018 1 hour ago, Scarfas said: لازم اضحك الحين؟ اي كيف عرفت Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now