Disable Animation in Vehicle
#1

How to disable animation while using a vehicle?? Coz when I do an animation in vehicle using dialog it can be applied.

How to disable animation in dialog??

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == ANIMS_DIALOG && response)
	{
		switch(listitem)
		{
			case 0:LoopingAnim(playerid, "PED", "SEAT_idle", 1.0, 1, 0, 0, 0, 0);
			case 1:LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
			case 2:SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); 
                 }
		return 1;
	}
	return 0;
}
Reply
#2

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == ANIMS_DIALOG && response && !IsPlayerInAnyVehicle(playerid))
	{
		switch(listitem)
		{
			case 0:LoopingAnim(playerid, "PED", "SEAT_idle", 1.0, 1, 0, 0, 0, 0);
			case 1:LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
			case 2:SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); 
                 }
		return 1;
	}
	return 0;
}
Reply
#3

Quote:
Originally Posted by hansen111
Посмотреть сообщение
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == ANIMS_DIALOG && response && !IsPlayerInAnyVehicle(playerid))
	{
		switch(listitem)
		{
			case 0:LoopingAnim(playerid, "PED", "SEAT_idle", 1.0, 1, 0, 0, 0, 0);
			case 1:LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
			case 2:SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1); 
                 }
		return 1;
	}
	return 0;
}
Like a charm! +rep thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)