Problem with players colors - 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: Problem with players colors (
/showthread.php?tid=531171)
Problem with players colors -
Lirbo - 11.08.2014
pawn Код:
if(!strcmp(DOF2_GetString(pFile(playerid),"Clan"),"Civilian")) return SetPlayerColor(playerid,GetColor(playerid));
if(strcmp(DOF2_GetString(pFile(playerid),"Clan"),"Civilian")) return SetPlayerColor(playerid, PlayerColors[random(200)]);
its makes everybody the random color, even the people who is in clan
the players who is in clan is the first line
and the functions is working.. yes
Re: Problem with players colors -
AzaMx - 11.08.2014
Please explain in better ways..
Re: Problem with players colors -
Lirbo - 11.08.2014
Quote:
Originally Posted by AzaMx
Please explain in better ways..
|
Everybody is with random color instead only the civilians... the ppl who in clan supposed to get thier clan color...
to get clan color i got the function GetColor(playerid), but everybody here gets the civilian's color... (random)
Re: Problem with players colors -
Lirbo - 11.08.2014
up........
Re: Problem with players colors -
Lirbo - 11.08.2014
bump
Re: Problem with players colors -
Lirbo - 12.08.2014
bump
Re: Problem with players colors -
Lirbo - 12.08.2014
How much bumps i have to fucking do?!? plz answer!!
Re: Problem with players colors -
Beckett - 12.08.2014
You need to show how you saving/loading these colors not only loading them.