Jump to content

مود التحديثات


Recommended Posts

 السلام عليكم انا بسوي مود التحديثات بس ابي اعرف شلون اكتب الكلام بميمو ويطلع الكلام بالميمو الثانية

وابي اسوي زر ينشأ ميمو وزر يحذفها 

Edited by KonaaaN200
Link to comment
?
 
  1. --هذا الكلاينت
  2.  
  3. addEventHandler("onClientGUIClick",send_to_memo,function ()
  4. addEventHandler("EditMessage",root, function(Name,Text)
  5. if guiGetText(memo_to_memo) ~= '' then
  6. triggerServerEvent("memo",localPlayer,guiGetText(memo_to_memo))
  7. end
  8. end)
  9. end, false)
  10. addEvent( 'msgClient' , true )
  11. addEventHandler( 'msgClient' , root ,
  12. function( msg )
  13. local PlayerName = '[ ' .. getPlayerName( source ?gsub( "#%x%x%x%x%x%x" , "" ) .. ' ]'
  14. local oldMessages = guiGetText( memo_to_memo )
  15.  
  16. guiGridListSetItemText(memo_to_memo, "[" .. Text , false, false)
  17. guiGridListSetItemColor(memo_to_memo, 0, 0, 0, 255)
  18. end)
  19.  
  20. --هذا السيرفر
  21. addEvent("memo",true)
  22. addEventHandler("memo",root,function (text)
  23. if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then
  24. triggerClientEvent("memo",source,getPlayerName(source),text)
  25. else
  26. triggerClientEvent("memo",source,getPlayerName(source),text)
  27. end
  28. end)
  29.  
  30. -- بس ما زبط مدري شلون اسويه
Edited by KonaaaN200
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...