-
Posts
905 -
Joined
-
Last visited
Everything posted by TwiX!
-
я и забыл про это
-
может это он и есть MacTrekkie вроде бы никак нельзя, если только удалить тим, потом его опять создавать, удалять, это будет бред --edit зачем тебе вообще удалять команду? создал тим, получил его елемент дату, сделал на этом тим чат.. (можно скрыть тим если в нём на сервере никого нет (с помощью destroyElement(team) ))
-
well i ask you to help me i ask you i made gui with button . i wanna when you prees that button your voice can be hear in Specific places Dont tell me to search in wiki cous i did it 100 times so pls help me onClientGUIClick https://wiki.multitheftauto.com/wiki/OnClientGUIClick look at the example there
-
Смотри,это же система групп.Как банд,только групп. Ну,короче,смотри,тут делится на 2 ранга (Пока что) Member. Leader.И когда чувак создаёт банду его записывает в Лидеры этой самой банды.Понимаешь? И потом,когда он приглашает идёт проверка,лидер ли он этой группы или нет,и идёт проверка у того,кого он пригласил(member),если он уже в группе ACL(Кроме Everyone) - то лидеру пишет,мол так и так.Так вот вопрос.Как сделать проверку такую? Дошло вроде.Получаем пользователя этой ACL Группы и проверяем,лидер ли он или нет. Только как.Буду думать) сделай функцию на определению лидера, там ранки и всё, запиши игрокам в аккаунт, потом ourGroup = aclGetGroup ( groupName ) если у него группа есть, и он лидер или мембер в этой группе, то... тут чё то уже делай с ним
-
Я думаю,что он заезжает на лифт,а не машина стоит в лифте.) заехал в гараж, профиксил setElementVelocity 'z' , заморозил тачку чтобы не каталась, потом разморозил, как она на верху/внизу, и всё
-
server function alentrars ( ) triggerClientEvent ( "dejarscojer", source ) setCameraMatrix(source, 1984.5999755859, -3915, 28.39999961853, 1979, -3921.5, 29.799999237061) end addEventHandler("onPlayerLogin", getRootElement( ), alentrars )
-
Your misunderstanding of my simply put question proves to tell the public not to trust you as a scripter for their server. If you don't know what a value is, should you re-read an introduction to Lua? To your off-topic question, 0 is a value. Not a string. "0" is a character, its value is 48. If you read my question and understood it, as per someone who would understand the Lua language, you would know that i asked if SQLite takes a number value, rather then a string value even when stated in the Database table that the type of value should be a number value rather then a string. Second grade enough for you? maybe 0 its variable there arithmetic functions, maybe you check topic how make request here? how i can know what its not just number or variable? maybe your logic is fucked and you use 0 as other mathematical values? and as Solidsnake14 said --Edit, have not seen other posts,did not refresh the page
-
dont make 50000000 topics
-
... what its '0' ? in your code?
-
you can learn for free, its will better, coz paid scripter, will make all work for you, and you will not understand
-
MAN USE WIKI, I NOT WILL MAKE CODE FOR YOU https://wiki.multitheftauto.com/wiki/Control_names
-
зачем тебе в акк записываить? если он уже берёт асл (если он вообще есть)
-
see examplex on wiki
-
There is no errors try to check all code with outputDebugString or outputChatBox
-
Аккаунт дата меняется каждый раз при Спавне,ГУИ высвечивается тоже при спавне,соответственно,мы выбираем свой класс ,а в табе имеем старый.Т.к ГУИ появилось ПОСЛЕ проверки. Хорошо? добавь в onPlayerSpawn , елемент дату на проверку (для таба), если данные изменились, меняй елемент дату (т.е езменится и таб) exports.scoreboard:addScoreboardColumn("Class",gRoot,1,0.08) function lolz ( ) local account = getPlayerAccount ( source ) if not getAccountData( account,"Class.dm" ) then setAccountData( account,"Class.dm", "Unknown" ) setElementData( source,"Class","Unknown" ) else setElementData( source,"Class",getAccountData( account,"Class.dm" ) ) end end addEventHandler("onPlayerSpawn",getRootElement(), lolz)
-
put the /debugscript 3 im not psychic
-
maybe you show your code? and errors in /debugscript 3?
-
I mixed up the function with a getElementData..
-
function command (user) setNextMap ("mapName")--here your function... outputChatBox ("(player) Buy ('mapName') price 3000 ",getRootElement(),255,255,255,true) takePlayerMoney ( user, 3000 ) end addCommandHandler ( "mapName", command )
-
--client side function deposittt(thisPlayer,button,state) local theePlayer = getLocalPlayer() local hismoney = getPlayerMoney(theePlayer) local moneey = guiGetText(GUIEditor_Edit[1]) if( tonumber(hismoney) >= tonumber(moneey)) then triggerServerEvent ("depositing", theePlayer, moneey) else outputChatBox("you can't deposit more than you got", 255, 0, 0) end end addEventHandler("onClientGUIClick", GUIEditor_Button[2], deposittt, false) --server function jerocoleman(Money) if not (tonumber(Money) <= 0) then local jaws = getAccountData (getPlayerAccount (source), "tete&anad") takePlayerMoney(source, Money) jaws = tonumber(jaws) if not jaws < Money then money1 = jaws + Money setAccountData (getPlayerAccount (source), "tete&anad", money1 ) outputChatBox("Your money in the bank: " .. money1 .. "$", source, 0, 255, 0) end else outputChatBox("can't deposit" .. Money .. "=]", source, 255, 0, 0) end end addEvent("depositing", true) addEventHandler( "depositing", getRootElement(), jerocoleman ) --client side function withdrawww(button,state) local moneey = guiGetText(GUIEditor_Edit[1]) triggerServerEvent ("withdrawnow", getLocalPlayer(), moneey) end addEventHandler("onClientGUIClick", GUIEditor_Button[1], withdrawww, false) --server side function withdrawww(money) local bankmoney = getAccountData (getPlayerAccount (source), "tete&anad") bankmoney = tonumber(bankmoney) if (tonumber(money) <= bankmoney) then if(tonumber(money) >= 1) then money1 = bankmoney - money setAccountData (getPlayerAccount (source), "tete&anad", money1) givePlayerMoney(source, money) outputChatBox("Your money in the bank: " .. money1 .. "$", source, 255, 255, 0) else outputChatBox("Cannot witdraw" .. money .. "$", source, 255, 0, 0) end else outputChatBox("you typed a nil number", source, 255, 0, 0) outputChatBox("Your Money is:" .. bankmoney .. "$", source, 255, 0, 0) end end addEvent("withdrawnow", true) addEventHandler( "withdrawnow", getRootElement(), withdrawww )
-
you can check wiki and learn lua there have examples
-
Flaker Вроде бы как да, так же есть экспорт фунции MacTrekkie что за быдло код? зачем тебе каждые 30 секунд проверять? тем более у всех игроков, только нагрузка лишняя
-
record voice i think its impossible.. about voice chat 'clicking a button' its possible i think possible
-
function fnCreateInfo ( pPlayer, chCommand, ... ) local Words = { ... } local chText = table.concat( Words, " " ) if chText then if ( exports['global']:isPlayerAdmin ( pPlayer ) ) then local nX, nY, nZ = getElementPosition ( pPlayer ); pInfoPickup = createPickup ( nX, nY, nZ, 3, 1239, 0.1 ); setElementData ( pInfoPickup, "Message", chText ); setElementData ( pInfoPickup, "PosX", nX ); setElementData ( pInfoPickup, "PosY", nY ); setElementData ( pInfoPickup, "PosZ", nZ ); addEventHandler ( "onPickupHit", pInfoPickup, infohit ); local id = mysql:query_insert_free ( "INSERT INTO infopoints SET posx='" .. mysql:escape_string(nX) .. "', posy='" .. mysql:escape_string(nY) .. "', posz='" .. mysql:escape_string(nZ) .. "', message='" .. mysql:escape_string(chText) .. "'" ); exports['anticheat-system']:changeProtectedElementDataEx(pInfoPickup, "dbid", id, false) outputChatBox("You Have Created A Infopoint With The ID ".. id ..".",pPlayer, 255, 194, 14) --fnSaveInfo(); end else outputChatBox ( "SYNTAX: /" .. chCommand .. " [iNFO]", pPlayer, 255, 194, 14 ); end end or what messages? /debugscript 3