25.03.2013, 15:59
just paste the upper code you posted, into your (gamemode/filter)script, best at some position where the other declarations are. then you may use that array for any purpose, here a check how the colour looks as chattext:
pawn Код:
CMD:colour(playerid,params[])
{
new colourID;
if(!sscanf(params,"d",colourID))
{
new string[128];
format(string,sizeof(string),"this is colour %d.",colourID);
SendClientMessage(playerid, VehicleColoursTableRGBA[colourID], string);
}
return 1;
}