Uhh, what's the animation for sitting on a chair? I have a /seat command, but when you stand infront of the chair, you end up sitting on air instead of the chair, cause your character moves forward for some reason (collision probably). How to avoid this?
pawn Код:
if(strcmp(cmd, "/seat", true) == 0)
{
if(pCriticallyInjured[playerid] == 1) return SendClientMessage(playerid, COLOR_ORANGE, "[ERROR:] Critically injured!");
if(!IsPlayerInAnyVehicle(playerid))
{
ApplyAnimation(playerid,"PED","SEAT_down",4.1,0,1,1,1,0,1);
}
else
{
SendClientMessage(playerid, COLOR_ORANGE, "[ERROR:] Not possible in a vehicle.");
}
return 1;
}
< there ya go. Look at every single on of them.