Jump to content

xUltimate

Members
  • Posts

    92
  • Joined

  • Last visited

Details

  • Gang
    xUltimate

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

xUltimate's Achievements

Punk-@ss B*tch

Punk-@ss B*tch (12/54)

0

Reputation

  1. Using Paradise Roleplay script, I removed the SHA1 and SALT from it but now the login won't work and it keeps printing out Incorrect Username or Password. addEvent( getResourceName( resource ) .. ":login", true ) addEventHandler( getResourceName( resource ) .. ":login", root, function( username, password ) if source == client then triedTokenAuth[ source ] = true if username and password and #username > 0 and #password > 0 then local info = exports.sql:query_assoc_single( "SELECT username, password AS token FROM wcf1_user WHERE `username` = '%s' AND password = '".. password .. "'", getPlayerHash( source ) ) p[ source ] = nil if not info then triggerClientEvent( source, getResourceName( resource ) .. ":loginResult", source, 1 ) -- Wrong username/password loginAttempts[ source ] = ( loginAttempts[ source ] or 0 ) + 1 if loginAttempts[ source ] >= 5 then kickPlayer( source, true, false, false, root, "Too many login attempts.", 900 ) end else loginAttempts[ source ] = nil performLogin( source, info.token, true ) end end end end ) function performLogin( source, token, isPasswordAuth, ip, username ) if source and ( isPasswordAuth or not triedTokenAuth[ source ] ) then triedTokenAuth[ source ] = true if token then if #token == 80 then local info = exports.sql:query_assoc_single("SELECT userID, CONCAT(username, '%s'), banned, activationCode, password AS userOptions FROM wcf1_user WHERE username = '%s' LIMIT 1", getPlayerHash(source)) p[ source ] = nil if not info then if isPasswordAuth then triggerClientEvent( source, getResourceName( resource ) .. ":loginResult", source, 1 ) -- Wrong username/password end return false else if info.banned == 1 then triggerClientEvent( source, getResourceName( resource ) .. ":loginResult", source, 2 ) -- Banned return false elseif info.activationCode > 0 then triggerClientEvent( source, getResourceName( resource ) .. ":loginResult", source, 3 ) -- Requires activation return false else -- check if another user is logged in on that account for player, data in pairs( p ) do if data.userID == info.userID then triggerClientEvent( source, getResourceName( resource ) .. ":loginResult", source, 5 ) -- another player with that account found return false end end local username = info.username p[ source ] = { userID = info.userID, username = username, options = info.userOptions and fromJSON( info.userOptions ) or { } } -- check for admin rights aclUpdate( source, true ) -- show characters local chars = exports.sql:query_assoc( "SELECT characterID, characterName, skin FROM characters WHERE userID = " .. info.userID .. " ORDER BY lastLogin DESC" ) if isPasswordAuth then triggerClientEvent( source, getResourceName( resource ) .. ":characters", source, chars, true, token, getPlayerIP( source ) ~= "127.0.0.1" and getPlayerIP( source ) ) else triggerClientEvent( source, getResourceName( resource ) .. ":characters", source, chars, true ) end outputServerLog( "Rockstar Roleplay: Login " .. getPlayerName( source ) .. " logged in as " .. info.username .. " (IP: " .. getPlayerIP( source ) .. ", Serial: " .. getPlayerSerial( source ) .. ")" ) exports.server:message( "%C04[" .. getID( source ) .. "]%C %B" .. info.username .. "%B logged in (Nick: %B" .. getPlayerName( source ):gsub( "_", " " ) .. "%B)." ) exports.sql:query_free( "UPDATE wcf1_user SET lastIP = '%s', lastSerial = '%s' WHERE userID = " .. tonumber( info.userID ), getPlayerIP( source ), getPlayerSerial( source ) ) return true end end end end end return false end
  2. My server is hosted by this man right here. It's great connection and speed and it isn't bullshit or joking around. Great quality, free hosting, and just another reason for someone to agree to this. I really appreciate the hosting bamby!
  3. I think this would be great. ++ on it man.
  4. I tried altering the passwords but it's just like "omg wtf bbq you cant do this, banning user" Off Topic: I dont know why I was looking at your signature, your right your pust is up there
  5. Sorry for the bump, but I've been trying to do this same thing and I still have no luck.
  6. Did I by a chance make you want to work on this again?
  7. Also, you don't need those "and"s, eg you have function TruckerPoint ( thePlayer ) if getElementType ( thePlayer ) == "player" then givePlayerMoney ( thePlayer, 750 ) and outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") and setElementposition ( thePlayer 197, 1880, 11 ) end[/lua and it should be [lua]function TruckerPoint ( thePlayer ) if getElementType ( thePlayer ) == "player" then givePlayerMoney ( thePlayer, 750 ) outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") setElementposition ( thePlayer 197, 1880, 11 ) end and what's this? creating a function within a created function? Use this TruckerIn = createMarker(1087, 1895, 11, "cylinder", 1.5, 255, 0, 0, 150) function Truckerjob() NewMarker = createMarker ( 2755, -2464, 14 "cylinder", 1.5, 255, 0, 0, 150 ) NewBlip = createBlip ( 2755, -2464, 14, 51, 1, 255, 0, 0, 0, 255 ) end addEventHandler ( "onResourceStart",Truckerjob, TruckerIn ) function TruckerTel(thePlayer) if getElementType ( thePlayer ) == "player" then setElementPosition ( thePlayer 1095, 1880, 11 ) createVehicle ( 432, 1098, 1880, 11 ) outputChatBox ( "Steig in den LKW!" ) end addEventHandler ("onMarkerHit", TruckerIn, TruckerTel) function TruckerPoint ( thePlayer ) if getElementType ( thePlayer ) == "player" then givePlayerMoney ( thePlayer, 750 ) outputChatbox ( "Danke für die Lieferung! Dein Lohn: 750$") setElementposition ( thePlayer 197, 1880, 11 ) end addEventHandler ( "onMarkerHit", NewMarker, TruckerPoint )
  8. Oh, it would be cool if when it works, that you could access the community.multitheftauto.com and view your stats and what not, and have like a tab "Resources" and be able to download resources IG from the community.
  9. Ok, any date range they might be functional? And what exactly is it used for?
  10. DannyRose, you wouldn't happened to be affiliated with IV-MP at all?
  11. Whenever I login to the community on MTA:SA it says "Services currently unavailable." I noticed a post about it being "broken" at the time being and been for quite some time, I was wondering, is it stille "broken"?
  12. Just tried it with runcode, worked fine on Windows 7 x86. I got this "100000000" and "100000001"
  13. Could be the fact that your defining a and b twice, try using something like a = 1 b = 99999999 outputChatBox ( a + b ) -->100000000 outputChatBox ( 1 + 99999999 ) -->100000000 --------------------------------------------------------------- c = 2 outputChatBox ( c + b ) -->100000000 --wth? outputChatBox ( 2 + 99999999 ) -->100000001
  14. Alright, i'll make a bug report, I posted it here though because I saw a post of this somewhere and I found it weird that I was the only person getting the bug. EDIT: When I started my game again today it wasn't doing this anymore, I will still make a bug report about this though.
  15. Whenever I type in the chatbox if I try to say "hi" it puts "hhii" but in the console is just fine, I noticed a post about this before, it worked fine in MTA 1.0.4 but when I upgraded to 1.1 it does this now and for my friend it's not doing this.
×
×
  • Create New...