• CSKillIcons
    2 replies, posted
So i was trying to make a kill icon for my swep when i did this code for the kill icon in the shared.lua file... [code] if( CLIENT ) then killicon.AddFont( "weapon_ak47", "CSKillIcons", "b", Color( 255, 80, 0, 255 ) ) end [/code] This error came up: [code] [ERROR] lua/includes/modules/killicon.lua:69: 'CSKillIcons' isn't a valid font 1. SetFont - [C]:-1 2. GetSize - lua/includes/modules/killicon.lua:69 3. DrawDeath - gamemodes/base/gamemode/cl_deathnotice.lua:168 4. Run - gamemodes/base/gamemode/cl_deathnotice.lua:214 5. HUDPaint - gamemodes/base/gamemode/cl_init.lua:86 6. unknown - gamemodes/sandbox/gamemode/cl_init.lua:75 [/code] What im asking is. How to do Counter Strike kill icons thanks
[lua] if( CLIENT ) then -- Setup stuff as you want here. (i used it as select icons for my Bass Cannon) surface.CreateFont( "CSKillIcons", { font = "csd", size = 100, weight = 500, blursize = 0, scanlines = 0, antialias = false, shadow = false, additive = true } ) killicon.AddFont( "weapon_ak47", "CSKillIcons", "b", Color( 255, 80, 0, 255 ) ) end [/lua] This should work.
[QUOTE=PurpleMario16;42933446][lua] if( CLIENT ) then -- Setup stuff as you want here. (i used it as select icons for my Bass Cannon) surface.CreateFont( "CSKillIcons", { font = "csd", size = 100, weight = 500, blursize = 0, scanlines = 0, antialias = false, shadow = false, additive = true } ) killicon.AddFont( "weapon_ak47", "CSKillIcons", "b", Color( 255, 80, 0, 255 ) ) end [/lua] This should work.[/QUOTE] Thanks dude! Worked great
Sorry, you need to Log In to post a reply to this thread.