02.08.2011, 03:54
Esa no es una animaciуn, por lo tanto tendrнas que usar:
Son acciones especiales esas.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
{
if(GetPlayerAnimationIndex(playerid))
{
new libreria[32], nombre[32];
GetAnimationName(GetPlayerAnimationIndex(playerid), libreria, 32, nombre, 32);
if(!strcmp(libreria, "SUNBATHE", true) && !strcmp(nombre, "ParkSit_M_in", true))
{
ApplyAnimation(playerid, "ped", "SEAT_up", 4.000000, 0, 1, 1, 1, 0);
}
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USECELLPHONE)
{
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
}
}
}
return 1;
}