Jump to content

#Paper

Members
  • Posts

    568
  • Joined

  • Last visited

Everything posted by #Paper

  1. #Paper

    Ranking

    ok, it is, but how i can enable colorcode in the 1st?
  2. #Paper

    Ranking

    1) in killmessages resuource true?
  3. #Paper

    Ranking

    Where are the script for this?
  4. #Paper

    X - Y - Z

    i saw but the example can't help me...
  5. #Paper

    X - Y - Z

    mybe the isVehicle...???
  6. #Paper

    Map Rating

    ok ty, but return a false or table number (table:297324) value, don't return the rate...
  7. #Paper

    Kill System

    How i can detect when Player kill Player1? Example: Player1 kill Player ChatBox: Player1 kill Player!
  8. yes it's, i want to make a new system, whit only the point, but i don't found anyone and i want make it
  9. Don't show error but don't work... http://pastebin.com/Na4q6yxP
  10. #Paper

    2 Questions

    where i must insert this code here? http://pastebin.com/3Xvex6Pt
  11. #Paper

    2 Questions

    1: How i can enable colorcodes in dxDrawText? (Color Codes in NameTags) 2: What's wrong? addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function() executeSQLCreateTable ( "pointsystem", "points INT, serial TEXT" ) end) addEventHandler ("onPlayerJoin",getRootElement(), function() local serial = getPlayerSerial(source) executeSQLUpdate ( "pointsystem", "serial = '"..serial.."'") end) addEventHandler ("onPlayerRaceWasted",getRootElement(), function() local serial = getPlayerSerial(source) local Points = executeSQLSelect ( "pointsystem", "points","serial = '" .. serial .. "'") local givepoints2 = tonumber(Points[1]["points"]) + 3 executeSQLUpdate ( "pointsystem", "points = '"..givepoints2.."'","serial = '" .. serial .. "'" ) outputChatBox("#ff0000You reicive 3 points!",getRootElement(),255,0,0,true) end) function checkWinAndIfWinGiveWinCash () local getrank = exports.race:getPlayerRank(source) if (getrank == 1) then local serial = getPlayerSerial(source) local Points = executeSQLSelect ( "pointsystem", "points","serial = '" .. serial .. "'") local player = allAlivePlayers[1] local playerCount = getPlayerCount() local pointsToWin = playerCount * 2 local givepoints = tonumber(Points[1]["points"]) + pointsToWin executeSQLUpdate ( "pointsystem", "points = '"..givepoints.."'","serial = '" .. serial .. "'" ) outputChatBox ("#ff0000["..getPlayerName(player).." #ff0000wins 10 points]",getRootElement(),255,0,0,true) end end addEventHandler ("onPlayerWasted",getRootElement(),checkWinAndIfWinGiveWinCash) addEventHandler ("onPlayerQuit",getRootElement(),checkWinAndIfWinGiveWinCash)
  12. #Paper

    GridList

    and what do the server client event?
  13. #Paper

    GridList

    i did but don't work...
  14. How i can get the map's name that was set for next? and why this texts don't be show? another problem function getPlayerCountry ( player ) local ip = getPlayerIP ( player ) local ip_group = tonumber ( gettok ( ip, 1, 46 ) ) local ip_code = ( gettok ( ip, 1, 46 ) * 16777216 ) + ( gettok ( ip, 2, 46 ) * 65536 ) + ( gettok ( ip, 3, 46 ) * 256 ) + ( gettok ( ip, 4, 46 ) ) if ( not aCountries[ip_group] ) then loadIPGroup ( ip_group ) end for id, group in ipairs ( aCountries[ip_group] ) do if ( ( group.rstart <= ip_code ) and ( ip_code <= group.rend ) ) then return group.rcountry end end return false end function countryscore () call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Country") setElementData ( source, "Country", getPlayerCountry(source) ) end addEventHandler("onPlayerJoin", countryscore) don't make the cullumn
  15. #Paper

    X - Y - Z

    ye i want this but i don't know how to detect it ;S
  16. #Paper

    X - Y - Z

    no, you don't understand, i want to know when a player flip his/her vehicle, but whitout command and shop...
  17. #Paper

    X - Y - Z

    How i can detect when a player do a vehicle flip?
  18. #Paper

    -M$P-Clan

    We are new clan and we have 10-13 members. The name is -M$P- = Multi $killed Players This is the our server's post: https://forum.multitheftauto.com/viewtopic.php?f=115&t=29172
  19. #Paper

    Map Rating

    -.-" ch c'entra quello è per abilitare lo script non quello che serve a me Sorry for not english
×
×
  • Create New...