-
Posts
285 -
Joined
-
Last visited
Everything posted by Spajk
-
Check if the resource is running and check if the function has been added as export in the meta.xml.
-
local Bscore = 0 local Wscore = 0 function onWasted(killer, weapon, bodypart) local kteam = getPlayerTeam(killer) if(getTeamName(kteam) == "WhiteTeam")then Wscore = Wscore + 1 elseif(getTeamName(kteam) == "BlackTeam") Bscore = Bscore + 1 end end addEventHandler("onClientPedWasted", getRootElement(), onWasted) function onRender() local team = getPlayerTeam(localPlayer) if(getTeamName(team) == "WhiteTeam" or getTeamName(team) == "BlackTeam") then dxDrawText("Black Team:"..tostring(Bscore), 0, 500, 319, 426, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) dxDrawText("White Team:"..tostring(Wscore), 0, 600, 319, 426, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) end end addEventHandler("onClientRender", root, onRender)
-
local Bscrore = 0 local Wscrore = 0 function onWasted(killer, weapon, bodypart) local kteam = getPlayerTeam(killer) if(getTeamName(kteam) == "WhiteTeam")then Wscore = Wscore + 1 elseif(getTeamName(kteam) == "BlackTeam") Bscore = Bscore + 1 end end addEventHandler("onClientPedWasted", getRootElement(), onWasted) function onRender() local team = getPlayerTeam(localPlayer) if(getTeamName(team) == "WhiteTeam" or getTeamName(team) == "BlackTeam") then dxDrawText("Black Team:"..tostring(Bscore), 0, 500, 319, 426, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) dxDrawText("White Team:"..tostring(Wscore), 0, 600, 319, 426, tocolor(255, 255, 255, 255), 1.00, "pricedown", "center", "center", true, true, true, true, false) end end addEventHandler("onClientRender", root, onRender) It wont work well because of late joining.
-
Just add another field in the groups table in the SQL named "memo" with type "TEXT".
-
Dealman, if he already has a group system that uses SQL then why would he store it inside files?
-
It's not always easy. Have you ever seen how race maps ([DM]) maps look like?Full of decoration and track,and it's hard to make it look good. That depends on person's imagination.
-
Because mapping is easy?
-
Good luck earning $1000 by selling scripts.
-
wow, didn't know about that.
-
What do you mean it works only on local server? it works on every server which has a HTTP server running on the same machine. I am quite sure it would even work with MTA's inbuit HTTP server.
-
https://code.google.com/p/mtasa-blue/so ... ail?r=6201
-
He did mean on microphone.
-
No, he wants to change the volume of a player's voice. ( microphone )
-
I am sure that command "list" does the same thing.
-
Any possibility of a seperate release containing only custom objects like bridges and roads?
-
Citizen, there's no need for that, ImageSection supports rotations: rotation: the rotation, in degrees for the image. rotationCenterOffsetX: the absolute X offset from the image center for which to rotate the image from. rotationCenterOffsetY: the absolute Y offset from the image center for which to rotate the image from. Also, since MTA 1.3.5, dx text also has these arguments.
-
Also, there's no function named "getPlayerStats".
-
Creating an editbox in dx should't be hard, but it gets a lot harder when you want to add stuff as selecting text.
-
Excellent work. You should make it a FPS.
-
Using exported functions.
-
... getElementData(player, "Role") returns player's current job, so you should use: if(getElementData(player, "Role") == "Police officer")then
-
@Chaz It's called teams and yes, using the exported functions provided by this system it can be easly done. @Henn It's in the first post.
-
It's in .col, I am 100% sure. Use col editor to change it.
-
And you are supposed to be a scripter?