xXMADEXx
Members-
Posts
2,718 -
Joined
-
Last visited
Everything posted by xXMADEXx
-
Or just use this one: http://mtamarket.com/view.php?i=2
-
And if its returning a float, you can use: math.floor -- or math.ceil
-
( ( Not Tested ) ) function getPlayerFromNamePart(name) if name then for i, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):lower(), tostring(name):lower(), 1, true) then return player end end end return false end function assignNewTeam ( source, _, playername, teamname ) if not playername then outputChatBox("Please enter in the player's name that you would like to remove from team!",source,255,0,0) return end local player = getPlayerFromName(playername) if not player then player = getPlayerFromNamePart(playername) end if not player or isElement(player) then outputChatBox("Sorry, player doesn't exist!",source,255,0,0) return end local theTeam = getTeamFromName ( teamname ) if not theTeam then theTeam = createTeam ( teamName ) end setPlayerTeam ( source, theTeam ) end addCommandHandler ( "invite", assignNewTeam ) function unassignTeam ( source, _, playername, teamname ) if not playername then outputChatBox("Please enter in the player's name that you would like to remove from team!",source,255,0,0) return end local player = getPlayerFromName(playername) if not player then player = getPlayerFromNamePart(playername) end if not player or not isElement(player) then outputChatBox("Sorry, player doesn't exist!",source,255,0,0) return end local theTeam = getPlayerTeam ( player ) if not theTeam then outputChatBox("Player isn't on a team!",source,255,0,0) return end setPlayerTeam ( player, nil ) end addCommandHandler ( "dismiss", unassignTeam )
-
As in apply an image to an object? As far as i know, this requires a shader.. (it may not, but i don't really know.)
-
So a script that returns an object when the client clicks?
-
vehicle = {} function createVeh(modelName, x, y, z) player = getPlayerName(source) vehicle[player] = createVehicle(modelName, x, y, z) addEventHandler("onVehicleEnter", vehicle[player], function(p) triggerClientEvent(p, "enterVehicle", p) end) end
-
Its not working, because for "fetchRemote" on client side, the web host haves to be hosted on the same computer as the server.
-
That wouldn't work.. local respawn = 2000 local pick = createPickup(x,y,z,type,id,respawn) setTimer(function() if ( isElement ( pick ) ) then destroyElement(pick) end end,6000,1)
-
You can try this: function startJob ( p ) local id = getElementModel(source) if ( p == localPlayer ) and (id == 403) or (id == 515) or (id == 456) then local x, y, z = unpackMarkers() jobMarker = createMarker(x, y, z, "cylinder", 4, 255, 255, 0, 255) jobBlip = createBlipAttachedTo(jobMarker, 41) triggerServerEvent("visibleTruck", getLocalPlayer(), jobMarker, jobBlip) addEventHandler("onClientMarkerHit", jobMarker, function ( p ) if ( p and getElementType ( p ) == "vehicle" ) then local id = getElementModel ( p ) if ( id == 403 or id == 515 or id == 514 ) then local driver = getVehicleOccupant ( p ) triggerServerEvent("payTrucker", driver) destroyElement ( source ) if ( isElement ( jobBlip ) ) then destroyElement ( jobBlip ) end end end end ) end end addEventHandler("onClientVehicleEnter", root, startJob)
-
This is probably the best modshop you're going to find on the MTA community. If you want a better one you'll have to make it yourself or pay someone.
-
Hes the kid for not stealing leaked scripts and trying to redistribute them? I dont think so Nice to know you're trying to get money for shit you didn't make. This topic should be locked, thieve.
-
Is 'webmap' resource running?
-
rofl what you see then?! What?
-
In the 'freeroam/fr_server.lua' the chat lines should be 401-422. Just remove those lines and it should work.
-
use 'takePlayerMoney' on server side.
-
We arn't here to do it for you. Where here to help. Try using trial and error. This might help.
-
redirectPlayer ( playerElement, "127.0.0.1", 20003 )
-
-- Note: Not Tested local spawnPositions = { {214.0243072509+math.random(-5,5),1911.436889648+math.random(-5,5),17.640625}, {268.290039062+math,random(-5,5),2489.9414062+math,random(-5,5),16.383375}, {268.290039062+math,random(-5,5),2489.9214062+math,random(-5,5),16.383375}, } function spawnThePlayer ( player ) local number = math.random ( #spawnPositions ) local x, y, z = spawnPositions[number][1], spawnPositions[number][2], spawnPositions[number][3] spawnPlayer(player, x, y, z, math.random(0, 360), 73, 0, 0) end addEventHandler ( "onPlayerLogin", root, function ( ) spawnThePlayer ( source ) end )
-
Did you change the admin resource also? As it gives you a link for a new admin (or something idk, didn't download it.)
-
(If FatalTerror's code dosn't work) You can try this, although i havn't tested it. Insults = { -- Note: USE lowercase LETTERS -- Format: { "Insult Word", "Replace Word" }, { "bitch", "cow" }, } function chatL ( msg ) for k,v in ipairs (Insults) do if string.find( string.lower ( msg ),v[1]) then msg = msg:gsub ( msg, v[2] ) end end cancelEvent ( ) outputChatBox(getPlayerName ( source )..": #ffffff"..msg,root,0,255,0,true) end addEventHandler( "onPlayerChat", getRootElement(), chatL )
-
umm, use "string.find" and "string.gsub"
-
Thanks, but I had turned off my anti-virus protection when i got the virus I used to have Avast!, but my trial expired Well sorta, but the image will change after so many seconds (like 5) Not here I will try to search for it on Google, and give someone the link (if i get any luck)
-
Hi guys, so im not really into shader making... But some of you may know the shader on SAUR of the billboards they play ads for groups, etc... Well, i've seen it on Youtube before, but now i cannot go to youtube, because im a "genius" and got a stupid virus (i've already ran a virus scan..) so it won't allow me to go on youtube anymore. So if someone could just give me the download link that would be awsome, thanks. This is the shader im talking about:
