Text car
#1

How can I do when I write / viptext depending on the car that you have to put text on it
Код HTML:
CMD:vipname(playerid, params[])
{
	new
		text[6],
	    vText;
	new vehicleid = GetPlayerVehicleID(playerid);
	if(sscanf(params, "s[50]", text)) return SCM(playerid, COLOR_WHITE, "Info: /vipname [name]");
	if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER && GetPlayerState(playerid) != PLAYER_STATE_PASSENGER) return SCM(playerid, COLOR_WHITE, "Nu te afli intr-un vehicul");
	{
	    format(query, sizeof(query), "SELECT * FROM `cars` WHERE `id`='%d' ORDER BY `id`",playerid);
	    if(OwnedVeh(vehicleid))
		{
			if(strlen(text) > 6) return SCM(playerid, COLOR_WHITE, "Ai depasit cele 6 caractere!");
			if(Viptext[playerid] == 0)
			{
				vText =CreateObject(19327, -2597.0762, -2630.4270, -5.3536, -87.6999, 90.4001, -97.1805);
				SetObjectMaterialText(vText, text, 0, 50, "Arial", 25, 1, 0xFFFFFFFF, 0, 1);
				AttachObjectToVehicle(vText, vehicleid, 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
				Viptext[playerid] = 1;
			}
			else
			{
			if(Viptext[playerid] == 0)
			{
				vText =CreateObject(19327, -2597.0762, -2630.4270, -5.3536, -87.6999, 90.4001, -97.1805);
				SetObjectMaterialText(vText, text, 0, 50, "Arial", 25, 1, -16777216, 0, 1);
				AttachObjectToVehicle(vText, vehicleid, 0.000000, -1.634998, 0.394999, -78.364997, 0.000000, 0.000000);
				Viptext[playerid] = 1;
			}
		}
		else if
			{
			if(Viptext[playerid] == 0)
			{
				vText =CreateObject(19327, -2597.0762, -2630.4270, -5.3536, -87.6999, 90.4001, -97.1805);
				SetObjectMaterialText(vText, text, 0, 50, "Arial", 25, 1, -16777216, 0, 1);
				AttachObjectToVehicle(vText, vehicleid, 0.000000, 2.115000, 0.294999, -104.519912, -177.885086, 0.000000);
				Viptext[playerid] = 1;
			}
		}
	}
 }
	return 1;
}
Reply
#2

Anyone ??
Reply
#3

?
Reply
#4

Nothing
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)