SA-MP Forums Archive
Instead Run Cj Fast i go like old man - 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: Instead Run Cj Fast i go like old man (/showthread.php?tid=630474)



Instead Run Cj Fast i go like old man - Pokemon64 - 14.03.2017

Sup!
So i set cj run for one variable or how ever i should call it, bat the most important part that if i pressing space to run fast i start run like old man idk how that animation appears if i dont even set it.

Ongamemodeinit
Код:
    foreach(new i : Player)
    {
	if(teams[i] == TEAM_BLUE)
	{
	if(pInfo[i][pBlueClass] == RUNNER)
	{
	UsePlayerPedAnims();
    }
    }
    }



Re: Instead Run Cj Fast i go like old man - Pokemon64 - 14.03.2017

P.S If i hold space everything ok, bat if i start pressing space old man animation appear.


Re: Instead Run Cj Fast i go like old man - Pokemon64 - 14.03.2017

Lol i have test if cj skin run fast without UsePlayerPedAnims so i delete it and try to test bat that animation appear again so i test with other skin and everything work fine, so wtf?


Re: Instead Run Cj Fast i go like old man - 4D1L - 14.03.2017

UsePlayerPedAnims can only be used in OnGameModeInit().


Re: Instead Run Cj Fast i go like old man - Pokemon64 - 14.03.2017

Quote:
Originally Posted by 4D1L
Посмотреть сообщение
UsePlayerPedAnims can only be used in OnGameModeInit().
Dude i said "i use it ongamemodeinit"


Re: Instead Run Cj Fast i go like old man - Pokemon64 - 14.03.2017

I have tested with other skin and use same system so i realize this code will not work so my other question is why Cj skin id "0" when i pressing space get animation of slow walk? How need fix it?


Re: Instead Run Cj Fast i go like old man - Sew_Sumi - 14.03.2017

Oh come on... Pay attention...

It can only be used in OnGamemodeInit, yet you OBVIOUSLY are trying to use it in a for loop, which isn't under OnGamemodeInit.

You cannot do this... It's either on or off... There is no toggling it, and it's a server setting, not a per-player option.


CJs run, is hardcoded to CJ, that's why many servers with this on restrict and remove the CJ skin.


Re: Instead Run Cj Fast i go like old man - Pokemon64 - 14.03.2017

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Oh come on... Pay attention...

It can only be used in OnGamemodeInit, yet you OBVIOUSLY are trying to use it in a for loop, which isn't under OnGamemodeInit.

You cannot do this... It's either on or off... There is no toggling it, and it's a server setting, not a per-player option.


CJs run, is hardcoded to CJ, that's why many servers with this on restrict and remove the CJ skin.
So you want to say i cant intend to use for any variable or something like this?


Re: Instead Run Cj Fast i go like old man - TitanX - 14.03.2017

UsePlayerPedAnims(); has no params for one player

but you can use this https://sampforum.blast.hk/showthread.php?tid=382564


Re: Instead Run Cj Fast i go like old man - Pokemon64 - 14.03.2017

Quote:
Originally Posted by TitanX
Посмотреть сообщение
UsePlayerPedAnims(); has no params for one player

but you can use this https://sampforum.blast.hk/showthread.php?tid=382564
Is there any fast run animation?