17.07.2010, 18:39
Very simple. First of all, what you should always, and always do, is define a_samp into your script. This will determine that the script is going to be made for San Andreas Multiplayer. So at the very top add this:
Next, you will make a define for the text color, which will be the text that comes up on chat, once you activate the command. So now, put this under your #include's, and above your public's.
Next you must make it a command, under your OnPlayerCommandText.
That's pretty much it, nothing to it!
REMEMBER: To change the Enter Your Text Here. DO NOT REMOVE THE QUOTATION MARKS!
pawn Код:
#include <a_samp>
pawn Код:
#define COLOR_WHITE 0xFFFFFFFF
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, COLOR_WHITE,"Enter Your Text Here!");
}
return 0;
}
REMEMBER: To change the Enter Your Text Here. DO NOT REMOVE THE QUOTATION MARKS!