-
Posts
21,935 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Castillo
-
hey there, im making a script to when u die if u are in los santos u will spawn at los santos hospital or if u at las venturas u will spawn at las venturas hospital same with san fierro, now i want to know if someone can help me making when die check in what city he is at and then spawn him in correct hospital acording to the city, here is my code so far. hospitalsTable = { { 1177.7994384766, -1323.0667724609, 14.088536262512 }, { -2656.2421875, 635.99420166016, 14.453125 }, { 1607.1225585938, 1817.8732910156, 10.8203125 }, } function spawn( player ) randomspawn = math.random( 1, #hospitalsTable) spawnPlayer( player, hospitalsTable [randomspawn][1], hospitalsTable [randomspawn][2], hospitalsTable [randomspawn][3], hospitalsTable [randomspawn][4] ) end addEventHandler("onPlayerWasted", getRootElement(),spawn)
-
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.
