How can I script this...
#1

How can I make that Players can hold a Ak-47/M4/Spas-12/Shotgun or any other big gun, with only one hand... and I can run fast holding it with one hand.

I will appreciate your help,
Thanks.
Reply
#2

You're probably using CJ Run.

delete this from your script

PHP код:
UsePlayerPedAnims(); 
Reply
#3

Quote:
Originally Posted by =WoR=G4M3Ov3r
Посмотреть сообщение
You're probably using CJ Run.

delete this from your script

PHP код:
UsePlayerPedAnims(); 
I think he's actually trying to make them run fast.

Add this to OnGameModeInit:

UsePlayerPedAnims();
Reply
#4

Quote:
Originally Posted by Roperr
Посмотреть сообщение
I think he's actually trying to make them run fast.

Add this to OnGameModeInit:

UsePlayerPedAnims();
Quote:
Originally Posted by Cr4zyR0d
Посмотреть сообщение
How can I make that Players can hold a Ak-47/M4/Spas-12/Shotgun or any other big gun, with only one hand... and I can run fast holding it with one hand.

I will appreciate your help,
Thanks.
Come again ?
Reply
#5

Код:
UsePlayerPedAnims();
	// Player Class's
	for(new i = 0; i <= sizeof(PedSkins)-1; i++)
	{
		AddPlayerClass(PedSkins[i][0],982.1890,-1624.2583,14.952,90,-1,-1,-1,-1,-1,-1);
	}
I have to delete all this?^
Reply
#6

Quote:
Originally Posted by Cr4zyR0d
Посмотреть сообщение
Код:
UsePlayerPedAnims();
	// Player Class's
	for(new i = 0; i <= sizeof(PedSkins)-1; i++)
	{
		AddPlayerClass(PedSkins[i][0],982.1890,-1624.2583,14.952,90,-1,-1,-1,-1,-1,-1);
	}
I have to delete all this?^
Yes. As long as you don't have this UsePlayerPedAnims(); You won't have any problems.

As for AddPlayerClass, this is how it works

PHP код:
AddPlayerClass(skinFloat:xFloat:yFloat:zFloat:Angleweapon1weapon1_ammoweapon2weapon2_ammoweapon3weapon3_ammo
Its the skin you spawn in, so basically delete the whole thing.

After that pick the skin you want your players to spawn in, and use it this way.

PHP код:
public OnGameModeInit()
{
    
AddPlayerClass(2401958.331343.1215.36269.15000000);
    return 
1;

Reply
#7

Haha yeah, thanks it works now D

Now I will check how to make them to move their hands like talking, when someone write something "In-Character"..

Really Really appreciated man, Thanks..
Reply
#8

No problem.

Quote:
Originally Posted by Cr4zyR0d
Посмотреть сообщение
Now I will check how to make them to move their hands like talking, when someone write something "In-Character"..

Really Really appreciated man, Thanks..
Its an animation https://sampwiki.blast.hk/wiki/ApplyAnimation

List of animations

G'luck.
Reply
#9

Haha I don't understand that, I'm not a Scripter, I just know the simple things..
I got the chat as anim In Game, to move your hands like talking you have to do /chat 5, and I don't like that, I just want to make them move their hands atomacally.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)