SA-MP Forums Archive
Running problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Running problem (/showthread.php?tid=256394)



Running problem - tbedy - 20.05.2011

i using Raven's RolePlay and I have problem with running


this is ravens bad running:
http://www.xfire.com/video/470a8a/

this is runnig which I want!
http://www.xfire.com/video/470a7f/

This Raven's running is slower and uglier


Re: Running problem - Raimis_R - 20.05.2011

Just write in Ravens section.


Re: Running problem - Seven_of_Nine - 20.05.2011

pawn Код:
UsePlayerPedAnims();
Under OnGameModeInit.


Re: Running problem - tbedy - 21.05.2011

yes i put this.. look

and again itd running like sheep

Код:
public OnGameModeInit() // Do not add vehicles Above the next lines. - CuervO
{
	LoadCar();
	new string2[64];
	for(new h = 1; h < sizeof(CarInfo); h++)
	{
		format(string2, sizeof(string2), "LARP/Vehicles/%d.ini",h);
		if(dini_Exists(string2))
		{
			ownedcar[h] = AddStaticVehicleEx(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
			if(CarInfo[h][cPaintjob] != 999)
			{
				ChangeVehiclePaintjob(h, CarInfo[h][cPaintjob]);
			}
			SetVehicleVirtualWorld(h, CarInfo[h][cVirWorld]);
			SetVehicleModifications(h);
			UsePlayerPedAnims();
		}
	}



Re: Running problem - tbedy - 21.05.2011

bumpppp


Re: Running problem - KoczkaHUN - 21.05.2011

l-o-l, why did you write that UsePlayerPedAnims(); in a loop?


Re: Running problem - tbedy - 21.05.2011

where i need write that?


Re: Running problem - KoczkaHUN - 21.05.2011

put it in the very first line of OnGameModeInit, as:
pawn Код:
public OnGameModeInit()
{
    UsePlayerPedAnims();
    LoadCar();
    new string2[64];
    for(new h = 1; h < sizeof(CarInfo); h++)
    // further code
}



Re: Running problem - xalith - 21.05.2011

Quote:
Originally Posted by KoczkaHUN
Посмотреть сообщение
put it in the very first line of OnGameModeInit, as:
pawn Код:
public OnGameModeInit()
{
    UsePlayerPedAnims();
    LoadCar();
    new string2[64];
    for(new h = 1; h < sizeof(CarInfo); h++)
    // further code
}
this should fix it, btw LMAO, "run like sheep" :P