-
Posts
4,961 -
Joined
-
Last visited
Everything posted by Jaysds1
-
Is it every server you go on, there is invisible players?
-
I edited it and now the image isn't being shown. Client-side only: -- Teams function Tro() dxDrawImage(316.0,241.0,129.0,114.0,"tropas.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("Tropas",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),2.0,"default","center","center",false,false,false) end addEvent("Tpas",true) addEventHandler("Tpas", getRootElement(), function() addEventHandler("onClientRender",root, Tro) setTimer (Tro ,13000, 1, removeEventHandler("onClientRender",root, Tro)) end) function Snaz() dxDrawImage(325.0,231.0,103.0,99.0,"spetsnaz.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("Spetsnaz",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),2.0,"default","center","center",false,false,false) end addEvent("Spets",true) addEventHandler("Spets", getRootElement(), function() addEventHandler("onClientRender",root, Snaz) setTimer (Snaz ,13000, 1, removeEventHandler("onClientRender",root, Snaz)) end) function P40() dxDrawImage(318.0,231.0,134.0,122.0,"op40.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("OP40",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),3.0,"default","center","center",false,false,false) end addEvent("O40",true) addEventHandler("O40", getRootElement(), function() addEventHandler("onClientRender",root, P40) setTimer (P40 ,13000, 1, removeEventHandler("onClientRender",root, P40)) end) function OPS() dxDrawImage(309.0,231.0,134.0,121.0,"black ops.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("Black OPS",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),3.0,"default","center","center",false,false,false) end addEvent("BOPS",true) addEventHandler("BOPS", getRootElement(), function() addEventHandler("onClientRender",root, OPS) setTimer (OPS ,13000, 1, removeEventHandler("onClientRender",root, OPS)) end) function nva() dxDrawText("NVA",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),4.0,"default","center","center",false,false,false) dxDrawImage(312.0,227.0,127.0,143.0,"nva.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) end addEvent("NVA",true) addEventHandler("NVA", getRootElement(), function() addEventHandler("onClientRender",root, nva) setTimer (nva ,13000, 1, removeEventHandler("onClientRender",root, nva)) end)
-
There is something wrong with the removeEventHandler.
-
When a player joins/spawns on a team the Image and the Text for the Team is suppose to show then fadeout after 15 seconds. Server-side: if (getPlayerTeam(client)) and (getTeamFromName(Teams[1])) then triggerClientEvent(client,"BOPS", getRootElement()) elseif (getPlayerTeam(client)) and (getTeamFromName(Teams[2])) then triggerClientEvent(client,"Spets",getRootElement()) elseif (getPlayerTeam(client)) and (getTeamFromName(Teams[3])) then triggerClientEvent(client,"SOG",getRootElement()) elseif (getPlayerTeam(client)) and (getTeamFromName(Teams[4])) then triggerClientEvent(client,"NVA",getRootElement()) elseif (getPlayerTeam(client)) and (getTeamFromName(Teams[5])) then triggerClientEvent(client,"Tpas",getRootElement()) elseif (getPlayerTeam(client)) and (getTeamFromName(Teams[6])) then triggerClientEvent(client,"O40",getRootElement()) end Client-side function Tro() dxDrawImage(316.0,241.0,129.0,114.0,"tropas.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("Tropas",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),2.0,"default","center","center",false,false,false) end addEventHandler("onClientRender",root, Tro) addEvent("Tpas",true) addEventHandler("Tpas", getRootElement(), Tro) setTimer ( Tro, 13000, 1) function Snaz() dxDrawImage(325.0,231.0,103.0,99.0,"spetsnaz.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("Spetsnaz",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),2.0,"default","center","center",false,false,false) end addEventHandler("onClientRender",root, Snaz) addEvent("Spets",true) addEventHandler("Spets", getRootElement(), Snaz) setTimer ( Snaz, 13000, 1) function P40() dxDrawImage(318.0,231.0,134.0,122.0,"op40.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("OP40",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),3.0,"default","center","center",false,false,false) end addEventHandler("onClientRender",root, P40) addEvent("O40",true) addEventHandler("O40", getRootElement(), P40) setTimer ( P40, 13000, 1) function OPS() dxDrawImage(309.0,231.0,134.0,121.0,"black ops.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("Black OPS",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),3.0,"default","center","center",false,false,false) end addEventHandler("onClientRender",root, OPS) addEvent("BOPS",true) addEventHandler("BOPS", getRootElement(), OPS) setTimer ( OPS, 13000, 1) function nva() dxDrawText("NVA",327.0,175.0,427.0,231.0,tocolor(255,255,255,255),4.0,"default","center","center",false,false,false) dxDrawImage(312.0,227.0,127.0,143.0,"nva.png",0.0,0.0,0.0,tocolor(255,255,255,255),false) end addEventHandler("onClientRender",root, nva) addEvent("NVA",true) addEventHandler("NVA", getRootElement(), nva) setTimer ( nva, 13000, 1)
-
When a player press Start Match it's suppose to spawnPlayer but the debugscript says that there is a bad Argument, but there isn't a bad argument, plus the random team script that JR10 gave me doesn't work. Server-side only: local Teams = { [1] = 'Black OPS', [2] = 'Spetsnaz', [3] = 'SOG', [4] = 'NVA', [5] = 'Tropas', [6] = 'OP40' } addEvent("Random",true) addEventHandler("Random",getRootElement(), function() if (client) then local rand = math.random(1, 2, 3, 4, 5, 6) setPlayerTeam(client, getTeamFromName(Teams[rand])) if (client) and (Teams[rand]) then spawnPlayer(client, x, y, z, 0, math.random(0,288),0, 0) fadeCamera(client, true) setCameraTarget(client, client) end end end)
-
First of all dont double post, and Do you really want a resource that restarts when a player join?
-
Can you copy all that and put it in , please Thanks
-
I never knew that page exist
-
Thanks diegofkda, and Everyone
-
I wanted to try it for server/future purposes. So there is no way of blocking it?
-
The default ports are 22003 for the people seeing it in the browser, 22005 is for the http://YOURIP:2005. What image do you see?
-
When I'm on my free roam server, a player told me to type in cv 431.1 I think, and it gave the person a tank... How do you block people from doing that?
-
[Help]Download on Community
Jaysds1 replied to =KoG=Rouche's topic in Site/Forum/Discord/Mantis/Wiki related
Dd you try downloading from other sites? -
Ya, most of my posts are those, but I sometimes help people out.
-
Download my resource and remove the --[[ These Symbols]] , then add your .png picture file. thats all.
-
karlis, Were all friends here trying to help each other, come on, And Castillo Thanks.
-
So you got the latest patch of MTA:SA, the latest DirectX runtime, and the latest notebook Graphic Driver, hmmmmmmmm... Do you have anything else running while your on the game? (example: Ares, Messenger, etc.)
-
Try this Microsoft site: http://support.microsoft.com/kb/2538243
-
How do you send people there password or username to there Email?
-
JR10 When the person is suppose to spawn it shows the sky\, the camera is not on the player... Do you know why?
-
I have a problem with this resource I created, When I start the resource it keeps kicking people out of the server and says that the client-side lua doesn't work. How do I make this resource work?
-
try this: function onResourceStart(res) createBlip (-1942.72265625,667.845703125,46.5625,56) marker1 = createMarker (-1917.5,671.4345703125,45.5625,"cylinder",1.2,0,255,0) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),onResourceStart) function visible (player) acc = getPlayerAccount (player) if (getAccountData(acc,"drive")==1) then setElementVisibleTo(marker1,player,false) else setElementVisibleTo(marker1,player,true) end end