Chainsaw Animation
#1

How do i check if a player is using a chainsaw?
Reply
#2

Sorry for my bad English
So, you must put into OnPlayerUpdate this code:

pawn Код:
new test[30];
format(test, sizeof test,"Animid: %d",GetPlayerAnimationIndex(playerid));
SendClientMessage(playerid,-1,test);
Then do some action with a chainsaw in the game and remember the IDs of animations from the chat.
Remove code from OnPlayerUpdate & use this to check chainsaw animation:

pawn Код:
switch(GetPlayerAnimationIndex(playerid))
{
    case (here ids): SendClientMessage(playerid,-1,"Chainsaw Animation");
}
Reply
#3

Or you can detect if a player is using a chainsaw.
Reply
#4

Quote:
Originally Posted by stabker
Посмотреть сообщение
Sorry for my bad English
So, you must put into OnPlayerUpdate this code:

pawn Код:
new test[30];
format(test, sizeof test,"Animid: %d",GetPlayerAnimationIndex(playerid));
SendClientMessage(playerid,-1,test);
Then do some action with a chainsaw in the game and remember the IDs of animations from the chat.
Remove code from OnPlayerUpdate & use this to check chainsaw animation:

pawn Код:
switch(GetPlayerAnimationIndex(playerid))
{
    case (here ids): SendClientMessage(playerid,-1,"Chainsaw Animation");
}
Ok thanks alot for this. I checked something in wiki but my internet crashed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)