[Include] [INC] Gun Holder
#21

Quote:

So basically the object is following you? Is it smooth when you move? I think it may cause lagg if many players does /holder ?

yes, the object follows player, but if he is in vehicle, and he drives, weapon backs little bit (temporarily).
Reply
#22

Man, i love it: I searched a long time for something like this!

Great script my friend
Reply
#23

I've tested it and I've found out that when you're standing still the weapon is in your back a bit, is there any way to move it back a bit so its on your back perfectly when standing still?
Reply
#24

Great script,good job man
Reply
#25

Thx all for your comments

Quote:
Originally Posted by ŔгŷƤōďе
I've tested it and I've found out that when you're standing still the weapon is in your back a bit, is there any way to move it back a bit so its on your back perfectly when standing still?
It's diffrent for every weapon, so it's difficult to set it right for every gun.
Maybe i will update this script so the position is diffrent for every gun, to hold it smoothly
Reply
#26

Hi iff planted it in my Gamemode but i get this errors:

Код:
(216) : error 047: array sizes do not match, or destination array is too small
(219) : error 047: array sizes do not match, or destination array is too small
Commands:
Код:
	new cmd[128];
	new idx;
	cmd = strtok(cmdtext, idx);
	if (!strcmp(cmd, "/holder", true))
	{
	  cmd = strtok(cmdtext, idx);
	  new model = strval(cmd);
		SetHolderWeapon(playerid, model);
		return 1;
	}
	if (!strcmp(cmd, "/remove", true))
	{
		RemoveHolderWeapon(playerid);
	  return 1;
	}
Its the same Commands from your Test Gamemode
Reply
#27

Good work
tanks
Reply
#28

Quote:
Originally Posted by nuriel8833
Good work
tanks
Thx, The next update will 10x better.

Quote:
Originally Posted by GforceNL
Hi iff planted it in my Gamemode but i get this errors:

Код:
(216) : error 047: array sizes do not match, or destination array is too small
(219) : error 047: array sizes do not match, or destination array is too small
Commands:
Код:
	new cmd[128];
	new idx;
	cmd = strtok(cmdtext, idx);
	if (!strcmp(cmd, "/holder", true))
	{
	  cmd = strtok(cmdtext, idx);
	  new model = strval(cmd);
		SetHolderWeapon(playerid, model);
		return 1;
	}
	if (!strcmp(cmd, "/remove", true))
	{
		RemoveHolderWeapon(playerid);
	  return 1;
	}
Its the same Commands from your Test Gamemode
do you got the same strtok from the gamemode?
because i edited the strok a bit, because i used it for commands, so with the default strok, 128 cells are wasted.
So copy my strtok to your gamemode rename it with strtok_command or something, and edit the thing in the holder commands

In the next update there is no need of strtok, because i will use dcmd.
Reply
#29

sweeet
Reply
#30

Quote:
Originally Posted by earth101
มันคือwhat
Код:
General Rules:

  * SEARCH before you ask anything, most of the questions have been asked before.
  * No warez (and no-cd cracks, including any of the san andreas game files or leaked content), illegal materials or pornography.
  * No racism or any other forms of discrimination.
  * Don't advertise. A link to a site related to the topic is fine, spamming your home page is not. This includes advertising your servers and services. However, you are allowed to put advertisements in your signature or server advertisements.
  * No SPAM. If you are adding no useful information to a topic, you are spamming.
  * No double posting. There is a modify button , please use it.
  * English only.
  * Do not insult, curse at, tease, or make offensive comments towards other members.
  * Selling scripts or linking to sites that allow people to sell scripts are not allowed.
  * Don't post huge scripts. Use http://pawn.pastebin.com/ instead.
  * Scripts or other programmed things released on those forums MUST include all source.
  * When responding to coding questions make sure your code works first.
  * If someone posts a post you think is rule-breaking in some way report it and do not reply to say so.

Signature & Avatar Rules:

  * Signatures can be a maximum of 250px high.
  * Images in your signature and avatar can't exceed 250KB in total size.


Disclaimer: We reserve the right to alter, add or completely rewrite these rules at any time, with or without notice.
Look At General Rules, rule number 7.
Reply
#31

He made this 1.5 years before me^^
Reply
#32

Also on DOS script he is using SetPlayerHoldingObject, which is a new function.
Reply
#33

can make this code in zcmd?
Reply
#34

Nice job.
Reply
#35

omg, it's fail -.-
Reply
#36

Nice Include
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)