Parachute Cant open on spawn
#1

Hi on playerspawn i do setplayerpos and after that i give a parachute. But due some reaso you animated like you are falling, you can cycle weapons etc but you cant use your parachute.

How can i fix this?
Reply
#2

If ure using 0.3 use SetPlayerArmedWeapon.
Otherwise be REALLY SURE that you really added the parachute.
Reply
#3

im in 0.3 and im realy sure i did giveplayerweapon id 46 ammo 1
Reply
#4

Quote:
Originally Posted by hipy
im in 0.3 and im realy sure i did giveplayerweapon id 46 ammo 1
Then try SetPlayerArmedWeapon
Reply
#5

didnt work, you get the normal falling animation and i can cyle trough weapons( so i decide to wear it or not )

what i do on spawm

Код:
if(dm[playerid] == 1)
	{
        GivePlayerWeapon(playerid, 46, 1);
    
		
		SetPlayerPos(playerid, ****,161.1266);
		SetPlayerFacingAngle(playerid, 191.4758);
        SetPlayerArmedWeapon(playerid, 46);
		SetCameraBehindPlayer(playerid);
		
		
		PlayerPlaySound(playerid,1098 ,0, 0, 0);
	}
Reply
#6

Quote:
Originally Posted by hipy
didnt work, you get the normal falling animation and i can cyle trough weapons( so i decide to wear it or not )

what i do on spawm

Код:
if(dm[playerid] == 1)
	{
       GivePlayerWeapon(playerid, 46, 1);
    
		
		SetPlayerPos(playerid, ****,161.1266);
		SetPlayerFacingAngle(playerid, 191.4758);
        SetPlayerArmedWeapon(playerid, 46);
		SetCameraBehindPlayer(playerid);
		
		
		PlayerPlaySound(playerid,1098 ,0, 0, 0);
	}
Delete the Sound thing and the Camera for now. You can see if the problem is there. I don't think so, but a try is not worse than none.
Reply
#7

If you give a parachute to a player who's falling from the sky he won't play the parachute animation and he won't be able to open it, it think this is a San Andreas bug, i'm not so sure.
Reply
#8

Mkae a parachute pickup on spawn and set the respawn time of pickup really quick like 1 second or something.
Reply
#9

Quote:
Originally Posted by Don Correlli
If you give a parachute to a player who's falling from the sky he won't play the parachute animation and he won't be able to open it, it think this is a San Andreas bug, i'm not so sure.
No. It's has always been working fine. I myself remember when I joined the first time the SA:MP community, it was on a GF script and they had /skydive command, which worked fine.
Reply
#10

Don correli whas right,

atleast i delayed spawn in air by 1 second and that fixed it

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)