Simple commands
#5

Same error as me when i started scripting , i was same like you , but no worries , you'll learn

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;
}
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
Reply


Messages In This Thread
Simple commands - by SonOussi - 21.01.2013, 17:31
Re: Simple commands - by Jeffry - 21.01.2013, 17:35
Re: Simple commands - by SonOussi - 21.01.2013, 17:36
Re: Simple commands - by azzerking - 21.01.2013, 17:37
Re: Simple commands - by Private200 - 21.01.2013, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)