13.01.2012, 09:40
Hello every one
i want attach object to vehicle and i make
and its Show no error but not show in the game or the object does't show in the game except if i make it command it work but if i make it when playerspawn cuz when playerspawn he spawn in car.
i want attach object to vehicle and i make
PHP код:
public OnPlayerSpawn(playerid)
{
SetTimer("CarParts",5000,0);
return 1;
}
forward CarParts(playerid);
public CarParts(playerid)
{
new Spo;
new id;
new Float:x, Float:y, Float:z;
Spo = CreateObject(1001,0,0,0,0,0,0,0);
id = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(Spo,id,x,y,z,0,0,0);
}