edit statsx.sma
hello guys! This time i want to help me to edit the statsx in this way:
I want the command: PHP Code:
1.Which brings by default, which is to show the menu with the players on the server 2.This is where i want to help me, what i achieve is that the command work in this way: say /stats "name" Where the word "name", is the name of the player which you are going to see their stats The problem is that i have not succeeded in doing so, do it here: PHP Code:
PHP Code:
|
Re: edit statsx.sma
To add arguments into a say command is not something that will be easy for you, FYI. Find a plugin that uses arguements in a say command and do it that way. (You will have to handle all "say" commands).
|
Re: edit statsx.sma
some help? I have tried to do so with various forms and i have not achieved.
|
Re: edit statsx.sma
you have to just register say and read the command and parse it.
|
Re: edit statsx.sma
Quote:
1. .stats // Is it that makes at the moment 2. .stats "name" // Is what you specify up in the first post |
Re: edit statsx.sma
I no.. but you cannot get the second parameter "name" without reading all of say and hooking all say's
so you'd have to do this: Code:
register_clcmd("say", "hook_say") |
Re: edit statsx.sma
Quote:
|
Re: edit statsx.sma
Quote:
|
| All times are GMT -4. The time now is 21:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.