SA-MP Forums Archive
need a command were any player can use to change his name color - 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: need a command were any player can use to change his name color (/showthread.php?tid=561031)



need a command were any player can use to change his name color - Samieastwood - 31.01.2015

like sometimes when people log in there name will be coloured.

i want a command were they could use to change it to white only

SetPlayerColor(playerid,TEAM_WHITE_COLOR);

that

the command like this /nc reset

means namecolor reset


Re: need a command were any player can use to change his name color - 1fret - 31.01.2015

thats better than using a command
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerColor(playerid,TEAM_WHITE_COLOR);
return 1;
}



Re: need a command were any player can use to change his name color - Evocator - 31.01.2015

pawn Код:
#include "zcmd.inc"

CMD:nc(playerid, params[])
{
    if (strcmp(params, "reset", true)) SendClientMessage(playerid, -1, "use /nc reset");
    else
    {
        SetPlayerColor(playerid, 0xFFFFFFAA);
        SendClientMessage(playerid, -1, "you're a snowman!");
    }
    return 1;
}



Re: need a command were any player can use to change his name color - Samieastwood - 31.01.2015

C:\Users\MdotC\Desktop\New folder (3)\gamemodes\HRP.pwn(128867) : error 029: invalid expression, assumed zero
C:\Users\MdotC\Desktop\New folder (3)\gamemodes\HRP.pwn(128867) : error 017: undefined symbol "cmd_nc"
C:\Users\MdotC\Desktop\New folder (3)\gamemodes\HRP.pwn(128867) : error 029: invalid expression, assumed zero
C:\Users\MdotC\Desktop\New folder (3)\gamemodes\HRP.pwn(128867) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.


Re: need a command were any player can use to change his name color - Schneider - 31.01.2015

I already gave you the answer in your other topic about this subject.. why are you asking for help if you just ignore the answers anyway? And why did you open a new topic?


Re: need a command were any player can use to change his name color - CalvinC - 31.01.2015

So what's the problem, you know how to use the function, and what function to use, but you're too lazy to put it into a command?