even if you dont want to check for if the players ani is whatever on a timeout do somthing like this i think.
PHP Code:
function onKeypressed(code, key, scan) {
if(key == "s") {
if(player.ani.starts("servername_whatever")) {
also with your if statements, write them as follows.
PHP Code:
if(whatever == whatever) {
make sure you have two equals signs.
i learnt this from fowlplay
