-
Posts
1,248 -
Joined
-
Last visited
Everything posted by WhoAmI
-
It would be hard. Maximum 25-30 slots. Depends also, what resource would be in.
-
guiGridListSetItemText(GUIEditor.gridlist[2],row,columns,teamName,false,false) Change 11th lane to it.
-
Check this addEvent( "clientRequestLogin", true ) addEventHandler( "clientRequestLogin", getRootElement(), function ( username, password ) dbQuery( loginCallback ( source ), theConnection, "SELECT * FROM users WHERE username = ? AND password = ?", username, md5(password) ) end ) function loginCallback ( thePlayer, qh ) local result = dbPoll( qh, 0 ) if #result == 1 then outputChatBox ( "Üdvözlünk ".. result[1]['username'].." a szerveren!", thePlayer ) dbQuery( characterCallback, thePlayer, theConnection, "SELECT * FROM characters WHERE owner = ?", result[1]['username'] ) elseif #result == 0 then outputChatBox ( "Hibás felhasználónév vagy jelszó!", ) end end
-
System prywatnych pojazdów
WhoAmI replied to TheTroll's topic in Pomoc ze skryptami i programowaniem w Lua
Zamień to triggerServerEvent("AutaServer:Tworz",getLocalPlayer(),getLocalPlayer(),nazwa) na to triggerServerEvent("AutaServer:Tworz",getLocalPlayer(),nazwa) i będzie działać, Pozdrawiam. -
Nie potrafie setelementdata
WhoAmI replied to aski's topic in Pomoc ze skryptami i programowaniem w Lua
Zamień wszystko tym function GivePassport ( player, commandName, nick ) if ( not nick ) then return end local targetPlayer = getPlayerFromName( nick ) local team = getTeamFromName ( "Urzad" ) if ( getPlayerTeam ( player ) == team ) then if ( not targetPlayer ) then outputChatBox("Gracz nie jest podłączony do serwera", player) return end setElementData ( targetPlayer, "prawo", true ) outputChatBox ( "Gracz " .. nick .. " otrzymał prawo jazdy.", player ) else outputChatBox("Nie jestes pracownikiem urzedu!", player) end end addCommandHandler ( "dajprawko", GivePassport ) function CheckPassport ( player, commandName, nick ) if ( not nick ) then return end local targetPlayer = getPlayerFromName ( nick ) local team = getTeamFromName ( "Urzad" ) if getPlayerTeam(player) == team then if ( not targetPlayer ) then outputChatBox("Gracz nie jest podłączony do serwera", player) return end local prawo = getElementData ( targetPlayer, "prawo" ) and "Gracz posiada prawo jazdy." or "Gracz nie posiada prawa jazdy" outputChatBox ( prawo, player ) else outputChatBox("Nie jestes pracownikiem urzedu!", player) end end addCommandHandler ( "zobaczprawko", CheckPassport ) addEventHandler ( "onPlayerLogin", root, function ( _, account ) local prawo = getAccountData ( account, "prawo" ) or false setElementData ( source, "prawo", prawo ) end ) addEventHandler ( "onPlayerLogout", root, function ( account ) local prawo = getElementData ( source, "prawo" ) or false setAccountData ( account, "prawo", prawo ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) local account = getPlayerAccount ( source ) if ( not isGuestAccount ( account ) ) then local prawo = getElementData ( source, "prawo" ) or false setAccountData ( account, "prawo", prawo ) end end ) BTW: słyszałeś kiedyś o /debugscript 3? -
Write in polish section, couse nobody is able to understand you. Stahp using google translate. I'll help you there.
-
This script is already saving online time to account.
-
It depends. Easier OS is 32 bits.
-
There are 67 shirts, each one has index, so you can loop function for i=1, 67 do getClothesByTypeIndex ( 0, i ) end Then you would get all shirts.
-
Can you tell me the function which sets CJ clothes? Then I'd help you.
-
onPlayerChat - there is message in 1st argument if message == "#%x%x%x%x%x%x" then
-
So as I am telling. You are looping threw all players, so row would be created for each player.
-
Show me the code and I'll tell you.
-
Couse Debian is more common OS for servers than other distributions.
-
System prywatnych pojazdów
WhoAmI replied to TheTroll's topic in Pomoc ze skryptami i programowaniem w Lua
Po stronie serwera po linijce z createVehicle wklej outputChatBox ( name ) i powiedz co wyświetla na czacie. -
Wpisanie tekstu do memo
WhoAmI replied to mommytellme's topic in Pomoc ze skryptami i programowaniem w Lua
To wtedy informacja na forum po kupnie, że by vip zadziałał należy ponownie połączyć się z serwerem. -
And add row to gridlist and set this row text.
-
Wpisanie tekstu do memo
WhoAmI replied to mommytellme's topic in Pomoc ze skryptami i programowaniem w Lua
No coś w ten deseń, ale lepiej sprawdzać przy wejściu gracza, nie co 3 sekundy. -
Are you able to reinstall your server to another OS?
-
Wpisanie tekstu do memo
WhoAmI replied to mommytellme's topic in Pomoc ze skryptami i programowaniem w Lua
Zawsze to można połączyć jakoś z MySQL i zintegrować serwer z forum. -
Wpisanie tekstu do memo
WhoAmI replied to mommytellme's topic in Pomoc ze skryptami i programowaniem w Lua
Wątpię, że BP zostanie udostępniony.
