Disable animations in vehicles
#3

pawn Код:
if (strcmp("/sit", cmdtext, true, 10) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
        ApplyAnimation (playerid, "PED", "SEAT_IDLE",1,1,1,1,0,0);
        }
        return 1;
    }
The '!' makes sure that the player is not inside any vehicle,and after it checked he's not,it will apply the function.
Reply


Messages In This Thread
Disable animations in vehicles - by RedFusion - 19.07.2010, 19:49
Re: Disable animations in vehicles - by Jay. - 19.07.2010, 19:51
Re: Disable animations in vehicles - by [XST]O_x - 19.07.2010, 19:51
Re: Disable animations in vehicles - by RedFusion - 19.07.2010, 20:02
Re: Disable animations in vehicles - by [XST]O_x - 19.07.2010, 20:03
Re: Disable animations in vehicles - by RedFusion - 19.07.2010, 20:09
Re: Disable animations in vehicles - by Kar - 19.07.2010, 20:09
Re: Disable animations in vehicles - by RedFusion - 19.07.2010, 21:06
Re: Disable animations in vehicles - by RedFusion - 19.07.2010, 21:12
Re: Disable animations in vehicles - by Kar - 19.07.2010, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)