17.12.2010, 11:05
pawn Код:
SetPVarFloat(playerid, "GPS_X", 2680.8572);
SetPVarFloat(playerid, "GPS_Y", -1330.0626);
SetPVarFloat(playerid, "GPS_Z", 42.8088);
GPS_OBJ = CreateObject(1318, 0, 0, 0, 0, 0, 0);
new vehid = GetPlayerVehicleID(playerid);
AttachObjectToVehicle(GPS_OBJ, vehid, 0.0, 0.0, 1.0, 0, 0, 0);
pawn Код:
SetObjectRot(GPS_OBJ,GetPVarFloat(playerid, "GPS_X"),GetPVarFloat(playerid, "GPS_Y"),GetPVarFloat(playerid, "GPS_Z"));