21.01.2013, 20:05
Same error as me when i started scripting , i was same like you , but no worries , you'll learn
For other colors go on this : https://sampforum.blast.hk/showthread.php?tid=157789 .
Add all those colors in top of your script and then just use the message in the ( COLOR_RED or COLOR_BLUE etc )
Good luck
pawn Код:
//At top of the script :
#define COLOR_RED 0xAA3333AA
// Somewhere at your script :
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0) ;
return 1;
}
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_RED,"Welcome To Draguto Server ") ;
//The "SendClientMessage" is like : SendClientMessage(playerid, color, "message here");
return 1;
}
return 0;
}
Add all those colors in top of your script and then just use the message in the ( COLOR_RED or COLOR_BLUE etc )
Good luck