Raised This Month: $51 Target: $400
 12% 

Need help creating a plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leakbang
New Member
Join Date: Aug 2018
Old 08-28-2018 , 19:17   Need help creating a plugin
Reply With Quote #1

Hello, guys, I'm very new to sourcemod scripting. Need a little bit of help getting in the correct path. So I run a bunch of insurgency servers and I want to create a plugin which when you type for example .lsd in the chat it enables drugs on the person who typed this in chat. Just need some advice to know what should I do.
Thanks
Leakbang is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 08-29-2018 , 12:04   Re: Need help creating a plugin
Reply With Quote #2

https://sm.alliedmods.net/new-api/co...ommandListener

Add say / say_team command, check if the args match to the command you want to register.

Include this file and use the native to drug the player.

https://github.com/alliedmodders/sou...mmands/drug.sp
mug1wara is offline
Reply



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 07:22.


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