View Single Post
  #2  
Old 05-22-2012, 08:41 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by blackbeltben View Post
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";
      
player.x;
      
player.y;
    }
  }

Quote:
Originally Posted by blackbeltben View Post
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(codekey) {
  if (
key == "u") {
    
temp.pressedcount ++;
    
player.attr[1] = "hat" temp.pressedcount ".png";
  }

__________________
MEEP!
Reply With Quote