Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. It would be hard. Maximum 25-30 slots. Depends also, what resource would be in.
  2. WhoAmI

    Gridlist

    guiGridListSetItemText(GUIEditor.gridlist[2],row,columns,teamName,false,false) Change 11th lane to it.
  3. 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
  4. Zamień to triggerServerEvent("AutaServer:Tworz",getLocalPlayer(),getLocalPlayer(),nazwa) na to triggerServerEvent("AutaServer:Tworz",getLocalPlayer(),nazwa) i będzie działać, Pozdrawiam.
  5. 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?
  6. Write in polish section, couse nobody is able to understand you. Stahp using google translate. I'll help you there.
  7. This script is already saving online time to account.
  8. It depends. Easier OS is 32 bits.
  9. 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.
  10. Can you tell me the function which sets CJ clothes? Then I'd help you.
  11. onPlayerChat - there is message in 1st argument if message == "#%x%x%x%x%x%x" then
  12. So as I am telling. You are looping threw all players, so row would be created for each player.
  13. Show me the code and I'll tell you.
  14. Couse Debian is more common OS for servers than other distributions.
  15. Po stronie serwera po linijce z createVehicle wklej outputChatBox ( name ) i powiedz co wyświetla na czacie.
  16. To wtedy informacja na forum po kupnie, że by vip zadziałał należy ponownie połączyć się z serwerem.
  17. And add row to gridlist and set this row text.
  18. No coś w ten deseń, ale lepiej sprawdzać przy wejściu gracza, nie co 3 sekundy.
  19. Are you able to reinstall your server to another OS?
  20. Zawsze to można połączyć jakoś z MySQL i zintegrować serwer z forum.
×
×
  • Create New...