csiguusz
Members-
Posts
500 -
Joined
-
Last visited
Everything posted by csiguusz
-
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)
-
getPlayerFromNamePart
-
You are welcome. Tudok róla
-
It should work, if you put mine and your code well together and you don't have any other problems.
-
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
-
@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 )
-
To make a texture visible for everyone it must be replaced at everyone.
-
local query = dbPoll(dbQuery(connect, "SELECT * FROM zshop WHERE accNev=? ", accName ), -1 )
-
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 )
-
Yes, it is possible.
-
addEventHandler ( "onClientMarkerHit", lucrator1, function ( hitPlayer, matchingDimension ) if hitPlayer == localPlayer then addEventHandler ( "onClientRender", getRootElement(), dxText6 ) end end )
-
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)
-
Use getRandomPlayer to get a random player. And your code doesn't make much sense.
-
Possible. Loop through all players, check their dimension and if they are in the given dimension count them.
-
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
-
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.
-
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.
-
Van valaki aki jól scriptel és tud magyarul?
csiguusz replied to Minotaur's topic in Hungarian / Magyar
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 -
Helló. Én is mindig megnézem történt-e itt valami, de sajnos eddig nem volt túl nagy élet.
-
Nem volt semmi "szar" max nem annyira magyaros (meg egy ertelmetlen mondatot is talaltam). De tenyleg csak egy parba javitottam bele.
-
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.
-
You are welcome.
