SA-MP Forums Archive
help, updating a name - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help, updating a name (/showthread.php?tid=234451)



help, updating a name - Banana123 - 03.03.2011

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.


Re: help, updating a name - Mean - 03.03.2011

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



Re: help, updating a name - Banana123 - 04.03.2011

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


Re: help, updating a name - Banana123 - 04.03.2011

any help please


AW: help, updating a name - Serbish - 04.03.2011

Add

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


Re: help, updating a name - Banana123 - 04.03.2011

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


Re: help, updating a name - Banana123 - 05.03.2011

anyhelp?


Re: help, updating a name - OKStyle - 05.03.2011

Timer or OnPlayerUpdate:

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



Re: help, updating a name - Banana123 - 05.03.2011

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


Re: help, updating a name - OKStyle - 05.03.2011

Smth like that?

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