-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
lol u should be kidding me, so taalasma why says is made by him??
-
huh? lol failure, seems that he dint checked who made it
-
As i said, u have to use sobeit to try if works and i wont install it
-
Nop, he wont release it i guess
-
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
-
to delete house? well u have to script that yourself or just edit by hand the homes.xml
-
Is just lies, he dosnt has the anti cheat i guess
-
I still thinking admin isnt a reason to script for someone, being a friend maybe will be a better reason
-
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
-
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)
-
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?
-
Good job, i made a test one and was nice
-
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
-
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"
-
Hmm i got a question, the shop dont has any item to buy, should i add them? how?
-
Wow is really nice, at last i made it working
-
Did u made it to work? then if u did how?
-
I did all this and imported the sql file and still dont works...
-
why just dont learn some and try to edit this, jesse? https://community.multitheftauto.com/index.php?p=resources&s=details&id=720
-
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)
-
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.
-
Why u dont try to learn some and script it?
