![]() |
Help! Command register!
Hi there again!
Well I'm new to MetaMOD coding, so I need help! :) (g_engfuncs.pfnAddServerCommand)("addhealth", HCommand); How do I get player who wrote the Command, and change his health? Thanks for help! InternetNightmare |
Re: Help! Command register!
you need to hook ClientCommand() in your code. then you might have something like:
Code:
// JUST A TEST COMMAND |
Re: Help! Command register!
yes,
pfnAddServerCommand() adds a SERVER command only ; that is, a server the admin can type on the SERVER CONSOLE, but not the clients. If you want to hook on every command the client types, hook ClientCommand like Brian says. |
Re: Help! Command register!
Oh! Pierre-Marie Baty I didn't know that!
Thanks BAStumm! |
All times are GMT +2. The time now is 05:03. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.