Detruir Objeto -
jdsfenix - 26.04.2014
Resolvido Obrigado Gente =)
Re: Detruir Objeto -
Fel486 - 26.04.2014
PHP код:
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;
}
Respuesta: Detruir Objeto -
SkullFire - 26.04.2014
PHP код:
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;
}
PHP код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i; i < 3; i++)
{
DestroyObject(ObName[i]);
}
return 1;
}
EDIT: Desculpa o cara acima /\, nгo cheguei a ver seu tуpico, estava modificando o cуdigo pra ele...
Re: Detruir Objeto -
jdsfenix - 26.04.2014
Vlw gente =)