Jump to content

Karuzo

Members
  • Posts

    1,213
  • Joined

  • Last visited

Everything posted by Karuzo

  1. https://wiki.multitheftauto.com/wiki/DxDrawCircle
  2. Well how about dxDrawCircle for the circle?
  3. Hey guys, i want to spawn all players on one location ( in the air) and that they spawn all with a command. but how ??
  4. hey thank you solid it works! if i have more questions ill write them here
  5. Thank you Solidsnake, it doesn't appear on the ResourceStart now But if i type /vip this error appears :
  6. Well ok , i've changed it to : function VIPMENUTRIGGER ( thePlayer , commandName ) if isObjectInACLGroup("user."..getAccountName( getPlayerAccount(source)), aclGetGroup("VIP")) then triggerClientEvent (thePlayer,"VIPSuccess", source) else outputChatBox ( "VIP deilsin!!Vip icin : [url=http://www.yvgaming.de]www.yvgaming.de[/url] ye git!",thePlayer) end end addCommandHandler("vip", VIPMENUTRIGGER) Cause i don't want to reconnect ^^ But still same problem. But now the panel appears automatically if i start the resource... full code: gui.lua : http://pastebin.com/WCR7AAYJ s_vip.lua : http://pastebin.com/nNJeXngF
  7. Hey Guys, i want to check if a player is a VIP , i've done that now but, if i want to open the Panel it doesnt appear.. Serverside : function VIPMENUTRIGGER ( thePlayer , commandName ) if isObjectInACLGroup("user."..getAccountName( getPlayerAccount(source)), aclGetGroup("VIP")) then triggerClientEvent (thePlayer,"VIPSuccess", source) else outputChatBox ( "Youre not a VIP!!",thePlayer) end end bindKey("F10", "down", VIPMENUTRIGGER ) function OpenPanel() guiSetVisible(VIP.window[1], true) guiSetVisible(VIP.window[1], true) guiSetVisible(VIP.window[2], true) guiSetVisible(VIP.window[3], true) guiSetVisible(VIP.window[4], true) guiSetVisible(VIP.window[5], true) guiSetVisible(VIPimage, true) showCursor(true) end addEvent("VIPSuccess", true) addEventHandler("VIPSuccess", getRootElement(), OpenPanel) No Errors. btw im in the ACL Group "VIP" ^^
  8. Karuzo

    Help

    Try this : local playerTeam = getPlayerTeam ( source )
  9. Karuzo

    Vip Godmode

    ok thank you i will try it out
  10. Karuzo

    Vip Godmode

    Just like that ? function godmode () cancelEvent() addEventHandler("onClientPlayerDamage", godmode) end addEventHandler("onClientGUIClick", VIP.button[5], godmode)
  11. Karuzo

    Vip Godmode

    Hi i know that. but i want it to enable the godmode if the player presses a button.
  12. Karuzo

    Vip Godmode

    hey guys , i want to give a vip player godmode if he clicked on the Button , but i don't know how cause i don't know how i should put cancelEvent and onClientPlayerDamage in my "onClientGUIClick" Function. Any ideas ?
  13. Oh, some other admin has deleted that... Can i put it in without restartin the server ? Please its important D:
  14. and it has to be 20000 and not 10000 ^^
  15. Hey Guys , i have a problem : i want to mute a player but if i type /mute name this error appears : i have downloaded the newest mtasa-resource-r986 but same problem...
  16. triggerClientEvent triggerServerEvent i think.
  17. Karuzo

    Text

    dxDrawText ( "Text", x, y, wdith, height, tocolor ( 0, 0, 0, 255 ), 1.02, "font" 1.02 is the text scale. hope i could helped you
  18. Thank you Gallardo9944 , it worked #closereq
  19. So i want to open my DX Cheat-Panel , i've made an if opened == false then , but if i want to open the panel i have to press twice to open it if i open it first. After the first opening i just have to press once to open it... function open() if opened == false then opened = true addEventHandler("onClientRender", getRootElement(), Panel) showCursor(true) guiSetVisible(Cheatbutton1, true) guiSetVisible(Cheatbutton2, true) guiSetVisible(Cheatbutton3, true) guiSetVisible(Cheatbutton4, true) else opened = false guiSetVisible(Cheatbutton1, false) guiSetVisible(Cheatbutton2, false) guiSetVisible(Cheatbutton3, false) guiSetVisible(Cheatbutton4, false) showCursor(false) removeEventHandler("onClientRender", getRootElement(), Panel) end end bindKey("F7","down",open)
×
×
  • Create New...