Jump to content

csiguusz

Members
  • Posts

    500
  • Joined

  • Last visited

Everything posted by csiguusz

  1. warns = 0 function command (sourcePlayer, command, who) if not who then outputChatBox ( "No name was given." ) return end name = getPlayerFromName(who) if name then local accName = getAccountName ( getPlayerAccount ( sourcePlayer ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then for index, name in ipairs(name) do -- that makes no sense if warns == 0 then warns = 1 outputChatBox("Jucatorul"..name.."a primit warn din partea administratorilor 1/3") elseif warns == 1 then warns = 2 outputChatBox("Jucatorul"..name.."a primit warn din partea administratorilor 2/3") elseif warns == 2 then warns = 3 outputChatBox("Jucatorul"..name.."a primit warn din partea administratorilor 3/3") banPlayer(name) end end end else outputChatBox("Invalid Syntax:/warn Player", source, 255, 0, 0 ) end end addCommandHandler("warn", command)
  2. It should work, if you put mine and your code well together and you don't have any other problems.
  3. addEventHandler ( "onClientMarkerHit", root, function ( hitElement ) if hitElement == localPlayer and not isPedInVehicle ( localPlayer ) then -- the rest of your code wich I was too lazy to copy
  4. @IIYAMA, Vector: I think he should change his gui system to make it possible. There is a way to actually make a delay inside a loop. Here is my simple example: local a = { 1, 2, 3, 4 } local c = coroutine.create ( function () for i, v in ipairs ( a ) do outputChatBox ( v ) coroutine.yield () end end ) setTimer ( function () coroutine.resume ( c ) end , 100, 4 )
  5. To make a texture visible for everyone it must be replaced at everyone.
  6. You are welcome. Nm.
  7. local query = dbPoll(dbQuery(connect, "SELECT * FROM zshop WHERE accNev=? ", accName ), -1 )
  8. csiguusz

    help

    Slap uses setElementVelocity, you can try using it to do waht you want.
  9. I don't think you can do this on client-side. There is a simple example of how I would do it. local colors = { ["serial1"]={10, 20, 30}, -- red, green, blue ["serial2"]={100, 200, 30} } addEventHandler ( "onPlayerChat", root, function ( message, type ) if type == 0 then cancelEvent () local serial = getPlayerSerial ( source ) if colors[ serial ] then local r, g, b = unpack ( colors[ serial ] ) outputChatBox ( getPlayerName( source ) .. "#FFFFFF: " .. message, root, r, g, b, true ) else local r, g, b = getPlayerNametagColor ( source ) outputChatBox ( getPlayerName( source ) .. "#FFFFFF: " .. message, root, r, g, b, true ) end end end )
  10. addEventHandler ( "onClientMarkerHit", lucrator1, function ( hitPlayer, matchingDimension ) if hitPlayer == localPlayer then addEventHandler ( "onClientRender", getRootElement(), dxText6 ) end end )
  11. You might have some other problems too, but your onPlayerSpawn event isn't good. The first argument is the X coordinate not the player, use source instead. addEventHandler ( "onPlayerSpawn", root, function ( ) team = getPlayerTeam( source ) if (getTeamName(team) == "Criminals") then triggerEvent ( "createHouseEvent", source ) end end) Or you don't even have to get the team if you do it so: addEventHandler ( "onPlayerSpawn", root, function ( _, _, _, _, team ) if team and (getTeamName(team) == "Criminals") then triggerEvent ( "createHouseEvent", source ) end end)
  12. csiguusz

    Random player

    Use getRandomPlayer to get a random player. And your code doesn't make much sense.
  13. Possible. Loop through all players, check their dimension and if they are in the given dimension count them.
  14. I don't know what has Castillo posted, but there are a few online services to check if the xml syntax is correct. http://www.xmlvalidation.com/index.php?id=1&L=0 http://www.w3schools.com/xml/xml_validator.asp
  15. Ahogy nézegettem a linkeket, csak az a server.zip fájl nem volt csak elérhető. Az utána következő leírásból arra következtetek, hogy volt benne egy settings.xml meg valami mysql csatlakozást bemutató(?) szkript. Ezek konkrétan nem szükségéesek ahhoz, hogy működjön a mysql, ha az már telepítve van. Így csak neked kell vmi saját szkripttel megoldani az adatbázishoz való csatlakozást, amire meg ott a példa a topicban.
  16. Pontosan. Ne PM-be kerj segitseget, hatha masnak is hasonlo problemaja van es az itt adott segitseg neki is hasznos lehet, ez a forum lenyege.
  17. Van külön magyar nyelvű fórum, magyarul ott kérdezhetsz: https://forum.multitheftauto.com/viewforum.php?f=168 Sorry for this... I directed him to the hungarian forum
  18. Helló. Én is mindig megnézem történt-e itt valami, de sajnos eddig nem volt túl nagy élet.
  19. Nem volt semmi "szar" max nem annyira magyaros (meg egy ertelmetlen mondatot is talaltam). De tenyleg csak egy parba javitottam bele.
  20. Szép munka! Én sajnos későn vettem észre, hogy lehet fordítani addigra meg már minden kész volt. De azért még én is átnézem, hátha van min javítani.
×
×
  • Create New...