[HL] How to write a plugin that will...
I need a plugin that when I type !rr it will restart the server [sv_restart 1]
and when I type !slay PARTOFNAME/NAME it will kill the player. I think I can do the rest. [I know that I need to use Handle_Say] |
Re: [HL] How to write a plugin that will...
restart thing
Code:
#include <amxmodx> |
Re: [HL] How to write a plugin that will...
You say it's for HL, but sv_restart doesn't exist for HL. Oo
|
Re: [HL] How to write a plugin that will...
Quote:
I needed this for counter strike 1.6 [It's based on HL] thank you for giving me the code !! How to make the !slay? I don't know how to get a players name. |
Re: [HL] How to write a plugin that will...
PHP Code:
|
Re: [HL] How to write a plugin that will...
Quote:
another problem that I have is when someone types !rr it prints the name of the server and not the player who wrote !rr,is there a way to fix that? PHP Code:
|
Re: [HL] How to write a plugin that will...
there isnt a slay function, that should of been commented just to show where to slay the player
and with your 2nd problem, change "get_user_name(cid, name, 32)" to "get_user_name(pid, name, 32)" |
Re: [HL] How to write a plugin that will...
Quote:
PHP Code:
PHP Code:
|
Re: [HL] How to write a plugin that will...
Quote:
PHP Code:
|
Re: [HL] How to write a plugin that will...
Thank you! works perfectly.
I still need the slay thing,can somebody help me? |
| All times are GMT -4. The time now is 07:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.