Jump to content

Jaysds1

Members
  • Posts

    4,961
  • Joined

  • Last visited

Everything posted by Jaysds1

  1. dxCreateFont -- creates custom font dxDrawText --draw text
  2. Not sure if this is what you wanted: Server-side local govTeams = { ["Police"]=true, ["SWAT"]=true, ["FBI"]=true, ["Army"]=true } function unemploy ( thePlayer ) if getPlayerWantedLevel( thePlayer ) == 6 and then --check if the players wanted level is 6 if govTeams[getTeamName(getPlayerTeam(thePlayer))] then --check if the player is working for the government setPlayerTeam(thePlayer,getTeamFromName("Unemployed")) --set the player to un-employed as the government doesn't like criminals outputChatBox ("Menetit työsi, koska olet korruptoitunut!", 255, 0, 0, thePlayer ) end end end addEventHandler("onPlayerWasted",root,unemploy) --This is triggered when a player dies
  3. Jaysds1

    Help me.

    Seems as if your GTASA is Modified or isn't supported with MTA: Please run this please: http://files.mtasa.com/apps/tools/gtasapatch_final.zip If you need any help, check this post: https://forum.multitheftauto.com/viewtopic.php?t=15151
  4. It's also nice to see a Past MTA Contributor past by to see how MTA is doing
  5. Well if it happens on all versions then it's your mta/computer... Did you try reinstalling MTA?
  6. Please post the generated MTA:Pastebin url here after using the MTADiag.
  7. Jaysds1

    The last reply

    (Jamaican Accent) Nah na mon, meh a deh last one to put sum ting in ya sa (Translated) No, I'm the last one to post something here.
  8. Jaysds1

    The last reply

    Actually I "Deny" your "Denied".
  9. Jaysds1

    The last reply

    Hmmmmmmmmmmmmmmmmmmmmmmmm, I'm just gonna say 1 thing..... I WIN!!!!
  10. Jaysds1

    Join Failed

    try this: function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end local message = {join="",quit="",nick="",login=""} local x,y = guiGetScreenSize() local scaleX = x/1920 local scaleY = y/1080 function renderPlayerJoined ( ) dxDrawColorText("#ffffff".. message.join, 1140*scaleX, 20,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false) dxDrawImage (1110*scaleX, 20,16,16,"icon/join.png",0,-120) end function renderPlayerLeft ( ) dxDrawColorText("#ffffff".. message.quit, 1140*scaleX, 40,573.0,32.0,tocolor(0,0,255,170),1,"default-bold","left","top",false,false,false) dxDrawImage (1110*scaleX, 40,16,16,"icon/quit.png",0,-120) end function renderPlayerNick ( ) dxDrawColorText("#ffffff".. message.nick, 1140*scaleX, 60,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false) dxDrawImage (1110*scaleX, 60,16,16,"icon/nick.png",0,-120) end function renderPlayerLogin ( ) dxDrawColorText("#ffffff".. message.login, 1140*scaleX, 80,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false) dxDrawImage (1110*scaleX, 80,16,16,"icon/login.png",0,-120) end addEvent( "onJoin", true ) addEventHandler( "onJoin", root,function( player, ulke ) message.join = "#ffffff"..getPlayerName (player) .. " #ffffffhas joined the game from #00ff00 ".. tostring ( ulke ) addEventHandler ( "onClientRender", root, renderPlayerJoined ) setTimer(removeEventHandler,6000,1,"onClientRender", root, renderPlayerJoined ) end) addEventHandler('onClientPlayerQuit', root,function(reason) message.quit = "#ffffff" ..getPlayerName(source) .. " #ffffffhas left game. [#ffffff" .. reason .. "#ffffff]" addEventHandler ( "onClientRender", root, renderPlayerLeft ) setTimer(removeEventHandler,6000,1,"onClientRender", root, renderPlayerLeft ) end) addEventHandler ( "onClientPlayerChangeNick", root,function ( oldNick, newNick ) message.nick = "#ffffff" ..oldNick.. " #ffffffis now known as #ffffff" ..newNick addEventHandler ( "onClientRender", root, renderPlayerNick ) setTimer(removeEventHandler,6000,1,"onClientRender", root, renderPlayerNick ) end) addEvent( "onPlayerLogin", true ) addEvent( "onPlayerLogout", true ) addEventHandler( "onPlayerLogin", root, function( player ) message.login = "#ffffff"..getPlayerName (player) .. " #ffffffhas successfully logged in!" addEventHandler ( "onClientRender", root, renderPlayerLogin ) setTimer(removeEventHandler,6000,1,"onClientRender", root, renderPlayerLogin ) end) addEventHandler( "onPlayerLogout", root, function( player ) message.login = "#ffffff"..getPlayerName (player) .. " #ffffffhas successfully logged out!" addEventHandler ( "onClientRender", root, renderPlayerLogin ) setTimer(removeEventHandler,6000,1,"onClientRender", root, renderPlayerLogin ) end) And where is "onJoin" triggered?
  11. Sorry, We don't know what your talking about... Can you give us more description on what you want please?
  12. The first download is always the client files, after that, the server files would be downloaded and saved in the players ram. 1. I'm not sure what increases it, but I think it's something to do with how much characters are in a file and integers. 2. It also depends on how you write your script 3. No, we do not have any.
  13. Ok, cuz attacks could happen from anywhere. From your wi-fi to the Ethernet cable.
  14. Well, the only way is to disable AC in the mtaserver.conf.
  15. I would add you but I barely go on skype anymore Probably when I get myself a computer, then me and you could skype
  16. I liked it when I first seen it, and I'm planning to buy a PS4 for it.
  17. Can you download this "Intel Driver Update Utility" Please Then post another MTADiag link.
  18. Jaysds1

    Crash help Me

    @sojacz Please don't double post. Download and run this MTADiag then post the generated MTA:PasteBin URL here please.
×
×
  • Create New...