09.04.2012, 11:19
Olб malta,eu queria saber como mudo a cor de um objeto,neste caso,queria mudar a cor da setinha, aquela setinha branca... tem como? fico grato
++REP
++REP
if(blinker[playerid] == 2)
{
if(IsPlayerInAnyVehicle(playerid))
{
tmpcar = GetPlayerVehicleID(playerid);
GetVehiclePos(tmpcar, tmpx[playerid], tmpy[playerid], tmpz[playerid]);
GetVehicleZAngle(tmpcar, tmpang[playerid]);
if(Step[playerid] == 0)
{
arrow[playerid] = CreateObject(1318, tmpx[playerid], tmpy[playerid], tmpz[playerid]+0.7, 90, tmpang[playerid]-89, 180);
AttachObjectToPlayer(arrow[playerid], playerid, 0, 0, 1.7, 90, 269, 180);// EDITAR OBJECTO.
//GameTextForPlayer(playerid, "~g~<<<", 300, 4);
Step[playerid] = 1;
return 1;
}
if(Step[playerid] == 1)
{
duration[playerid]++;
DestroyObject(arrow[playerid]);
Step[playerid] = 0;
return 1;
}
}
}
return 1;
}
0xFF0000FF
AttachObjectToPlayer(arrow[playerid], playerid, 0, 0, 1.7, 90, 269, 180);
if(blinker[playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
tmpcar = GetPlayerVehicleID(playerid);
GetVehiclePos(tmpcar, tmpx[playerid], tmpy[playerid], tmpz[playerid]);
GetVehicleZAngle(tmpcar, tmpang[playerid]);
if(Step[playerid] == 0)
{
arrow[playerid] = CreateObject(19131, tmpx[playerid], tmpy[playerid], tmpz[playerid]+0.7, 90, tmpang[playerid]+89, 180);
AttachObjectToPlayer(arrow[playerid], playerid, 0, 0, 1.3, 90, 269, 180);// EDITAR OBJECTO.
//GameTextForPlayer(playerid, "~g~>>>", 300, 4);
Step[playerid] = 1;
return 1;
}
if(Step[playerid] == 1)
{
duration[playerid]++;
DestroyObject(arrow[playerid]);
Step[playerid] = 0;
return 1;
}
}
}