AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with a plugin (https://forums.alliedmods.net/showthread.php?t=187321)

sasukebr 06-11-2012 21:07

Help with a plugin
 
1 Attachment(s)
Hello friends here I am in need of a helping of you when I type / box to enable the glove does not show edited excuse me anything for my bad English

Liverwiz 06-11-2012 21:09

Re: Help with a plugin
 
I'm checking out your sma now....but in the future, if you please, when your code is less than like 10 MB, just copy paste it into the thread between [php] tags. It'll make for less hard drive space being taken up by us. And quicker replies.

YamiKaitou 06-11-2012 21:12

Re: Help with a plugin
 
Quote:

Originally Posted by Liverwiz (Post 1727033)
I'm checking out your sma now....but in the future, if you please, when your code is less than like 10 MB, just copy paste it into the thread between [php] tags. It'll make for less hard drive space being taken up by us. And quicker replies.

Sorry but hell no. Unless it is a short plugin or a snippet of the code, the SMA is preferred.

Liverwiz 06-11-2012 21:17

Re: Help with a plugin
 
Quote:

Originally Posted by YamiKaitou (Post 1727036)
Sorry but hell no. Unless it is a short plugin or a snippet of the code, the SMA is preferred.

ok....i guess 10M is pretty big. but a 2K file....gimme code.


SOLUTION: you don't actually show the model to anyone.
Code:

entity_set_string(id, EV_SZ_weaponmodel, "models/p_knife.mdl")
entity_set_string(id, EV_SZ_viewmodel, "models/v_box_blue.mdl")

will show your model to the indicated player, and on the indicated player. make sure to #include <engine>

and place those lines appropriately throughout your code.

Kreation 06-11-2012 21:22

Re: Help with a plugin
 
Quote:

Originally Posted by Liverwiz (Post 1727038)
ok....i guess 10M is pretty big. but a 2K file....gimme code.

Well, why didn't you say a 2KB file and not a 10MB? Durdurdur.

YamiKaitou 06-11-2012 21:31

Re: Help with a plugin
 
Quote:

Originally Posted by Liverwiz (Post 1727038)
ok....i guess 10M is pretty big. but a 2K file....gimme code.

Still disagree. Anything longer than 30 lines should be attached. It is much easier to read the code when viewing it in a text editor as compared to in a post

sasukebr 06-11-2012 21:37

Re: Help with a plugin
 
1 Attachment(s)
I'm new guy I have no experience with many being able to help me precache thank you

sasukebr 06-11-2012 21:38

Re: Help with a plugin
 
You can pass the edited sma ready

Liverwiz 06-11-2012 21:43

Re: Help with a plugin
 
Quote:

Originally Posted by sasukebr (Post 1727053)
I'm new guy I have no experience with many being able to help me precache thank you

what you had before was correct. the entity_set_string() SHOWS the models, it isn't the models themselves.

sasukebr 06-11-2012 21:49

Re: Help with a plugin
 
is how you post your edited the sma / box


All times are GMT -4. The time now is 16:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.