29.01.2013, 02:38
I'm trying to stop the animations for both sides. This is the /hangup command. I have a /pickup (to answer) and a /call that plays the special action for being on the phone.
However this is the /hangup. I have it to clear the animations, but when the hangup finishes, the players still show being on the phone:
pawn Код:
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s takes out a cellphone.", sendername);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
new phonenumb = strval(tmp);
However this is the /hangup. I have it to clear the animations, but when the hangup finishes, the players still show being on the phone:
pawn Код:
SendClientMessage(caller, COLOR_GRAD2, " They hung up.");
ApplyAnimation(caller,"ped","phone_in",4.0,0,0,0,0,0);
ClearAnimations(caller);
CellTime[caller] = 0;
CellTime[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD2, " You hung up.");
ApplyAnimation(playerid,"ped","phone_in",4.0,0,0,0,0,0);
ClearAnimations(playerid);
Mobile[caller] = 255;
if(IsAtPublicPhone(caller)) TogglePlayerControllable(caller, 1);
}