Jump to content

Rio

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by Rio

  1. Lol thanks buddy! I searched for player money functions everytime but didnt get that Any anyways thanks...! :D :V
  2. Lol thanks buddy! I searched for player money functions everytime but didnt get that Any anyways thanks...! :D :V
  3. Hey Guys, i'm working on a DJ script. Till now i have made it like the player needs 100k to become a DJ. But i cant figure it out how to minus 100k from the money the player has! The current one i made works on the basis that it checks whether the player has >=100,000 then his allowed to become DJ else his not..But what i actually need is to minus 100k from the player's money. Please Help.
  4. Hey Guys, i'm working on a DJ script. Till now i have made it like the player needs 100k to become a DJ. But i cant figure it out how to minus 100k from the money the player has! The current one i made works on the basis that it checks whether the player has >=100,000 then his allowed to become DJ else his not..But what i actually need is to minus 100k from the player's money. Please Help.
  5. Lol thanks anubhav! I thought there was no elseif like thing so i used else if ....
  6. I've been working on making a samsite for my admin base.. I tried everything searching searching fixed the code still i'm getting this error : [2016-04-03 10:04:47] WARNING: WTA-basesamsite\ad_base_s.lua:26: Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] [2016-04-03 10:04:53] WARNING: WTA-basesamsite\ad_base_s.lua:60: Bad argument @ 'isObjectInACLGroup' [Expected acl-group at argument 2, got boolean] My isObjectInACLGroup part Code: function hit ( pla, dim ) if getElementType ( pla ) == "player" then local vehicle = getPedOccupiedVehicle ( pla ) if vehicle or not vehicle then local account = getPlayerAccount ( pla ) if account then local accountname = getAccountName ( account ) if isObjectInACLGroup ( "user." .. tostring(accountname), aclGetGroup ( "Admin" ) ) then else if isObjectInACLGroup ( "user." .. tostring(accountname), aclGetGroup ( "Super Moderator" ) ) then else if isObjectInACLGroup ( "user." .. tostring(accountname), aclGetGroup ( "Moderator" ) ) then outputChatBox ( "[WTA]Welcome Sir, "..getPlayerName(pla).."!", pla, 0, 150, 0 ) else setElementData ( pla, "inRestrictedArea", "true" ) triggerClientEvent ( pla, "destroyTrepassor", g_root, pla ) outputChatBox ( "***WTA Headquarters Restricted Area!***", pla, 255, 0, 0 ) outputChatBox ( "* "..getPlayerName(pla)..".has entered The WTA Headquarters Restricted Area.Enjoy The Fireworks Bro!", g_root, 70, 251, 45 ) end end end end end end end addEventHandler ( "onColShapeHit", g_base_col, hit )
  7. Excellent Stuff!! :) I'll Try It First!!!! Great Work!!! Keep It Up!
  8. Rio

    [NEW]Rio Graphics Inc.

    Thanks Predi For That Suggestion! It Has Been Updated.
  9. Hey Guys I Have Started A New Department For Graphics. I Can Help Anytime when you need some logos, signatures or that kind of stuff..(Free Of Cost). TIll Today I Have Created Beautiful Graphics And Helped Many On Their FB Page.Thus Getting Many Greetings . So I've Decided To Help Others On Multi Theft Auto With Concern To GRAPHICS. You Can PM Me Anytime If You Need Help With Graphics.I will always be there to help you. Logos: Since Then I've Created many logos for servers e.g. Cryorustic Gaming And For Groups On The Servers.I Use Photoshop To Do all This Stuff At which i am good at . Signatures For Forums: To Create Cool Signatures Like The One I've Created for my Profile, it requires SKILL.Thus I Can Help You With It. And Last But Not The Least; It's Free Of Cost!. ------------------------------------------------------------------------------------------------------------------------------------------- UPDATED* Some Of My Skilled Graphics:- (Currently used by many fb pages). Graphics #1 Graphics #2 Graphics #3 Graphics #4
  10. Rio

    -3 Letters-

    EOD - Earning On Days ZAH
  11. Rio

    -3 Letters-

    UVW - U Violent Walker LEO
  12. Rio

    -3 Letters-

    PFF - Prefrer Fair & Lovely TUG
  13. Choose Your Favourite FPS Multiplayer Games! Voting Open FOR ALL!! Dont Miss The Chance!! Vote Now!!
  14. I want to know how to loop a sound. I wanted to use it during my map.Please Help me. What i know is this: function mapMisc() local misc = playSound("misc/map.mp3") setSoundVolume(misc, 0.5) end addEventHandler( "OnClientPlayerSpawn", root, mapmisc)
  15. Well there is no such 'degree of view'... But You can accomplish it with the help of the Z axis. You need to add this in your script: bool setCameraTarget( float targetX, float targetY, float targetZ ) Set the coordinates of your camera and make the z axis a little more... This will make the camera set to the above of the player Regards, Rio.
  16. Predi Good Job Man!!! Keep It Up!!
  17. Thanks Guys For Encouraging me!!!
  18. LoginPanel By Rio ------------------------------------------------------------------------ Hey Guys I Made A Powerfull Loginpanel for the users. Please test it, its cool. Enjoy ---------------------------------------------------------------------- Features: Features: -Recover Account -Register Button -Background Panorama script inbuilt. -MySQL -HUD Components Scripts. -------------------------------------------------------------------------- Check It Out Here: https://community.multitheftauto.com/index.php?p=resources&s=details&id=11257
  19. thanks furioz for giving me insipiration.
  20. Guys Just Can't Belive it that i created my second resource so fast!! This resource applies a cool black shader around the screen. If You Find Any Bugs Please Report Me Soon. Here's the link to my Resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=11223 Screeshots: Please Report ASAP If there are bugs.. I've Not Checked thats why.
  21. Thank You Very Much Guys Just Started To Learn Functions and Got Such Success!! Thnks... And Backflip, plz check the url now. I changed its color . Its At The Bottom
  22. Guys I Just Created My First Resource! It Outputs Text Meassages in chatbox everytime you get killed. Here's The Link https://community.multitheftauto.com/index.php?p=resources&s=details&id=112197 Plz Give Me Replies If You Like.
  23. Rio

    Help required.

    so what should be the time that will make the bubbles dissapear after a short time? and sorry for the interruption.
  24. Rio

    Help required.

    Guys, i'm having a problem with my chatbubbles. They Do Not Dissapear. If I Type Something, They Remain There Forever. Can Anyone help me with it plz? I Also Wanted To Make It to LocalChat. Here is my client-side Script: local textsToDraw = {} local hideown local showtime local characteraddition local maxbubbles local showthebubbles = true function income(message,messagetype) if source ~= getLocalPlayer() or not hideown then if messagetype == 2 then if getPlayerTeam(source) == getPlayerTeam(getLocalPlayer()) then addText(source,message,messagetype) end else addText(source,message,messagetype) end end end function addText(source,message,messagetype) local notfirst = false for i,v in ipairs(textsToDraw) do if v[1] == source then v[4] = v[4] + 1 notfirst = true end end local infotable = {source,message,messagetype,0} table.insert(textsToDraw,infotable) if not notfirst then setTimer(removeText,showtime + (#message * characteraddition),1,infotable) end end function removeText(infotable) for i,v in ipairs(textsToDraw) do if v[1] == infotable[1] and v[2] == infotable[2] then for i2,v2 in ipairs(textsToDraw) do if v2[1] == v[1] and v[4] - v2[4] == 1 then setTimer(removeText,showtime + (#v2[2] * characteraddition),1,v2) end end table.remove(textsToDraw,i) break end end end function getTextsToRemove() for i,v in ipairs(textsToDraw) do if v[1] == source then removeText(v) end end end function handleDisplay() if showthebubbles then for i,v in ipairs(textsToDraw) do if isElement(v[1]) then if getElementHealth(v[1]) > 0 then local camPosXl, camPosYl, camPosZl = getPedBonePosition (v[1], 6) local camPosXr, camPosYr, camPosZr = getPedBonePosition (v[1], 7) local x,y,z = (camPosXl + camPosXr) / 2, (camPosYl + camPosYr) / 2, (camPosZl + camPosZr) / 2 --local posx,posy = getScreenFromWorldPosition(x,y,z+0.25) local cx,cy,cz = getCameraMatrix() local px,py,pz = getElementPosition(v[1]) local distance = getDistanceBetweenPoints3D(cx,cy,cz,px,py,pz) local posx,posy = getScreenFromWorldPosition(x,y,z+0.020*distance+0.10) local elementtoignore1 = getPedOccupiedVehicle(getLocalPlayer()) or getLocalPlayer() local elementtoignore2 = getPedOccupiedVehicle(v[1]) or v[1] if posx and distance <= 45 and ( isLineOfSightClear(cx,cy,cz,px,py,pz,true,true,false,true,false,true,true,elementtoignore1) or isLineOfSightClear(cx,cy,cz,px,py,pz,true,true,false,true,false,true,true,elementtoignore2) ) and ( not maxbubbles or v[4] < maxbubbles ) then -- change this when multiple ignored elements can be specified local width = dxGetTextWidth(v[2],1,"default") dxDrawRectangle(posx - (3 + (0.5 * width)),posy - (2 + (v[4] * 20)),width + 5,19,tocolor(0,0,0,255)) dxDrawRectangle(posx - (6 + (0.5 * width)),posy - (2 + (v[4] * 20)),width + 11,19,tocolor(0,0,0,40)) dxDrawRectangle(posx - (8 + (0.5 * width)),posy - (1 + (v[4] * 20)),width + 15,17,tocolor(0,0,0,255)) dxDrawRectangle(posx - (10 + (0.5 * width)),posy - (1 + (v[4] * 20)),width + 19,17,tocolor(0,0,0,40)) dxDrawRectangle(posx - (10 + (0.5 * width)),posy - (v[4] * 20) + 1,width + 19,13,tocolor(0,0,0,255)) dxDrawRectangle(posx - (12 + (0.5 * width)),posy - (v[4] * 20) + 1,width + 23,13,tocolor(0,0,0,40)) dxDrawRectangle(posx - (12 + (0.5 * width)),posy - (v[4] * 20) + 4,width + 23,7,tocolor(0,0,0,255)) local r,g,b = 255,255,255 if v[3] == 2 then r,g,b = getTeamColor(getPlayerTeam(v[1])) end dxDrawText(v[2],posx - (0.5 * width),posy - (v[4] * 20),posx - (0.5 * width),posy - (v[4] * 20),tocolor(r,g,b,255),1,"default","left","top",false,false,false) end end end end end end function getServerSettings() triggerServerEvent("onAskForBubbleSettings",getLocalPlayer()) end function saveSettings(settings) showtime = settings[1] characteraddition = settings[2] maxbubbles = settings[3] hideown = settings[4] addEvent("onChatbubblesMessageIncome",true) addEventHandler("onChatbubblesMessageIncome",getRootElement(),income) end function toggleBubblesOnOff() showthebubbles = not showthebubbles outputChatBox("Toggled chatbubbles " ..( not showthebubbles and "#FF0000off#FFFFFF." or "#00FF00on#FFFFFF." ),255,255,255,true) end addEventHandler("onClientPlayerQuit",getRootElement(),getTextsToRemove) addEventHandler("onClientRender",getRootElement(),handleDisplay) addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),getServerSettings) addEvent("onBubbleSettingsReturn",true) addEventHandler("onBubbleSettingsReturn",getRootElement(),saveSettings) addCommandHandler("chatbubbles",toggleBubblesOnOff) Here is my Server-side script: local showtime = tonumber(get("chatbubbles.DefaultTime")) local characteraddition = tonumber(get("chatbubbles.PerCharacterAddition")) local maxbubbles = get("chatbubbles.MaxBubbles") if maxbubbles == "false" then maxbubbles = false else maxbubbles = tonumber(maxbubbles) end local hideown = get("chatbubbles.HideOwn") if hideown == "true" then hideown = true else hideown = false end function sendMessageToClient(message,messagetype) if not wasEventCancelled() then if messagetype == 0 or messagetype == 2 then triggerClientEvent("onChatbubblesMessageIncome",source,message,messagetype) end end end function returnSettings() local settings = { showtime, characteraddition, maxbubbles, hideown } triggerClientEvent(source,"onBubbleSettingsReturn",getRootElement(),settings) end addEventHandler("onPlayerChat",getRootElement(),sendMessageToClient) addEvent("onAskForBubbleSettings",true) addEventHandler("onAskForBubbleSettings",getRootElement(),returnSettings) I Tried The Settings in my meta.xml where its written The time for the bubbles to disappear, but it does work out. Here is my meta.xml: "Cryorustic" description="chatbubbles" type="script" version="1.0.6" /> Plz Guys Can Anyone Help.....
×
×
  • Create New...