13.11.2018, 16:57
hi guys so i just wanted to know how can i do something like this :
so i cant use string for COLOR , i want to server get the color from player stats file ! i created a command to change this color so the code should read the player account file and replace chat color with the color of sendclientmssg
here is that command code
Код:
new string[128]; format(string,sizeof(string),"%s",PlayerInfo[playerid][ChatColor]); SendClientMessage(playerid, string, str);
here is that command code
Код:
dcmd_ccolor(playerid, params[])
{
new colord[64];
if(sscanf(params, "si", colord))
{
SendClientMessage(playerid,COLOR_ERROR,"USAGE : /Ccolor (ColorCode 0xRRGGBBAA)");
return 1;
}
format(PlayerInfo[playerid][ChatColor], 10, colord);
SavePlayer(playerid);
return 1;
}


