Jump to content

Bssol

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by Bssol

  1. i don't know what you mean, are the code not work? or what?
  2. This is what I understand from his words.
  3. that's what he want, he wants a ranks system when a player killed another one, his rank rises 1 point. in the same time he wants a groups of points, has a name for each group, for example: from 1 to 10 called "Beginner lvl 1" that's what he wants any way, i fixed it in the past post.
  4. exports.scoreboard:scoreboardAddColumn("Points") exports.scoreboard:scoreboardAddColumn("Rank") ranks = {} ranks[1] = {0,"Beginner lvl 1"} ranks[2] = {10,"Beginner lvl 2"} ranks[3] = {20,"Good Player"} ranks[4] = {30,"Nice Player"} ranks[5] = {40,"Pro Player"} function addPoints(ammo, attacker, weapon, bodypart) local points = getElementData(attacker, "Points") if attacker and attacker ~= source then setElementData(attacker, "Points", tonumber(points) + 1) outputChatBox(getPlayerName(attacker).." killed "..getPlayerName(source).." and gained 1 point.", getRootElement(), 255, 255, 0, false) end end addEventHandler("onPlayerWasted", getRootElement(), addPoints) function onRankChanged(dataName) if ( dataName == "Points" ) then local playerPoints = getElementData( source, "Points" ) for i,rank in ipairs(ranks) do if ( playerPoints => rank[i][1] ) then setElementData(source, "Rank", rank[i][2]) end end end end addEventHandler("onElementDataChange",getRootElement(),onRankChanged) function onJoin ( ) setElementData(source, "Points", 0) end addEventHandler ( "onPlayerJoin", getRootElement(), onJoin) function onResStart ( ) for i,v in ipairs(getElementsByType ("player")) do if not ( getElementData( v, "Points" ) ) then setElementData( v, "Points", 0 ) end end end addEventHandler ( "onResourceStart", getResourceRootElement(), onResStart ) I think this will work. But you need to learn more, do not rely too much on others. I know you are trying to learn from a long time, but I do not see any development!
  5. function beepClient(thePlayer) if isVehicleLocked(source) then local x, y, z = getElementPosition(thePlayer) local beep = playSound("sound/Alarm.mp3", x, y, z, false) setSoundVolume(beep, 2.0) setSoundMaxDistance(beep, 100) end end addEventHandler("onClientVehicleStartEnter", getRootElement(), beepClient)
  6. ohh, sorry Aino i didn't see your post sorry
  7. function getPlayerStats ( source, command, who ) local targetPlayer = getPlayerFromName ( who ) if ( targetPlayer ) then local playeraccount = getPlayerAccount(targetPlayer) if ( playeraccount ) and not ( isGuestAccount ( playeraccount ) ) then local who_exp = getAccountData(playeraccount,"exp") local who_lvl = getAccountData(playeraccount,"level") local who_rank = getAccountData(playeraccount,"rank") if not ( who_exp ) then who_exp = "0" end if not ( who_lvl ) then who_lvl = "0" end if not ( who_rank ) then who_rank = "0" end outputChatBox (getPlayerName(source) .." #0000FF Ask #FFFF00For #FFFFFF".. getPlayerName(targetPlayer) .." #0000FFStats : ",getRootElement(),255,255,255,true) outputChatBox (getPlayerName(targetPlayer) .." #0000FFHis EXP : #FFFF00".. who_exp .." #0000FF! ",getRootElement(),255,255,0,true) outputChatBox (getPlayerName(targetPlayer) .." #0000FFHis LEVEL :#FFFF00 ".. who_lvl .." #0000FF! ",getRootElement(),255,255,0,true) outputChatBox (getPlayerName(targetPlayer) .." #0000FFHis RANK NAME : #FFFF00".. who_rank .." #0000FF! ",getRootElement(),255,255,0,true) else outputChatBox(who.." doesn't have an account.",source,255,0,0) end else outputChatBox("No Player With This Name",source,255,0,0) end end addCommandHandler ( "stats", getPlayerStats )
  8. nice special character skins but we want to replace dff for skin !!!!!! can we replace dff in 1.1??????????
  9. thaaaaaanks !!! you are great!
  10. ????? please i want this resource !!!
  11. hi all nice job, but i can't download it!! please upload it to mediafire
×
×
  • Create New...