Jump to content

Lavi

Members
  • Posts

    9
  • Joined

  • Last visited

About Lavi

  • Birthday 01/04/2005

Details

  • Gang
    ¿?
  • Location
    Colombia
  • Occupation
    Student
  • Interests
    Programming, Nerding, Learning and Helping :)

Recent Profile Visitors

146 profile views

Lavi's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. I'd use something like this: Server: local authSkin = 2 local marker = createMarker(1944, -1497, 2.5, "cylinder", 1, 255, 0, 0) function checkSkin(_,newSkin) if source and isElement(source) and getElementType(source) == "player" then iprint(source) if newSkin == authSkin then setElementAlpha(marker,255) else setElementAlpha(marker,0) end end end addEventHandler("onElementModelChange",root,checkSkin) function myFunction(element,dim) if element and isElement(element) and getElementType(element) == "player" and getElementModel(element) == authSkin then outputChatBox("Hello :)",element) end end addEventHandler("onMarkerHit",marker,myFunction) addEventHandler("onPlayerResourceStart",root,function () if source and isElement(source) then if getElementModel(source) == authSkin then setElementAlpha(marker,255) else setElementAlpha(marker,0) end end end) Since it is only an example, you should modify the script to your needs :).
  2. If I understood you well, I think that you might want to use setElementFrozen(ped, true) .
  3. Lavi

    HELP Scripting

    I edited your code, deleted all those unnecesary verifications and left only one at the start of the function. I left two tables before the function so you can add accounts and the commands you want to be not used against you. If it still doesn't work it might be something else. (You might want to check /debugscript 3). Code: https://pastebin.multitheftauto.com/6224386920
  4. Lavi

    HELP Scripting

    You added lots of these all over your code (which seem right to "disable" the use of the commands over these accounts). local plAcc = getPlayerAccount(player) if plAcc then if getAccountName(plAcc) == "wilmertrobert" or getAccountName(plAcc) == "joan26" then return end end But you forgot to add it to "ban" command, thats why it doesnt work. Just make sure to add what you already wrote but after the ban else statement.
  5. El modulo de SQL no se encuentra dentro de la carpeta 'x64/modules/' en la carpeta raiz de tu servidor. Deberías agregar algún modulo antes de poder conectar el SQL. Como hablas de downtown, generalmente viene con esos archivos, solo tienes que ponerlos en la carpeta y ya no deberías tener ese problema. Podrás encontrar más info en My SQL MTA Modules
  6. Lavi

    Screen Freezes

    You should check your windows task manager to see if there are any items with high percentage of consumption. Since you say you don't have fps drops, maybe it's your disk. You could also check if it happens in other games or if it is specifically in MTA.
  7. Lavi

    HELP Scripting

    I mean, you are talking about cancelling the ban event found in the admin_server.lua you have. If you can provide the ban "event" function this resource uses, we can help you to cancel the event. Maybe you are not finding something right but with the information you have given its pretty hard to give you a solid answer.
  8. Lavi

    HELP Scripting

    If you could retrieve the whole function of this ban "cancel", it would be useful.
  9. Okay, ich spreche normalerweise kein Russisch, aber ich werde es versuchen. Hast du MSI Afterburner und Rivatuner installiert? Ich weiß, dass dieser Fehler normalerweise von diesen Programmen verursacht wird. Wenn Sie sie also haben, sollten Sie versuchen, sie zu deinstallieren, um zu sehen, ob das Problem behoben ist.
×
×
  • Create New...