04.08.2012, 16:05
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?
This is my /seat cmd:
This is my /seat cmd:
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;
}