SA-MP Forums Archive
Disable Animation in Vehicle - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Disable Animation in Vehicle (/showthread.php?tid=361334)



Disable Animation in Vehicle - kbalor - 20.07.2012

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;
}



Re: Disable Animation in Vehicle - hansen111 - 20.07.2012

Код:
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;
}



Re: Disable Animation in Vehicle - kbalor - 20.07.2012

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!