need a command were any player can use to change his name color
#1

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
Reply
#2

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

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

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.
Reply
#5

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?
Reply
#6

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)