News:

Server address: server.convoytrucking.net
Get SA-MP 0.3.7 here: Click Here to download SA-MP 0.3.7

Main Menu

Licenseplates (after donating)

Started by ihatetn931, March 16, 2012, 19:22

ihatetn931

If i was to donate could i use color codes in license plates?

Like the welcome messages.

I am seriously thinking about donating but i was curious if i could use color codes.

This is just an example. You can see how the license plate text is in red and blue (if any one ask, that is a script i made from scratch and lost the motivation to finish it so i just use the server for testing mods, that license plate is just showing the vehicleid and the vehiclename)

http://i95.photobucket.com/albums/l130/ihatetn931/sa-mp-367.png

No advert intended


martata14

You can't to use painted number :)

''Feel my pain, because it is pain, which I wake up every day."- Mike Tyson

ihatetn931

Ahh that kinda sucks, do you know if any one has suggested to have colored license plates before?

If not i may suggest it.


mick88

Maximum length of numberplate is 8, so even if you could use colors, the code would waste all of the allowed space.

ihatetn931

The color codes from what i know wouldn't appear as part of the licnese plate so it wouldn't be considred the 8 letters, if you look in that pic i have posted. That has 2 color codes in it while still showing all the words that are set for it. I dunno how you set the color codes so i really couldn't say much.


YCMD:changeplate(playerid, params[], help)
{
new str[128];
new vehicleid = GetPlayerVehicleID(playerid);
if(PLogged[playerid] == 0) return
    SendClientMessage(playerid, ERROR_COLOR, NOT_LOGGED);
if(help) return
    SendClientMessage(playerid, ERROR_COLOR, "Changes The Plate of the car you're in you own");
if (isnull(params))
  {
  format(str, sizeof (str), "Usage: \"/%s [text]\"", Command_GetDisplayNamed("plate", playerid));
      SendClientMessage(playerid, COMMAND_PRINT, str);
    }
    else
    {
  format(str, sizeof (str), "Plate Set to %s with Color [ %s ]",params,ColouredText(params));
      SendClientMessage(playerid, COMMAND_PRINT, str);
    SetVehicleNumberPlate(vehicleid,ColouredText(params));
//    VehicleInfo[vehicleid][vLplate] = params;
    format(Query, sizeof(Query), "UPDATE vehicles SET LicensePlate = '%s' WHERE VehicleOwner = '%s' AND VehicleDescription = '%s'",
params,
    GetEscName(playerid),
    PlayerVehicles[GetVehicleModel(vehicleid)-400]);
mysql_query(Query);
printf("%s",Query);

}
    return 1;
}


That's how i got my command. If you say it would take up the whole license plate then i really can't argue with you since you know your shiznit.


mick88

Quote from: ihatetn931 on March 16, 2012, 20:06
If you say it would take up the whole license plate then i really can't argue with you since you know your shiznit.

To make this claim you would first have to understand my gamemode.

ihatetn931

Quote from: mick88 on March 16, 2012, 20:27
Quote from: ihatetn931 on March 16, 2012, 20:06
If you say it would take up the whole license plate then i really can't argue with you since you know your shiznit.

To make this claim you would first have to understand my gamemode.

Yes, that's why i really can't say much. Your gamemode is pretty complex. But then simple at the same time.

I guess it's just about how you do color codes. Everyone does them diffrent


mick88

Quote from: ihatetn931 on March 16, 2012, 20:38
Quote from: mick88 on March 16, 2012, 20:27
Quote from: ihatetn931 on March 16, 2012, 20:06
If you say it would take up the whole license plate then i really can't argue with you since you know your shiznit.

To make this claim you would first have to understand my gamemode.

Yes, that's why i really can't say much. Your gamemode is pretty complex. But then simple at the same time.

I guess it's just about how you do color codes. Everyone does them diffrent
Then don't say that I "know shizniz". I know very well how numberplates work, but I chose to limit them to 9 cells to save space.

ihatetn931

Quote from: mick88 on March 16, 2012, 22:17
Quote from: ihatetn931 on March 16, 2012, 20:38
Quote from: mick88 on March 16, 2012, 20:27
Quote from: ihatetn931 on March 16, 2012, 20:06
If you say it would take up the whole license plate then i really can't argue with you since you know your shiznit.

To make this claim you would first have to understand my gamemode.

Yes, that's why i really can't say much. Your gamemode is pretty complex. But then simple at the same time.

I guess it's just about how you do color codes. Everyone does them diffrent
Then don't say that I "know shizniz". I know very well how numberplates work, but I chose to limit them to 9 cells to save space.

That was a compliment. It wasn't intended to be a sarcastic remark.


mr.hilly

i thought cock wars are forbidden :D

ihatetn931

#10
i'm not making a war with anyone :-)

Topic locked since i got my answer