Jump to content

GamerDeMTA

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by GamerDeMTA

  1. ah thanks and... do you know how to do this? I wanna do that, if the player says "lol" 4 times in a row (if the messages who the player say contains "lol") he gets muted for 2 mins (120000ms). How to?
  2. Could u give me an example with this? addEventHandler ( "onPlayerChat", root, function ( message ) if ( message == "lol" ) then cancelEvent ( ) outputChatBox("Message",root,255,255,0,true) end end )
  3. I wanna execute a function if a message = lol. I know how to do it, but I want to do it also if the message is lollll it executes and if the message is #ff0000lol too. understand?
  4. I mean how to get it, not a resource for that
  5. GamerDeMTA

    Help

    can u send me the link
  6. GamerDeMTA

    Help

    Thanks!!! and can you help me with this? I want to make a Login Panel, but... I think I must use this: guiGetText But how to make sure the password is correct? I mean how to make the player be logged in or registered? Getting it of the editbox?
  7. GamerDeMTA

    Help

    Hi, I want to do a function setElementPosition if the player isn't in a vehicle. How to do it? i mean if player is in a vehicle then setElementPosition
  8. the debugscript 3? is @ AddEventHandler got nil in argument 2
  9. Is the same as before, the @ AddEventHandler.
  10. function open () vent = guiCreateWindow(485, 185, 314, 385, "WINDOW", false) guiWindowSetSizable(vent, false) guiSetVisible ( vent, false ) a = guiCreateButton(9, 31, 296, 58, "e", false, vent) b = guiCreateButton(9, 259, 296, 58, "e", false, vent) c = guiCreateButton(13, 94, 77, 30, "ele", false, vent) d = guiCreateButton(222, 94, 77, 30, "ee", false, vent) e = guiCreateButton(13, 323, 77, 30, "eble", false, vent) f = guiCreateButton(222, 323, 77, 30, "eeble", false, vent) imagen = guiCreateStaticImage(13, 133, 292, 120, "carm.png", false, vent) bindKey ( 'f4', 'down', windowopen ) end function aa () outputChatBox ("YOU PRESSED THE FUCKINGG BUTTON", source, 0, 255, 0, true) showCursor (true) end function bb () outputChatBox ("YOU PRESSED THE FUCKINGG BUTTON !!", source, 255, 0, 0, true) showCursor (true) end function cc () outputChatBox ("YOU PRESSED THE FUCKINGG BUTTON", source, 0, 255, 0, true) showCursor (true) end function dd () outputChatBox ("YOU PRESSED THE FUCKINGG BUTTON.", source, 255, 0, 0, true) showCursor (true) end function windowopen ( ) guiSetVisible ( vent, not guiGetVisible ( vent ) ) showCursor ( guiGetVisible ( vent ) ) end addEventHandler ( 'onClientResourceStart', resourceRoot, open ) addEventHandler ("onClientGUIClick", a, aa, false) addEventHandler ("onClientGUIClick", b, bb, false) addEventHandler ("onClientGUIClick", c, cc, false) addEventHandler ("onClientGUIClick", d, dd, false)
  11. But this function exists outputChatBox
  12. What is the difference? i only see you moved the addEventHandler to Down
  13. thanks all is fixed But now I've other problem the debugscript 3 says "@ addEventHandler error line 16, got nil" something like that. And this is: addEventHandler ("onClientGUIClick", e, ea, false) function ea () outputChatBox ("lol", source, 0, 255, 0, true) showCursor (true) end
  14. I type "debugscript 3" in the Console and it says "debugscript: Incorrect client type for this command". And the other code (server) works, it's just an outputChatBox when the players joins.
  15. "GamerDeMTA" name="The SWindow" version="1.3" type="script" /> "carm.png" />
  16. function open () vent = guiCreateWindow(485, 185, 314, 385, "WINDOW", false) guiWindowSetSizable(vent, false) guiSetVisible ( vent, false ) imagen = guiCreateStaticImage(13, 133, 292, 120, "carm.png", false, vent) end addEventHandler ( 'onClientResourceStart', resourceRoot, open ) function windowopen ( ) guiSetVisible ( vent, not guiGetVisible ( vent ) ) showCursor ( guiGetVisible ( vent ) ) end bindKey ( 'f4', 'down', windowopen ) PS: I've other Buttons andEvents, but the problem is of the bind!
  17. will that do it? why the outputchatboxs?
  18. addCommandHandler ( "warpt", function ( thePlayer, _, who ) local playerWho = getPlayerFromName ( who ) -- Get the player from the string entered on the command. if ( playerWho ) then -- If the player really exists... setElementPosition ( playerWho, x, y, z ) end end )
  19. thanks but i changed sth. and it didnt work for me can u put a example of this? setElementPosition When I say /lv UserName it goes to the Position. [The UserName]
  20. i think u dont understand me I mean, for example, when I write /tep GamerDeMTA, GamerDeMTA gets the function for the commandhandler. For example, GamerDeMTA is warped to somewhere. If I write /tep Castillo, then Castillo goes... Understand ¿?
  21. ah, imagine the command is /banh how to do that the function goes to the user? For example, with /mute it's the same. I want to do it like that. For example, /warptosanfierro ..
×
×
  • Create New...