On spawn name can only be these colors?
#1

When u spawn, ur name is a random color, how do I make it so that it can only be a color that I say it can? For example, if I want it to only be either red green or blue, how can I make it so that the name is not any other color?
Reply
#2

on mine i have it as underplayerspawn

setplayercolor

it works for me, try it

Something like

SetPlayerColor(playerid, COLOR_RED);

EDIT - My bad, i missed the 'Random' Part XD
Reply
#3

under OnPlayerSpawn
pawn Код:
new randomcolor = random(3)

switch(randomcolor)
{
    case 0: SetPlayerColor(playerid,BLUE);
    case 1: SetPlayerColor(playerid,GREEN);
    case 2: SetPlayerColor(playerid,RED);
}
Reply
#4

Thanks Yurifury and hitman that helped a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)