SA-MP Forums Archive
Some help needed. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Some help needed. (/showthread.php?tid=344955)



Some help needed. - HighPitchedVoice - 23.05.2012

Hello there, dear readers.

I have seen on many different servers that if a player typed the wrong command it says like: "This command is not in the script, use /help for more information." Could anyone give me that script so I could edit it for my server please? And how can I do like this: |_____________________Help_________________________|? How can I get a black code in the middle there?


Re: Some help needed. - Face9000 - 23.05.2012

At the very botton of OnPlayerCommandText callback, replace return 0; with:
pawn Код:
return SendClientMessage(playerid, YOUR_COLOR, "Your message here");



Re: Some help needed. - HighPitchedVoice - 23.05.2012

how can I do like this: |_____________________Help_________________________|? How can I get a black code in the middle there? How that


Re: Some help needed. - Niko_boy - 23.05.2012

pawn Код:
SendClientMessage(playerid, -1, "{FFFFFF}|______________{000000}help{FFFFFF}___________|");
it will say:
Код:
|______________help___________|
so here
pawn Код:
-1 , is nothing just no color i.e. white color // ignore it
{FFFFFF} is 6 Digit Hex code [ white color  ] //secondary color
{000000} is 6 Digit Hex code [ black color  ] // main text color
goto colorpicker.com to select 6 Digit hex code and paste it inside {HERE}


Re: Some help needed. - doreto - 23.05.2012

// at top of script
pawn Код:
#define COLOR_RED 0xFF0000FF
#define COLOR_BLACK 0x000000FF

SendClientMessage(playerid,COLOR_RED,"______________"COLOR_BLACK"HELP"COLOR_RED"____________");



Re: Some help needed. - Face9000 - 23.05.2012

pawn Код:
return SendClientMessage(playerid, YOUR_COLOR, "|_____________________{0B0000}Help_________________________|");



Re: Some help needed. - HighPitchedVoice - 23.05.2012

Where can I get those codes?


Re: Some help needed. - Face9000 - 23.05.2012

Go to http://www.2createawebsite.com/build/hex-colors.html and pick your color,after paste it between {}


Re: Some help needed. - doreto - 23.05.2012

All color defines *CLICK


Re: Some help needed. - Niko_boy - 23.05.2012

Quote:

goto colorpicker.com to select 6 Digit hex code and paste it inside {HERE}

Read posts =__= properly, lol