10.03.2009, 13:48
I got this command:
It's supposed to be working like this:
/r <message>
then player will apply a animation that causes his right hand to go up to his ear and down...
BUT, when the hand goes up the player gets frozen...
I don't want it to be like that. I want the player be able to run at the same time as the animation...
Help please? =)
Code:
dcmd_r(playerid, params[]) { if(PlayerInfo[playerid][pMember] != 1) return 1; if(params[0] == 0) return SendClientMessage(playerid,COLOR_DARKRED,"Usage: /r <message>"); for ( new i = 0; i < MAX_PLAYERS; i++ ) { if(PlayerInfo[i][pMember] == 1) { new pName[MAX_PLAYER_NAME],string[256]; GetPlayerName(playerid,pName,sizeof(pName)); format(string,sizeof(string),"((Radio %s: %s))",pName,params[0]); ApplyAnimation(playerid,"ped","phone_talk",6.0,0,1,1,0,1000); SendClientMessage(i,COLOR_LIGHTBLUE,string); } } return 1; }
/r <message>
then player will apply a animation that causes his right hand to go up to his ear and down...
BUT, when the hand goes up the player gets frozen...
I don't want it to be like that. I want the player be able to run at the same time as the animation...
Help please? =)