22.12.2014, 17:55
Car is doesn't deleting after repeat the command.
'X-MAS' text is invisible.
Where is problem in this two things?
'X-MAS' text is invisible.
Where is problem in this two things?
Код:
CMD:car(playerid, params[])
{
new car[MAX_PLAYERS];
DestroyVehicle(car[playerid]);
new Float:x, Float:y, Float:z, Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
car[playerid] = CreateVehicle(562, x, y, z, angle, 3, 3, -1);
new xmasobject = CreateObject(19329,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(xmasobject, GetPlayerVehicleID(playerid), 0.000000,-2.325000,0.150000,-8.100000,0.000000,0.000000);
SetObjectMaterialText(xmasobject, "X-MAS", 0, 130, "Arial", 30, 0, -1, 0, 1);
PutPlayerInVehicle(playerid, car[playerid], 0);
return 1;
}

