Quote:
Originally Posted by blackbeltben
Question 1
Is there any other way to show/draw images besides showImg()?
When I draw an image, my players can see it, but others can't.
(and the image index is less than 200)
Just need to know if there are any other ways to display images with the player.
|
Are you sure the file is uploaded? You could do something like:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == "/image") {
with (findimg(100)) {
image = "block.png";
x = player.x;
y = player.y;
}
}
}
Quote:
Originally Posted by blackbeltben
Question 2
How would I go about changing a number of a head in a custom body system.
Just making a way to scroll through the different heads.
onKeyPressed(code, key)
{
if (key = "u")
{
player.attr[x] = servername_head_1.png <-- I want the '1' to go up to
'2'. '2' to '3'...and so on
every time you press "u"
|
Try something like
PHP Code:
//#CLIENTSIDE
function onKeyPressed(code, key) {
if (key == "u") {
temp.pressedcount ++;
player.attr[1] = "hat" @ temp.pressedcount @ ".png";
}
}