Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. lol u should be kidding me, so taalasma why says is made by him??
  2. huh? lol failure, seems that he dint checked who made it
  3. As i said, u have to use sobeit to try if works and i wont install it
  4. Nop, he wont release it i guess
  5. You can come to RPG and test it, like tsarhjain said. , castillo. Maybe i just don't want to release it for n00bs, maybe. nah, im too lazy to install mod sobeit and fuck all gta files with it oh and im not a noob
  6. to delete house? well u have to script that yourself or just edit by hand the homes.xml
  7. Is just lies, he dosnt has the anti cheat i guess
  8. I still thinking admin isnt a reason to script for someone, being a friend maybe will be a better reason
  9. Castillo

    rank

    Ok thanks now is working
  10. Castillo

    rank

    can u tell me what i did wrong?
  11. Well, this isnt sa-mp so functions are different to sa-mp, so i recommend u to start learning how to script at mta, this resource will help ya i think. https://community.multitheftauto.com/index.php?p=resources&s=details&id=593
  12. Castillo

    rank

    hi there, i have a weird problem with somthing, the code dosnt give any errors/warnings at debug script and dont works function setRanks( thePlayer ) local account = getAccountName( thePlayer ) if (account == Snake) then setElementData ( thePlayer, "Rank", "Owner" ) end end addEventHandler("onPlayerLogin", getRootElement(),setRanks)
  13. giving admin to people u dont know is the most stupid thing u can do, i dont understand why all offers that . why just dont try to script yourself somthing?
  14. Good job, i made a test one and was nice
  15. Castillo

    account.xml

    ok well, i checked all those codes and edited it by myself and works it, saves the player tag color and when login it loads the saved one. here is code function onPlayerQuit ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local r, g, b = getPlayerNametagColor ( source ) setAccountData ( playeraccount, "ColorRed", r ) setAccountData ( playeraccount, "ColorGreen", g ) setAccountData ( playeraccount, "ColorBlue", b ) end end function onPlayerLogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local tagColorRed = getAccountData ( playeraccount, "ColorRed" ) local tagColorGreen = getAccountData ( playeraccount, "ColorGreen" ) local tagColorBlue = getAccountData ( playeraccount, "ColorBlue" ) if tagColorRed and tagColorGreen and tagColorBlue then setPlayerNametagColor ( source, tagColorRed, tagColorGreen, tagColorBlue ) end end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin ) Greetings Castillo
  16. change tag in this no_connect_sql_message = " ERROR: Could not connect to MySQL server"error_in_query = "Error executing the query: (" .. mysql_errno(connect_mysql) .. ") " .. mysql_error(connect_mysql) --// 1: Makes onstart message visible // 0: Make sonstart message invisible setUpdateMessage = 1 updateMessage = "NEW Updates on the userpanel! Be sure to press the Check Progress button on F4!" -- // Clan tag? setTag = "WHAT EVER IS YOUR TAG"
  17. Hmm i got a question, the shop dont has any item to buy, should i add them? how?
  18. Wow is really nice, at last i made it working
  19. Did u made it to work? then if u did how?
  20. yay, it works thanks you!
  21. I did all this and imported the sql file and still dont works...
  22. why just dont learn some and try to edit this, jesse? https://community.multitheftauto.com/index.php?p=resources&s=details&id=720
  23. Castillo

    saving skin

    uhm so i started to learn sql and i got stuck when i want to save player skin and then load it, maybe someone can check my code and tell me what i did wrong local playerstbl = "skin" function start () executeSQLCreateTable(playerstbl, "accountname TEXT, skin INT") outputDebugString ( "Resource loaded.", 3 ) end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), start) function login1(prev, account, autologin) local result = executeSQLSelect(playerstbl, "skin", "accountname = '"..getAccountName(account).."'") if result and #result > 0 then setElementModel(source, tonumber(result[1])) else outputDebugString(tostring(executeSQLInsert(playerstbl, "'0', '"..getAccountName(account).."'", "skin, accountname"))) end end addEventHandler("onPlayerLogin", getRootElement(), login1) function onPlayerQuit() local acc = getPlayerAccount(source) if not isGuestAccount(acc) then outputDebugString(tostring(executeSQLUpdate(playerstbl, "skin = '"..getElementModel(source).."'", "accountname = '"..getAccountName(acc).."'"))) end end addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit)
  24. A friend of mine told me he set up the mysql server and the user panel wont open anyway, in my opinion is this should use sqlite.
  25. Why u dont try to learn some and script it?
×
×
  • Create New...