help, updating a name
#1

hey so i have made colors in larp to each faction, the thing is that when do you change the faction or you will invite new player it won't show the color for him before he reloggs, i need a command like /updatename that it will update the player and its color.
Reply
#2

What do you mean Update player's color?
pawn Код:
SetPlayerColor( playerid, color );
Reply
#3

I mean that what I need into a command that it updates the player, it's hard to explain but when you're ingame and someone invites you to a family, you will be in the family but your color won't turn as the faction color before you logg out. I need a command something like /updatename that updates the player info to the real time
Reply
#4

any help please
Reply
#5

Add

pawn Код:
SetPlayerColor(playerid, YOUR_COLOR);
there, where you actually accept the invite and enter the other faction.
Reply
#6

i've done that, that is not the point what i am talking about. i'm talking about that if you change your faction or something, it will make you color white again but after you relog you're in the faction color.. i'm looking a command that updates the player color immediantly
Reply
#7

anyhelp?
Reply
#8

Timer or OnPlayerUpdate:

pawn Код:
switch(Fraction[playerid])
{
case 1: SetPlayerColor(playerid,COLOR1);
case 2: ...
....
}
Reply
#9

ok, thanks but is that possible add into a command that you'll do /updatename and it updates you
Reply
#10

Smth like that?

pawn Код:
if(strcmp(cmdtext, "/updatename", true) == 0)
{
switch(Fraction[playerid])
{
case 1: SetPlayerColor(playerid,COLOR1);
case 2: ...
....
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)