05.07.2012, 12:16
How to make your server/script look clean and good.
Introduction
In this thread I will explain how to make your players think "Wow, this looks good!".
We will do this by using variation and repeating techniques in a balanced way.
This will give the player the impression that people put effort in the server and script, which is of course a good thing.
Error, Usage and Succeed messages
About 99% of all commands need error and usage messages.
A command like /pm would need to return a usage message if no player Id/name is entered.
Imagine (maybe this is the case in your script) how it would look if every error message on every command looked different?
It would give a messy impression.
First thing to do is make some callbacks for your error and usage messages, so you are sure they will always be the same.
An example is the one I use in my own script,
The "nal" means Not Allowed, and is used by placing code like this.
Example usage of nal
This will send the nal error message to the player
Example of the color embedding in Nal
Color Embedding
Colors are important for giving people an impression of your script/server.
Using a 0000 color will give a dark looking color is usually very hard to read.
Example of the bad way
Example of the good way
Those colors look fairly the same, but the 6969 color will give a softer and much more readable text.
A good way to select your colors is by using http://www.colorpicker.com
Capitals and English
Your server will look ten times better if you use capital letters, comma's and stuff like that.
With capital letters I do not mean that you have to capitalize every single word as some people do.
I saw this mistake on many servers, including big servers like PRRP.
Example from prrp
As you see that looks just stupid.
No capitals, no dots, bad English.
This will make you lose a lot of players as it gives the impression that your English isn't good, and that you don't put time and effort in your script.
I hope this helped a bit,
- Milan
Introduction
In this thread I will explain how to make your players think "Wow, this looks good!".
We will do this by using variation and repeating techniques in a balanced way.
This will give the player the impression that people put effort in the server and script, which is of course a good thing.
Error, Usage and Succeed messages
About 99% of all commands need error and usage messages.
A command like /pm would need to return a usage message if no player Id/name is entered.
Imagine (maybe this is the case in your script) how it would look if every error message on every command looked different?
It would give a messy impression.
First thing to do is make some callbacks for your error and usage messages, so you are sure they will always be the same.
An example is the one I use in my own script,
pawn Код:
forward nal(playerid);
public nal(playerid)
{
SCM(playerid, COLOR_GREY, "{FFFFFF}[{6B6B6B}ERROR{FFFFFF}] You do not have permission for this command.");
return 1;
}
forward error(playerid, message[]);
public error(playerid, message[])
{
new stringz[256];
format(stringz, sizeof(stringz), "{FFFFFF}[{6B6B6B}ERROR{FFFFFF}] %s.", message);
SCM(playerid, COLOR_GREY, stringz);
return 1;
}
forward usage(playerid, message[]);
public usage(playerid, message[])
{
new string[128];
format(string, sizeof(string), "{FFFFFF}[{6B6B6B}USAGE{FFFFFF}] %s", message);
SCM(playerid, COLOR_GREY, string);
return 1;
}
Example usage of nal
pawn Код:
CMD:togooc(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 3)
{
if(oocon == 1)
{
SCMA(COLOR_RED, "OOC Chat has been disabled by an Administrator!");
oocon = 0;
return 1;
}
else if(oocon == 0)
{
SCMA(COLOR_GREEN, "OOC Chat has been enabled by an Administrator!");
oocon = 1;
return 1;
}
return 1;
}
else return nal(playerid);
}
Example of the color embedding in Nal
Color Embedding
Colors are important for giving people an impression of your script/server.
Using a 0000 color will give a dark looking color is usually very hard to read.
Example of the bad way
pawn Код:
0x0000FF
pawn Код:
0x6969FF
A good way to select your colors is by using http://www.colorpicker.com
Capitals and English
Your server will look ten times better if you use capital letters, comma's and stuff like that.
With capital letters I do not mean that you have to capitalize every single word as some people do.
I saw this mistake on many servers, including big servers like PRRP.
Example from prrp
pawn Код:
this vehicle dosent even have a helmet system
No capitals, no dots, bad English.
This will make you lose a lot of players as it gives the impression that your English isn't good, and that you don't put time and effort in your script.
I hope this helped a bit,
- Milan