View Single Post
  #8  
Old 08-16-2012, 03:46 AM
Fysez Fysez is offline
Banned
Join Date: Apr 2012
Posts: 89
Fysez has a little shameless behaviour in the past
Quote:
Originally Posted by callimuc View Post
You could put them as ATTRs in the gani (body attr1, head attr2, hat attr3, scarf attr4, ...) and than script your set#

PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "setbody"player.attr[1] = player.chat.substring(7);
  else if (
player.chat == "sethead"player.attr[2] = player.chat.substring(7);
  else if (
player.chat == "sethat"player.attr[3] = player.chat.substring(6);
  else if (
player.chat == "setscarf"player.attr[4] = player.chat.substring(8);

keep in mind that is very basic. You would do better doing serverside checks if the file actually exists and if it's the correct body part. But you should get what I want to say
Okay good,
You get where i'm coming from.
I knew this attribute thing,
But now that we have this out of the way,
How would I enter this into the Gani???
Because i'm pretty positive player.attr[4] wont know exactly where you want the sprite at on the player, And what layer.
What would I put in for the image?
Like, In the Gani image thing.
Would I put SCARF or like, player.attr[4] or something???

EDIT: I mean, Since attr's go by Gani. Not Image.
Reply With Quote