26.04.2014, 15:19
(
Последний раз редактировалось jdsfenix; 26.04.2014 в 16:03.
)
Resolvido Obrigado Gente =)
new Objeto[3];
CMD:tilets( playerid, params[] )
{
new vehicleid = GetPlayerVehicleID(playerid);
Objeto[0] = CreateObject(0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
Objeto[1] = CreateObject(0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
Objeto[2] = CreateObject(0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
SetObjectMaterialText(Objeto[0], "XXX", 0, OBJECT_MATERIAL_SIZE_256x128, "XXX", 40, 1, 0xfff0f0f0, 0, 1);
AttachObjectToVehicle(Objeto[0], vehicleid, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000);
SetObjectMaterialText(Objeto[1], "XXX", 0, OBJECT_MATERIAL_SIZE_256x128, "XXX", 40, 1, 0xfff0f0f0, 0, 1);
AttachObjectToVehicle(Objeto[1], vehicleid, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000);
SetObjectMaterialText(Objeto[2], "XXX", 0, OBJECT_MATERIAL_SIZE_256x128, "XXX", 30, 1, 0xfff0f0f0, 0, 1);
AttachObjectToVehicle(Objeto[2], vehicleid, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i; i < 3; i++)
{
DestroyObject(Objeto[i]);
}
return 1;
}
CMD:tilets( playerid, params[] )
{
new vehicleid = GetPlayerVehicleID(playerid);
new ObName[3];
ObName[0] = CreateObject(0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
ObName[1] = CreateObject(0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
ObName[2] = CreateObject(0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
SetObjectMaterialText(ObName[0], "XXX", 0, OBJECT_MATERIAL_SIZE_256x128, "XXX", 40, 1, 0xfff0f0f0, 0, 1);
AttachObjectToVehicle(ObName[0], vehicleid, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000);
SetObjectMaterialText(ObName[1], "XXX", 0, OBJECT_MATERIAL_SIZE_256x128, "XXX", 40, 1, 0xfff0f0f0, 0, 1);
AttachObjectToVehicle(ObName[1], vehicleid, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000);
SetObjectMaterialText(ObName[2], "XXX", 0, OBJECT_MATERIAL_SIZE_256x128, "XXX", 30, 1, 0xfff0f0f0, 0, 1);
AttachObjectToVehicle(ObName[2], vehicleid, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000);
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i; i < 3; i++)
{
DestroyObject(ObName[i]);
}
return 1;
}