View Single Post
XxSignoxX
Junior Member
Join Date: Apr 2024
Location: Argentina
Old 05-04-2024 , 15:06   Re: Server configuration questions (USP-M4A1S)
Reply With Quote #3

Quote:
Originally Posted by Shaohao View Post
Hey,
To set USP as the default weapon for CT side you can use Sourcemod to override the default weapon loadout. You'll need to create a Sourcemod plugin that sets the default weapon to USP for CT players. This plugin would need to be loaded onto your server.
Install a plugin for M4A1-S purchase on CT side:
The plugin you linked seems to allow players to purchase the M4A1-S via a command. You'll need to install this plugin on your server. To restrict this purchase to CT side only, you might need to modify the plugin's code or configure it through server settings. You could also create a separate Sourcemod plugin to handle this restriction if the existing plugin doesn't support it directly.
Restrict the purchase to CT side and respect purchase time and zone:
To restrict the purchase to CT side only, you can modify the plugin code to check if the player attempting to buy the M4A1-S is on the CT team. As for respecting purchase time and zone, you'll need to ensure that the plugin handles these aspects correctly. This might involve setting cooldowns or limitations within the plugin's code.

Hope it helps!

James from Coolair
https://coolair247.co.uk/
Hello Shaohao. Thanks for your answer! I was already able to leave the USP as the default weapon with a command from the same server. Regarding the !m4s command, unfortunately it is not coded in SM, therefore I cannot modify or create plugins. :c
XxSignoxX is offline