Jump to content

PaiN^

Members
  • Posts

    2,258
  • Joined

  • Last visited

Everything posted by PaiN^

  1. Not like that, It finds a strings in a string, Like when you search in a book for a page, It do the same for strings, Ex : BadWords = { 'word1', 'word2' } addEventHandler ( 'onPlayerChat', root, function( msg, msgtype ) if msgtype == 0 then for k,v in ipairs( BadWords ) do if string.find( msg, v ) then cancelEvent ( ) end end end end ) This will cancel a chat message if that message included any word in the BadWords table . If you could tell me what are you trying to do it would be easier for me to help : )
  2. You should use setPlayerName
  3. It's used to find a string in a string, Ex : string.find( getPlayerName ( getLocalPlayer ( ) ), 'papam77' ) This will return true if the local player name included papam77 in it
  4. كنت حاس و الله ذذ تسوي أنيميشين setElementVelocity طيب جرب بدل دور في الأنيميشينس تلاقي وحدة ممكن ذذ
  5. Use guiGetText to get the color code, And then trigger a server event using triggerServerEvent to add the HTML color code to the player's name . Event must be added using addEvent Try and if you couldn't< i'll help you =)
  6. والله مدري جرب الكود وشوف وش يصير معاك
  7. ! مأ أعتقد إن راح يتأثر بهذا الكود, بس بيوقف
  8. الكود ماني شايف فيه خطأ, بس وش بتسوي فيه بالضبط ؟
  9. و الله حتى أنا أول مرة ؛؛
  10. That's true !! I keep geting logging out . I hope they solve this ASAP
  11. Working ! Thank you so much <3
  12. spots = { -- الإحداثيـآآت { 2487.6398925781, -1666.7453613281, 13.34375 }, { 2487.6398925781, -1666.7453613281, 13.34375 } } for k,v in ipairs( spots ) do createMarker ( v, kind, size, r, g, b, a ) end I did this put it didn't work for me .
  13. Both, It's a predefined function from the LUA lang itself .
  14. Hi, How do i make a table with coordinates to create markers from ? Thanx in advanced <3
  15. PaiN^

    gui shown

    Yes, And guiSetVisible ( GUIEditor.label[1], false ) You have to hide it, Because the create function will make it visible .
  16. Read the wiki !! There is no argument for gamemode with the function guiCreateButton .
  17. PaiN^

    gui shown

    addEventHandler( "onClientResourceStart", resourceRoot, function ( ) GUIEditor.label[1] = guiCreateLabel(277, 221, 111, 15, "MY TEXT", false) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) guiSetProperty(GUIEditor.label[1], "AlwaysOnTop", "True") guiSetVisible ( GUIEditor.label[1], false ) GUIEditor.label[2] = guiCreateLabel(277, 261, 111, 15, "MY TEXT", false) guiSetFont(GUIEditor.label[2], "default-bold-small") guiSetProperty(GUIEditor.label[2], "AlwaysOnTop", "True") guiSetVisible ( GUIEditor.label[2], false ) end )
  18. PaiN^

    marker

    ^ برضو خطـأ 'checkpoint'
  19. No, You'll use theme o check the account of the player that is trying to execute the command . use getPlayerAccount to get his account, And then use getAccountName to get the name of the player's account, After that use isObjectInACLGroup to check if that account is added to the Admin ( or any group you want ) group .
  20. That sound great ! To bad i use Black Berry Keep it up =D
×
×
  • Create New...