Raised This Month: $75 Target: $400
 18% 

[CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !nametag]


Post New Thread Reply   
 
Thread Tools Display Modes
RELLIX
New Member
Join Date: Aug 2019
Old 08-12-2019 , 16:41   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #871

Hi, i have a question. Can i add more commands to the plugin? For example, if someone were to type in "!skins" they would get the skins menu and if they were to type knife in another language they would get the knife menu and so on.

If I can do this, can anyone tell me how and which file to edit?

I tried to edit the .sp file but nothing happens. This is what I did:

RegConsoleCmd("buyammo1", CommandWeaponSkins);
RegConsoleCmd("sm_ws", CommandWeaponSkins);
RegConsoleCmd("buyammo2", CommandKnife);
RegConsoleCmd("sm_knife", CommandKnife);
RegConsoleCmd("sm_nametag", CommandNameTag);
RegConsoleCmd("sm_wslang", CommandWSLang);
RegConsoleCmd("sm_skins", CommandWeaponSkins);
RegConsoleCmd("sm_skin", CommandWeaponSkins);
RegConsoleCmd("sm_knives", CommandKnife);
RELLIX is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 08-14-2019 , 12:00   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #872

Quote:
Originally Posted by RELLIX View Post
Hi, i have a question. Can i add more commands to the plugin? For example, if someone were to type in "!skins" they would get the skins menu and if they were to type knife in another language they would get the knife menu and so on.

If I can do this, can anyone tell me how and which file to edit?

I tried to edit the .sp file but nothing happens. This is what I did:

RegConsoleCmd("buyammo1", CommandWeaponSkins);
RegConsoleCmd("sm_ws", CommandWeaponSkins);
RegConsoleCmd("buyammo2", CommandKnife);
RegConsoleCmd("sm_knife", CommandKnife);
RegConsoleCmd("sm_nametag", CommandNameTag);
RegConsoleCmd("sm_wslang", CommandWSLang);
RegConsoleCmd("sm_skins", CommandWeaponSkins);
RegConsoleCmd("sm_skin", CommandWeaponSkins);
RegConsoleCmd("sm_knives", CommandKnife);
You approached it correctly, however the .sp files are the source files. You will need to recompile the plugin.
__________________
sneaK is offline
DoMaxiHa
New Member
Join Date: Aug 2019
Old 08-14-2019 , 21:04   Re: [CSGO] Weapon & Knives (Skins, Name Tags, StatTrak, Wear/Float) [!ws !knife !name
Reply With Quote #873

Hey,

i installed the plugin on a local server. (testing)

I set FollowGuidelines to no. Still, if i select a skin, it gives me a "new" weapon but with the same skin. So basically the skin does not change. Same goes for knife.

Anyone has a clue ?

SM Ver. 1.9
MM: 1.10
PTah: 1.10
DoMaxiHa is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:59.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode