Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. whats the point of changing the color of the team when u already creating it with color??
  2. ok then explain me the error what is it and i will upload a fix to mta community.
  3. i made this resource but didn't had much idea of how race event worked (i hate race ) but why you don't use this one: https://community.multitheftauto.com/index.php?p=resources&s=details&id=821 it has alot more of features than mine
  4. you are messing server event with client functions this won't work of course, you can do triggerClientEvent server: function chat (thePlayer) triggerClientEvent("sonido",getRootElement()) end addEventHandler ( "onPlayerChat", getRootElement(), chat ) client: function playSonido() local sound = playSound("chat.mp3",false) setSoundVolume(sound, 0.9) end addEvent("sonido",true) addEventHandler("sonido",getRootElement(),playSonido) meta: <meta> <info author="$VL$FuGa" description="this script plays sound when player chats" info="mod" type="misc" version="1.0.4" /> <script src="sonidoC.lua" type="client"/> <script src="sonidoS.lua" type="server"/> <file src="chat.mp3" /> </meta>
  5. i have made it by setTeamFriendyFire and works fine, here is working code. addEventHandler ( "onResourceStart" , getResourceRootElement ( getThisResource ( ) ) , function () for i ,v in pairs ( getElementsByType ( "team" )) do setTeamFriendlyFire ( v , false ) end end )
  6. just copy then? i think you should get OWN ideas to make something UNIQUE cause a copy of a server its weird since why players would play yours if there is the original one?
  7. can you please tell us how would it be? what style of RPG?
  8. OMFG i don't get a word of this! use a translator at least.
  9. addCommandHandler("thx", function (thePlayer, command, arg1) if (arg1 == nil ) or not getPlayerFromName (arg1) then outputChatBox ("Error: You must insert a valid player name.", thePlayer, 255, 12, 15, false) else who = getPlayerFromName(arg1) outputChatBox(getPlayerName(thePlayer) .. " say thanks to ".. getPlayerName(who) .. "",getRootElement(),0,255,0) end end )
  10. oh my bad, i understand that he wanted to only work with /superman.
  11. why not learn some of how it works and edit it by yourself?
  12. thats becuase latest mta version (1.0.4) dosn't uses anymore accounts.xml the accounts data are at internal.db you can open it via sqlite browser.
  13. the superman resource already has /superman..
  14. you mean sql from MTA? then you should use sql functions: https://wiki.multitheftauto.com/wiki/Server_Scripting_Functions#SQL_functions
  15. hmmm i never seen that file, are you sure is that name?
  16. wasn't that post really old? if i'm right it was so i think no need to bump!
  17. wow that thing would be really nice into mta!
  18. Castillo

    Help pls :D

    this: https://forum.multitheftauto.com/viewforum.php?f=116 dosn't has enough? also there is something called "google"
  19. you should contact the j-rpg creator, or make yourself a script for save the skin.
  20. if says its outdated then type /upgrade
  21. callum, i have seen his code if i'm right he is doing that
  22. also that event handler dosn't exist, i told you to wait for me to fix it jester (its my code thats why) you need to add a triggerClientEvent at your logingui resource to make it working, also add the tutorial to the client side of your logingui.
  23. post here the ERRORs you see at the debug script.
×
×
  • Create New...