English image not working

8 replies
Goto Page
To the start Previous 1 Next To the start
17.01.20 11:26:17 am
Up
badx kissed
User
Offline Off
I have a problem with this script Perhaps I should explain to you how it works in order to understand what happened.
I did this terrorist won It shows you a picture that expresses that too counter terrorists
But that not working for me. Is there an helper?

This is codes
Code:
1
2
3
4
5
6
7
8
9
addhook("endround","roundimage")
function roundimage(mode)
    if mode == 1 then -- Terrorist win
        image("gfx/dchate/toll.png", 1, 1, 0)
    end
     if mode == 2 then -- Conter Terrorist win
         image("gfx/dchate/hats.png", 1, 1, 0)
     end
end
BADX WAS HERE
17.01.20 11:33:17 am
Up
The kennyS
User
Offline Off
Where are your scripters? all dead?
17.01.20 11:38:14 am
Up
badx kissed
User
Offline Off
nope all is alive but i working on myself project
BADX WAS HERE
17.01.20 11:39:21 am
Up
TrialAndError
User
Online On
Perhaps you should check cs2d lua cmd image and see what the 2nd, 3rd and 4th parameters actually do.

What you're doing now is showing an image at pixel position (1,1) on the map.
edited 1×, last 17.01.20 11:44:11 am
17.01.20 11:39:34 am
Up
The kennyS
User
Offline Off
I see yunus, prince of persia, All left you haha nice.
17.01.20 11:42:42 am
Up
badx kissed
User
Offline Off
i was not working with Yunus i was work just with Prince Of Persia
BADX WAS HERE
17.01.20 12:28:41 pm
Up
MikuAuahDark
User
Offline Off
Your code is working, but you place it at coordinate (1, 1) in map pixels on the floor (covered by walls). Depending on your map, most player won't able to see it.
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
17.01.20 12:44:03 pm
Up
badx kissed
User
Offline Off
you know the mp_hudscale thing
its weird
BADX WAS HERE
17.01.20 01:18:47 pm
Up
MikuAuahDark
User
Offline Off
cs2d cmd mp_hudscale only affects cs2d lua cmd image with mode 2, cs2d cmd hudtxt, and cs2d cmd hudtxt2. Your code is not affected by it at all.
file cs2d LuaJIT for Dedicated Server (11) JIT POWER! | Know your Lua errors! | Draw stuff at Pixelize Art --xx-- server!
To the start Previous 1 Next To the start