06.11.2011, 12:50
Hi all,
one of my friend got an problem
his code
create the objetc but when he drive the object don't follow the vehicle
Max
one of my friend got an problem
his code
Код:
if(strcmp(cmd,"/test", true) == 0) { if(IsPlayerConnected(playerid)) { if(IsPlayerInAnyVehicle(playerid) && GetVehicleModel(newcar) == 497) { new Float:X, Float:Y, Float:Z; GetVehiclePos(newcar,X,Y,Z); Corde = CreateObject(19089,X,Y,Z,0.0,0,0,0); AttachObjectToVehicle(Corde,newcar,0.0, 0.0, 1.0, 0.0, 0.0, 0.0); SendClientMessage(playerid,COLOR_GRAD1,"Vous avez attacher la corde."); } else { SendClientMessage(playerid,COLOR_GRAD1,"Erreur"); return 1; } } return 1; }
Max