/chat on PlayerTextMessage
#1

How do i add that anim on player talking IC but with a timer, like if the palyer only say yes he will only do the anim for 1 sec.

How can i do it?

Shellegg
Reply
#2

ApplyAnimation, SetTimerEx, ClearAnimations.
Reply
#3

Isn't it more easy if i add something with characters?

Like if message have 3 characters

ApplyAnimation with timer for 1 sec and then clear.


Can i have an example of this?
Reply
#4

Oh sure, use strlen.
Reply
#5

example?
Reply
#6

anyone?
teach me how to script defining characters?
Reply
#7

People here are not teachers, we just help you fix your code..

Where do you want to use it, OnPlayerText?
Reply
#8

yes, i have an ideia, but i dont know the "variable"
like this

pawn Код:
public OnPlayerTextMessage
{
  if(MessageCharacter <= 3)
  {
    SetTimerEx(.....)
  }
  else if(MessageCharacter <= 6)
  {
    SetTimerEx(.....)
  }
  return 1
}


Like this?
Reply
#9

alo?
Reply
#10

pawn Код:
if (strlen(text) <= 3)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)