24.10.2012, 17:19
So here is a classical command that is needed in pretty much any server, lets get started.
First off the includes. (This is a zcmd command)
And the color define that u want, i will use green.
Here are many color defines - https://sampforum.blast.hk/showthread.php?tid=157789
Next, in your gamemode scroll down and do the CMD.
Now you have your command but it dosent do anythind right now, so lets do something.
This send the player all the messages that you write there when he types the /help command
If u need more rows just add one at the bottom, hope i helped you.
Heres the full CMD code if someone dosent understand.
First off the includes. (This is a zcmd command)
PHP Code:
#include <a_samp>
#include <zcmd>
PHP Code:
#define COLOR_GREEN 0x33AA33AA
Next, in your gamemode scroll down and do the CMD.
PHP Code:
CMD:help(playerid, cmdtext[])
PHP Code:
{
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
{
If u need more rows just add one at the bottom, hope i helped you.
Heres the full CMD code if someone dosent understand.
PHP Code:
CMD:help(playerid,params[])
{
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
SendClientMessage(playerid, COLOR_GREEN, "Your help text");
{